Request
https://api.zapi.ink/v1/finance:pluang/tradebookSend 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
| 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 |
| tab | enum: ALL | PRICE | TIME | VOLUME | query | No | Which block fills `items`: PRICE (default), TIME or VOLUME. ALL returns the price block. Example: PRICE |
Code examples
curl -X GET "https://api.zapi.ink/v1/finance:pluang/tradebook?code=BBCA&stockId=10020&tab=PRICE" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/finance:pluang/tradebook?code=BBCA&stockId=10020&tab=PRICE", { 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/tradebook", params={"code":"BBCA","stockId":"10020","tab":"PRICE"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "finance:pluang", "data": { "tab": "PRICE", "code": "BBCA", "count": 4, "items": [ { "price": 6350, "buyFreq": 2489, "buyLots": 53734, "preFreq": 0, "preLots": 0, "postFreq": 140, "postLots": 8465, "sellFreq": 0, "sellLots": 0, "totalFreq": 3105, "totalLots": 220983 }, { "price": 6325, "buyFreq": 1975, "buyLots": 90923, "preFreq": 0, "preLots": 0, "postFreq": 0, "postLots": 0, "sellFreq": 3125, "sellLots": 125284, "totalFreq": 5100, "totalLots": 216207 }, { "price": 6300, "buyFreq": 230, "buyLots": 31328, "preFreq": 365, "preLots": 14287, "postFreq": 0, "postLots": 0, "sellFreq": 2789, "sellLots": 85247, "totalFreq": 3384, "totalLots": 130862 }, { "price": 6275, "buyFreq": 0, "buyLots": 0, "preFreq": 0, "preLots": 0, "postFreq": 0, "postLots": 0, "sellFreq": 74, "sellLots": 1483, "totalFreq": 74, "totalLots": 1483 } ], "byTime": [], "source": "pluang", "byPrice": [ { "price": 6350, "buyFreq": 2489, "buyLots": 53734, "preFreq": 0, "preLots": 0, "postFreq": 140, "postLots": 8465, "sellFreq": 0, "sellLots": 0, "totalFreq": 3105, "totalLots": 220983 }, { "price": 6325, "buyFreq": 1975, "buyLots": 90923, "preFreq": 0, "preLots": 0, "postFreq": 0, "postLots": 0, "sellFreq": 3125, "sellLots": 125284, "totalFreq": 5100, "totalLots": 216207 }, { "price": 6300, "buyFreq": 230, "buyLots": 31328, "preFreq": 365, "preLots": 14287, "postFreq": 0, "postLots": 0, "sellFreq": 2789, "sellLots": 85247, "totalFreq": 3384, "totalLots": 130862 }, { "price": 6275, "buyFreq": 0, "buyLots": 0, "preFreq": 0, "preLots": 0, "postFreq": 0, "postLots": 0, "sellFreq": 74, "sellLots": 1483, "totalFreq": 74, "totalLots": 1483 } ], "stockId": 10020, "byVolume": [] }, "timestamp": "2026-08-15T16:14:34Z" }
Frequently asked questions
How do I call the Pluang Tradebook API?
Send a GET request to https://api.zapi.ink/v1/finance:pluang/tradebook with your Zapi key in the x-api-key header. Parameters — optional: code, stockId, tab. The response is JSON in the { project, data, timestamp } envelope.
What does the Pluang Tradebook API return?
Rekap transaksi per harga, per waktu, dan per volume — ketiganya dikirim sekaligus, lengkap dengan sesi pra dan pasca. The example response has the fields tab, code, count, items, byTime, source, byPrice, stockId. Each item in items has fields such as price, buyFreq, buyLots, preFreq, preLots, postFreq, postLots, sellFreq.
Is the Pluang Tradebook 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 Tradebook 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 "tradebook".
What other Pluang API endpoints are there?
It has 31 endpoints. Besides Tradebook: Resolve Stock Code, Quote, Multi Quote, Reference Prices, Intraday Chart, Order Book, and 24 more.
