Sources › Finance › Indodax › Trades

Indodax Trades API

The recently executed tape for one pair.

IndodaxGET /tradesAll plans1 Zap

Request

GET
https://api.zapi.ink/v1/finance:indodax/trades

Send your key in the x-api-key header. The response is JSON in the { project, data, timestamp } envelope, and an identical request is served from cache for 10 seconds.

Parameters

NameTypeInRequiredDescription
pairstringqueryYesTrading pair. Accepts btc_idr, btcidr or BTC/IDR. Quote currency must be IDR or USDT Example: btc_idr
limitnumberqueryNoNumber of recent trades. Default 50, max 200 Example: 50

Code examples

cURL
curl -X GET "https://api.zapi.ink/v1/finance:indodax/trades?pair=btc_idr&limit=50" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript
const res = await fetch("https://api.zapi.ink/v1/finance:indodax/trades?pair=btc_idr&limit=50", {
  method: "GET",
  headers: {
    "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
  },
});
const data = await res.json();
console.log(data);
Python
import requests

res = requests.get(
    "https://api.zapi.ink/v1/finance:indodax/trades",
    params={"pair":"btc_idr","limit":"50"},
    headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"},
)
print(res.json())

Example response

200 OK · application/json
{
  "project": "finance:indodax",
  "data": {
    "base": "BTC",
    "pair": "btc_idr",
    "count": 50,
    "items": [
      {
        "side": "buy",
        "price": 1317914000,
        "amount": 0.00015772,
        "tradeId": "72057594146822065",
        "tradedAt": 1787279328
      },
      {
        "side": "buy",
        "price": 1317914000,
        "amount": 0.00001114,
        "tradeId": "72057594146822053",
        "tradedAt": 1787279325
      },
      {
        "side": "buy",
        "price": 1317914000,
        "amount": 0.00075617,
        "tradeId": "72057594146822045",
        "tradedAt": 1787279319
      },
      {
        "side": "buy",
        "price": 1317914000,
        "amount": 0.03448426,
        "tradeId": "72057594146822039",
        "tradedAt": 1787279315
      },
      {
        "side": "buy",
        "price": 1317914000,
        "amount": 0.00017316,
        "tradeId": "72057594146822040",
        "tradedAt": 1787279315
      },
      {
        "side": "buy",
        "price": 1317914000,
        "amount": 0.00007619,
        "tradeId": "72057594146822041",
        "tradedAt": 1787279315
      },
      {
        "side": "buy",
        "price": 1317914000,
        "amount": 0.0000433,
        "tradeId": "72057594146822042",
        "tradedAt": 1787279315
      },
      {
        "side": "buy",
        "price": 1317914000,
        "amount": 0.03097794,
        "tradeId": "72057594146822043",
        "tradedAt": 1787279315
      }
    ],
    "quote": "IDR",
    "exchange": "indodax"
  },
  "timestamp": "2026-08-02T04:21:02Z"
}

Frequently asked questions

How do I call the Indodax Trades API?

Send a GET request to https://api.zapi.ink/v1/finance:indodax/trades?pair=btc_idr with your Zapi key in the x-api-key header. Parameters — required: pair; optional: limit. The response is JSON in the { project, data, timestamp } envelope.

What does the Indodax Trades API return?

The recently executed tape for one pair. The example response has the fields base, pair, count, items, quote, exchange. Each item in items has fields such as side, price, amount, tradeId, tradedAt.

Is the Indodax Trades API free?

Yes. It is on the Zapi free tier: 600 Zap a month with one API key and no credit card. Each call costs 1 Zap. Paid plans raise the limits.

Can an AI assistant call the Indodax Trades API?

Yes. Add the Zapi MCP server (https://mcp.zapi.ink/mcp) to Claude, Cursor or another MCP client and ask in plain words; it calls run_scraper with scraper "indodax" and endpoint "trades".

What other Indodax API endpoints are there?

It has 6 endpoints. Besides Trades: Ticker, Tickers, Order book, Pairs, Klines.