Sources › Finance › Binance › Order book

Binance Order book API

Resting bids and asks for one spot pair.

BinanceGET /depthAll plans1 Zap

Request

GET
https://api.zapi.ink/v1/finance:binance/depth

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 5 minutes.

Parameters

NameTypeInRequiredDescription
symbolstringqueryYesTrading pair. Accepts BTCUSDT, BTC/USDT or btc_usdt Example: BTCUSDT
limitnumberqueryNoLevels per side. Default 50, max 500 Example: 50

Code examples

cURL
curl -X GET "https://api.zapi.ink/v1/finance:binance/depth?symbol=BTCUSDT&limit=50" \
  -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
JavaScript
const res = await fetch("https://api.zapi.ink/v1/finance:binance/depth?symbol=BTCUSDT&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:binance/depth",
    params={"symbol":"BTCUSDT","limit":"50"},
    headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"},
)
print(res.json())

Example response

200 OK · application/json
{
  "project": "finance:binance",
  "data": {
    "asks": [
      {
        "price": 72114.93,
        "amount": 0.37809
      },
      {
        "price": 72114.94,
        "amount": 0.00016
      },
      {
        "price": 72116.04,
        "amount": 0.00008
      },
      {
        "price": 72116.21,
        "amount": 0.00007
      },
      {
        "price": 72117.29,
        "amount": 0.00016
      },
      {
        "price": 72117.3,
        "amount": 0.05873
      }
    ],
    "bids": [
      {
        "price": 72114.92,
        "amount": 5.53524
      },
      {
        "price": 72114.91,
        "amount": 0.0003
      },
      {
        "price": 72114.9,
        "amount": 0.00014
      },
      {
        "price": 72114.28,
        "amount": 0.00016
      },
      {
        "price": 72114.27,
        "amount": 0.01874
      },
      {
        "price": 72112.98,
        "amount": 0.00023
      }
    ],
    "spread": 0.01,
    "symbol": "BTCUSDT",
    "askCount": 50,
    "bidCount": 50,
    "exchange": "binance"
  },
  "timestamp": "2026-08-02T04:20:59Z"
}

Frequently asked questions

How do I call the Binance Order book API?

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

What does the Binance Order book API return?

Resting bids and asks for one spot pair. The example response has the fields asks, bids, spread, symbol, askCount, bidCount, exchange. Each item in asks has fields such as price, amount.

Is the Binance 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 Binance 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 "binance" and endpoint "depth".

What other Binance API endpoints are there?

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