Sources › Finance › Indodax › Klines

Indodax Klines API

Indodax OHLCV candles, from the TradingView UDF datafeed the market page uses.

IndodaxGET /klinesAll plans1 Zap

Request

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

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 30 seconds.

Parameters

NameTypeInRequiredDescription
pairstringqueryYesTrading pair. Accepts btc_idr, btcidr or BTC/IDR. Quote currency must be IDR or USDT Example: btc_idr
tfstringqueryNoCandle size: whole minutes (1, 5, 15, 30, 60, 120, 240) or 1D, 3D, 1W. Default 15 Example: 15
fromstringqueryNoWindow start. Epoch seconds/ms or ISO date. Default 200 candles before `to` Example: 2026-07-01T00:00:00Z
tostringqueryNoWindow end. Epoch seconds/ms or ISO date. Default now Example: 2026-08-01T00:00:00Z
limitnumberqueryNoKeep only the newest N candles of the window. Default all Example: 500

Code examples

cURL
curl -X GET "https://api.zapi.ink/v1/finance:indodax/klines?pair=btc_idr&tf=15&from=2026-07-01T00%3A00%3A00Z&to=2026-08-01T00%3A00%3A00Z&limit=500" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript
const res = await fetch("https://api.zapi.ink/v1/finance:indodax/klines?pair=btc_idr&tf=15&from=2026-07-01T00%3A00%3A00Z&to=2026-08-01T00%3A00%3A00Z&limit=500", {
  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/klines",
    params={"pair":"btc_idr","tf":"15","from":"2026-07-01T00:00:00Z","to":"2026-08-01T00:00:00Z","limit":"500"},
    headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"},
)
print(res.json())

Example response

200 OK · application/json
{
  "project": "finance:indodax",
  "data": {
    "tf": "15",
    "to": 1787279330,
    "base": "BTC",
    "from": 1787099330,
    "pair": "btc_idr",
    "count": 201,
    "items": [
      {
        "low": 1150916000,
        "date": "2026-08-19T00:15:00.000Z",
        "high": 1151002000,
        "open": 1151002000,
        "close": 1150916000,
        "volume": 0.1083018,
        "openTime": 1787098500000,
        "closeTime": 1787099399999
      },
      {
        "low": 1148534000,
        "date": "2026-08-19T00:30:00.000Z",
        "high": 1150918000,
        "open": 1150918000,
        "close": 1149245000,
        "volume": 0.10019917,
        "openTime": 1787099400000,
        "closeTime": 1787100299999
      },
      {
        "low": 1148025000,
        "date": "2026-08-19T00:45:00.000Z",
        "high": 1148983000,
        "open": 1148539000,
        "close": 1148153000,
        "volume": 0.09220108,
        "openTime": 1787100300000,
        "closeTime": 1787101199999
      },
      {
        "low": 1145907000,
        "date": "2026-08-19T01:00:00.000Z",
        "high": 1148331000,
        "open": 1148024000,
        "close": 1148242000,
        "volume": 0.53834921,
        "openTime": 1787101200000,
        "closeTime": 1787102099999
      },
      {
        "low": 1147744000,
        "date": "2026-08-19T01:15:00.000Z",
        "high": 1147984000,
        "open": 1147745000,
        "close": 1147824000,
        "volume": 0.26493121,
        "openTime": 1787102100000,
        "closeTime": 1787102999999
      },
      {
        "low": 1145908000,
        "date": "2026-08-19T01:30:00.000Z",
        "high": 1148241000,
        "open": 1147745000,
        "close": 1146060000,
        "volume": 0.2205319,
        "openTime": 1787103000000,
        "closeTime": 1787103899999
      },
      {
        "low": 1146014000,
        "date": "2026-08-19T01:45:00.000Z",
        "high": 1146055000,
        "open": 1146055000,
        "close": 1146055000,
        "volume": 0.10137007,
        "openTime": 1787103900000,
        "closeTime": 1787104799999
      },
      {
        "low": 1146014000,
        "date": "2026-08-19T02:00:00.000Z",
        "high": 1146055000,
        "open": 1146055000,
        "close": 1146054000,
        "volume": 0.03404333,
        "openTime": 1787104800000,
        "closeTime": 1787105699999
      }
    ],
    "quote": "IDR",
    "total": 201,
    "dataset": "klines",
    "provider": "indodax"
  },
  "timestamp": "2026-08-02T04:21:02Z"
}

Frequently asked questions

How do I call the Indodax Klines API?

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

What does the Indodax Klines API return?

Indodax OHLCV candles, from the TradingView UDF datafeed the market page uses. The example response has the fields tf, to, base, from, pair, count, items, quote. Each item in items has fields such as low, date, high, open, close, volume, openTime, closeTime.

Is the Indodax Klines 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 Klines 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 "klines".

What other Indodax API endpoints are there?

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