Request
https://api.zapi.ink/v1/finance:stockbit/chartSend 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 1 minute.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| symbol | string | query | Yes | IDX ticker, e.g. BBCA Example: BBCA |
| count | number | query | No | Keep only the last N points. Default: the whole session Example: 100 |
Code examples
curl -X GET "https://api.zapi.ink/v1/finance:stockbit/chart?symbol=BBCA&count=100" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/finance:stockbit/chart?symbol=BBCA&count=100", { 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:stockbit/chart", params={"symbol":"BBCA","count":"100"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "finance:stockbit", "data": { "count": 5, "items": [ { "time": "2026-07-31 16:09:00", "price": 6325, "change": -125, "changePercent": -1.94 }, { "time": "2026-07-31 16:10:00", "price": 6325, "change": -125, "changePercent": -1.94 }, { "time": "2026-07-31 16:11:00", "price": 6325, "change": -125, "changePercent": -1.94 }, { "time": "2026-07-31 16:12:00", "price": 6325, "change": -125, "changePercent": -1.94 }, { "time": "2026-07-31 16:14:00", "price": 6325, "change": -125, "changePercent": -1.94 } ], "change": -125, "symbol": "BBCA", "interval": "intraday", "provider": "stockbit", "timeframe": "today", "tradingDate": "31 Jul 2026", "changePercent": -1.94, "previousClose": 6450 }, "timestamp": "2026-08-02T10:46:11Z" }
Frequently asked questions
How do I call the Stockbit Chart API?
Send a GET request to https://api.zapi.ink/v1/finance:stockbit/chart?symbol=BBCA with your Zapi key in the x-api-key header. Parameters — required: symbol; optional: count. The response is JSON in the { project, data, timestamp } envelope.
What does the Stockbit Chart API return?
Deret harga intraday satu saham, satu titik per menit perdagangan. The example response has the fields count, items, change, symbol, interval, provider, timeframe, tradingDate. Each item in items has fields such as time, price, change, changePercent.
Is the Stockbit Chart 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 Stockbit Chart 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 "stockbit" and endpoint "chart".
What other Stockbit API endpoints are there?
It has 6 endpoints. Besides Chart: Symbol, Stream, Profile, Quote, User Stream.
