Request
https://api.zapi.ink/v1/finance:indodax/depthSend 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
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| pair | string | query | Yes | Trading pair. Accepts btc_idr, btcidr or BTC/IDR. Quote currency must be IDR or USDT Example: btc_idr |
| limit | number | query | No | Levels per side. Default all levels returned upstream, max 200 Example: 50 |
Code examples
curl -X GET "https://api.zapi.ink/v1/finance:indodax/depth?pair=btc_idr&limit=50" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/finance:indodax/depth?pair=btc_idr&limit=50", { method: "GET", headers: { "x-api-key": "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" }, }); const data = await res.json(); console.log(data);
import requests res = requests.get( "https://api.zapi.ink/v1/finance:indodax/depth", params={"pair":"btc_idr","limit":"50"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "finance:indodax", "data": { "asks": [ { "price": 1317914000, "amount": 0.02009075 }, { "price": 1318160000, "amount": 0.00020161 }, { "price": 1318162000, "amount": 0.029039 }, { "price": 1318388000, "amount": 0.00255254 }, { "price": 1318533000, "amount": 0.09656028 }, { "price": 1318535000, "amount": 0.01088637 }, { "price": 1318635000, "amount": 0.0003665 }, { "price": 1318666000, "amount": 0.00030461 } ], "base": "BTC", "bids": [ { "price": 1317913000, "amount": 0.27245832 }, { "price": 1317912000, "amount": 0.06592225 }, { "price": 1317910000, "amount": 0.00012073 }, { "price": 1317067000, "amount": 0.00378831 }, { "price": 1317012000, "amount": 0.00007576 }, { "price": 1317000000, "amount": 0.00083346 }, { "price": 1316000000, "amount": 0.00007582 }, { "price": 1315991000, "amount": 0.00564038 } ], "pair": "btc_idr", "quote": "IDR", "spread": 1000, "askCount": 150, "bidCount": 150, "exchange": "indodax" }, "timestamp": "2026-08-02T04:21:02Z" }
Frequently asked questions
How do I call the Indodax Order book API?
Send a GET request to https://api.zapi.ink/v1/finance:indodax/depth?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 Order book API return?
Resting bids and asks for one pair. The example response has the fields asks, base, bids, pair, quote, spread, askCount, bidCount. Each item in asks has fields such as price, amount.
Is the Indodax Order book 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 Order book 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 "depth".
What other Indodax API endpoints are there?
It has 6 endpoints. Besides Order book: Ticker, Tickers, Trades, Pairs, Klines.
