Request
https://api.zapi.ink/v1/finance:pluang/orderbookSend 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 15 seconds.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| code | string | query | No | Stock code. Either this or `stockId` is required. Example: BBCA |
| stockId | number | query | No | Numeric Pluang asset id, 10000 or greater. Alternative to `code`. Example: 10020 |
Code examples
curl -X GET "https://api.zapi.ink/v1/finance:pluang/orderbook?code=BBCA&stockId=10020" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/finance:pluang/orderbook?code=BBCA&stockId=10020", { 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:pluang/orderbook", params={"code":"BBCA","stockId":"10020"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "finance:pluang", "data": { "asks": [ { "lots": 14620, "price": 6350 } ], "bids": [ { "lots": 17597, "price": 6325 } ], "code": "BBCA", "source": "pluang", "bestAsk": 6350, "bestBid": 6325, "stockId": 10020, "askCount": 1, "bidCount": 1, "askPercent": 45, "bidPercent": 55 }, "timestamp": "2026-08-15T16:14:34Z" }
Frequently asked questions
How do I call the Pluang Order Book API?
Send a GET request to https://api.zapi.ink/v1/finance:pluang/orderbook with your Zapi key in the x-api-key header. Parameters — optional: code, stockId. The response is JSON in the { project, data, timestamp } envelope.
What does the Pluang Order Book API return?
Antrean bid dan ask satu saham IDX beserta lot-nya, plus porsi bid/ask. The example response has the fields asks, bids, code, source, bestAsk, bestBid, stockId, askCount. Each item in asks has fields such as lots, price.
Is the Pluang 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 2 Zap. Paid plans raise the limits.
Can an AI assistant call the Pluang 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 "pluang" and endpoint "orderbook".
What other Pluang API endpoints are there?
It has 31 endpoints. Besides Order Book: Resolve Stock Code, Quote, Multi Quote, Reference Prices, Intraday Chart, Running Trade, and 24 more.
