Free Fire top-up API documentation

A simple JSON API to send Free Fire diamonds and memberships to a player in Malaysia, Singapore, the Philippines, Vietnam or Indonesia. Every order verifies the player first and returns the Garena order ID.

Authentication

Create an API key in the panel under API & bot and send it with every request:

X-Api-Key: apifire_xxxxxxxxxxxxxxxxxxxxxxxx

Base URL: https://api.apifire.net. All requests and responses are JSON.

Place an order

POST /api/topup
Content-Type: application/json
X-Api-Key: apifire_...

{
  "region": "MY",            // MY | SG | PH | VN | ID
  "player_id": "43434344343", // 8–12 digit Free Fire ID
  "item_id": "100",           // item code, see table below
  "order_ref": "shop-000123",  // optional, makes retries safe
  "allow_duplicate": false,    // optional, true = skip the 90 s same player + item check
  "queue": false               // optional, true = answer "queued" at once if your account is busy
}

Successful response:

{
  "error": false,
  "msg": "success",
  "data": {
    "order_id": "4823019938",
    "display_id": "4823019938",
    "region": "MY",
    "player_id": "43434344343",
    "player": "NickFF",
    "item_id": "100",
    "product_id": 31,
    "item_name": "100 Diamond",
    "product": "Free Fire MY — 100 Diamond",
    "shells": 50,               // Garena Shells this package costs
    "when": "15-10-2026 04:33 PM",
    "status": "Success",
    "shell_before": 1000,       // your Garena shell balance before…
    "shell_after": 950          // …and after this order (null if Garena didn't say)
  }
}

An order usually takes 15–45 seconds (player check + payment). Use a client timeout of at least 180 seconds. Sending the same order_ref again returns the original result instead of paying twice.

The same player + item is blocked for 90 seconds after an order, so a double click or retry never sends twice. To send it again on purpose, add "allow_duplicate": true, or turn on Allow the same player + package again on the API & bot page for all your API orders. shell_before / shell_after are your Garena account's shell balance around the order.

Each Garena account handles one order at a time; others wait their turn (up to 150 s, then they fail unsent and refunded). Sending many at once? Add "queue": true: if the account is busy you get this at once, and the order finishes in the background — poll GET /api/topup/status?order_id=… until status is success or failed:

{
  "error": false,
  "msg": "queued",
  "data": {
    "status": "Queued",
    "queued": true,
    "id": 512,
    "position": 2,
    "region": "MY",
    "player_id": "43434344343",
    "item_id": "100",
    "check": "/api/topup/status?order_id=512"
  }
}

Python example:

import requests

r = requests.post(
    "https://api.apifire.net/api/topup",
    headers={"X-Api-Key": "apifire_..."},
    json={"region": "SG", "player_id": "43434344343", "item_id": "Weekly", "order_ref": "order-001"},
    timeout=180,
)
print(r.json())

Bulk orders

Up to 20 orders per request, one per line or comma-separated, in the format PLAYERID REGION-ITEM. Different regions are processed in parallel.

POST /api/bot/order
X-Api-Key: apifire_...

{ "orders": "43434344343 ph-100,43434344343 sg-Weekly,43434344343 id-50" }

→ { "error": false, "msg": "3 ok",
    "data": { "total": 3, "ok": 3, "failed": 0, "results": [ … ] } }

Order status

GET /api/topup/status?order_ref=shop-000123
X-Api-Key: apifire_...

Also accepts ?order_id=. Your full history is at GET /api/orders.

Item codes

Use the code in item_id (or after the region in bulk orders, e.g. sg-Weekly). Codes are not case-sensitive.

item_idPackageShellsBulk example
2525 Diamond1343434344343 my-25
100100 Diamond5043434344343 my-100
310310 Diamond15243434344343 my-310
520520 Diamond25443434344343 my-520
10601060 Diamond50043434344343 my-1060
21802180 Diamond101043434344343 my-2180
56005600 Diamond250043434344343 my-5600
1150011500 Diamond515043434344343 my-11500
WeeklyWeekly Membership8643434344343 my-Weekly
WeeklyLiteWeekly Lite Membership1843434344343 my-WeeklyLite
MonthlyMonthly Membership43043434344343 my-Monthly
LevelUp6Level Up Package - Level 61643434344343 my-LevelUp6
LevelUp10Level Up Package - Level 103443434344343 my-LevelUp10
LevelUp15Level Up Package - Level 153443434344343 my-LevelUp15
LevelUp20Level Up Package - Level 203443434344343 my-LevelUp20
LevelUp25Level Up Package - Level 253443434344343 my-LevelUp25
LevelUp30Level Up Package - Level 305043434344343 my-LevelUp30
All regions in one list

Free Fire Malaysia (MY): 25 — 25 Diamond (13 shells) · 100 — 100 Diamond (50 shells) · 310 — 310 Diamond (152 shells) · 520 — 520 Diamond (254 shells) · 1060 — 1060 Diamond (500 shells) · 2180 — 2180 Diamond (1010 shells) · 5600 — 5600 Diamond (2500 shells) · 11500 — 11500 Diamond (5150 shells) · Weekly — Weekly Membership (86 shells) · WeeklyLite — Weekly Lite Membership (18 shells) · Monthly — Monthly Membership (430 shells) · LevelUp6 — Level Up Package - Level 6 (16 shells) · LevelUp10 — Level Up Package - Level 10 (34 shells) · LevelUp15 — Level Up Package - Level 15 (34 shells) · LevelUp20 — Level Up Package - Level 20 (34 shells) · LevelUp25 — Level Up Package - Level 25 (34 shells) · LevelUp30 — Level Up Package - Level 30 (50 shells)

Free Fire Singapore (SG): 25 — 25 Diamond (13 shells) · 100 — 100 Diamond (50 shells) · 310 — 310 Diamond (150 shells) · 520 — 520 Diamond (250 shells) · 1060 — 1060 Diamond (500 shells) · 2180 — 2180 Diamond (1000 shells) · 5600 — 5600 Diamond (2500 shells) · 11500 — 11500 Diamond (5000 shells) · Weekly — Weekly Membership (85 shells) · WeeklyLite — Weekly Lite Membership (14 shells) · Monthly — Monthly Membership (399 shells) · LevelUp6 — Level Up Package - Level 6 (16 shells) · LevelUp10 — Level Up Package - Level 10 (34 shells) · LevelUp15 — Level Up Package - Level 15 (34 shells) · LevelUp20 — Level Up Package - Level 20 (34 shells) · LevelUp25 — Level Up Package - Level 25 (34 shells) · LevelUp30 — Level Up Package - Level 30 (50 shells)

Free Fire Philippines (PH): 20 — 20 Diamond (13 shells) · 40 — 40 Diamond (26 shells) · 100 — 100 Diamond (65 shells) · 205 — 205 Diamond (130 shells) · 420 — 420 Diamond (260 shells) · 650 — 650 Diamond (420 shells) · 1100 — 1100 Diamond (700 shells) · 2250 — 2250 Diamond (1400 shells)

Free Fire Vietnam (VN): 25 — 25 Diamond (10 shells) · 51 — 51 Diamond (20 shells) · 113 — 113 Diamond (40 shells) · 283 — 283 Diamond (100 shells) · 566 — 566 Diamond (200 shells) · 1132 — 1132 Diamond (400 shells) · 2830 — 2830 Diamond (1000 shells) · Weekly — Weekly Membership (100 shells) · WeeklyLite — Weekly Lite Membership (24 shells) · Monthly — Monthly Membership (440 shells) · Booyah — Booyah Card (110 shells)

Free Fire Indonesia (ID): 5 — 5 Diamond (3 shells) · 50 — 50 Diamond (24 shells) · 70 — 70 Diamond (33 shells) · 140 — 140 Diamond (66 shells) · 355 — 355 Diamond (165 shells) · 720 — 720 Diamond (330 shells) · 7290 — 7290 Diamond (3300 shells) · 36500 — 36500 Diamond (16500 shells) · 73100 — 73100 Diamond (33000 shells) · Weekly — Weekly Membership (100 shells) · Booyah — Booyah Card (150 shells)

Responses & errors

Every response has error (true/false), msg and data. Each order is charged the price per call from your balance; failed orders are refunded.

{ "error": true, "msg": "Not enough balance — each call costs $0.001, you have $0. Add funds on Billing.",
  "data": { "low_balance": true, "price_per_call": 0.001 } }

{ "error": true, "msg": "Duplicate blocked — same player/item already succeeded within 90s …",
  "data": { "duplicate": true, "order_id": "…" } }
401Missing or wrong API key
403IP … is not on this account's API allowlist — call from an allowlisted IP, or edit the list on the API & bot page
403API key used from an IP that is not on this account's allowlist
low_balanceBalance is below the price per call — add funds
duplicateSame player + item within 90 s; send "allow_duplicate": true, or turn on Allow the same player + package again on the API & bot page
player_id must be 8–12 digitsInvalid Free Fire ID
Unknown item_idCode not in the table for that region

Other endpoints

GET /api/products?region=MYPackage list for a region
GET /api/player?id=43434344343&region=SGCheck a player ID and get the nickname before ordering
GET /api/ordersOrder history (?q=, ?status=)
GET /api/orders/{id}Full details of one order
POST /api/redeemRedeem Garena Shell codes into your shop account: {"region":"SG","codes":["…"]} — up to 50, charged per code, failed codes refunded
POST /api/redeem/streamSame body, streamed as NDJSON: one result line per code the moment it finishes
GET /api/redeemsRedeem history and price per code by region
GET /api/redeems/{id}One code in full: shells, transaction, charge, timing and Garena's reply
GET /api/billingBalance, price per call and calls left
GET /api/settings/apiYour webhook URL, last delivery, IP allowlist and current_ip — the IP we see for your server (the signing secret is only shown in the panel)
POST /api/settings/orders{"allow_duplicate": true} — let your API orders repeat the same player + item without the 90 s wait

Webhooks & IP allowlist

Instead of polling /api/topup/status, set a webhook URL in the panel under API & bot. When one of your orders succeeds or fails (from the API, panel or Telegram bot) we send it to your server:

POST https://your-shop.com/apifire/webhook
Content-Type: application/json
X-Apifire-Event: order.success
X-Apifire-Delivery: 6f1c…            unique per delivery
X-Apifire-Timestamp: 1792900000
X-Apifire-Signature: sha256=3b9f…

{
  "event": "order.success",           // or "order.failed"
  "order": {
    "id": 512, "order_ref": "shop-000123", "status": "success",
    "region": "SG", "player_id": "43434344343", "player": "NickFF",
    "item_id": "100", "item_name": "100 Diamond",
    "product": "Free Fire SG — 100 Diamond", "order_id": "4823019938",
    "shells": 50, "shell_before": 1000, "shell_after": 950,
    "message": "success", "source": "api", "charged": 0.001,
    "created_at": "2026-10-22 08:30:00"
  },
  "sent_at": "2026-10-22 08:30:14"
}

Answer with any 2xx status within 10 seconds. Otherwise the call is retried twice more (after 5 and 30 seconds). Use order.id / order_ref to ignore a delivery you already handled. Only public https:// (or http://) URLs are allowed, and redirects are not followed.

Check every call with your signing secret (shown next to the webhook URL) — the signature is an HMAC-SHA256 of "<timestamp>.<raw body>":

import hashlib, hmac, time

def verify(secret: str, body: bytes, timestamp: str, signature: str) -> bool:
    if abs(time.time() - int(timestamp)) > 300:      # reject old / replayed calls
        return False
    mac = hmac.new(secret.encode(), timestamp.encode() + b"." + body, hashlib.sha256).hexdigest()
    return hmac.compare_digest("sha256=" + mac, signature)
import crypto from "node:crypto"

function verify(secret, rawBody, timestamp, signature) {
  if (Math.abs(Date.now() / 1000 - Number(timestamp)) > 300) return false
  const mac = crypto.createHmac("sha256", secret).update(timestamp + "." + rawBody).digest("hex")
  const want = Buffer.from("sha256=" + mac), got = Buffer.from(signature || "")
  return want.length === got.length && crypto.timingSafeEqual(want, got)
}

IP allowlist: add your server's IPs or ranges (one per line, e.g. 203.0.113.7 or 203.0.113.0/24) and your API keys stop working from anywhere else — a leaked key can't be used. Requests from other IPs get 403 "IP … is not on this account's API allowlist". Signing in to the panel is not affected, and the panel shows the IP we see for you.

Telegram bot

Link your Telegram ID in the panel, then order by chat with the same balance:

/sg 43434344343 100          region command
43434344343 ph-100            short format
/ph 43434344343 100, 55667788990 20
/w 43434344343                your own shortcut (e.g. /w = SG Weekly)

Need an API key?

Create a free account to get the panel, API keys and the Telegram bot.