Sources › Finance › IDX (Bursa Efek Indonesia) › Margin Summary

IDX Margin Summary API
Ringkasan perdagangan efek margin. Terbit per periode margin, bukan harian — perhatikan tanggal pada respons.
Request
https://api.zapi.ink/v1/finance:idx/margin-summarySend 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 hour.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| date | string | query | No | Tanggal periode (YYYYMMDD atau YYYY-MM-DD). Default: periode terakhir Example: 2026-07-14 |
| length | number | query | No | Jumlah baris (default 50, maks 300) Example: 50 |
| start | number | query | No | Offset baris (default 0) Example: 0 |
Code examples
curl -X GET "https://api.zapi.ink/v1/finance:idx/margin-summary?date=2026-07-14&length=50&start=0" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/finance:idx/margin-summary?date=2026-07-14&length=50&start=0", { 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:idx/margin-summary", params={"date":"2026-07-14","length":"50","start":"0"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "finance:idx", "data": { "data": [ { "low": 8350, "code": "AADI", "high": 8500, "close": 8400, "value": 4010085000, "change": 25, "volume": 474200, "frequency": 178 }, { "low": 6300, "code": "AALI", "high": 6375, "close": 6300, "value": 247640000, "change": 0, "volume": 39000, "frequency": 62 }, { "low": 2350, "code": "ABMM", "high": 2420, "close": 2370, "value": 17927000, "change": 60, "volume": 7600, "frequency": 12 }, { "low": 344, "code": "ACES", "high": 350, "close": 346, "value": 402922600, "change": -4, "volume": 1165000, "frequency": 101 }, { "low": 158, "code": "ADHI", "high": 163, "close": 161, "value": 30115900, "change": 3, "volume": 187300, "frequency": 37 } ], "date": "2026-07-14T00:00:00", "start": 0, "total": 220, "length": 5, "dataset": "margin-summary", "provider": "idx" }, "timestamp": "2026-06-13T02:22:00Z" }
Frequently asked questions
How do I call the IDX Margin Summary API?
Send a GET request to https://api.zapi.ink/v1/finance:idx/margin-summary with your Zapi key in the x-api-key header. Parameters — optional: date, length, start. The response is JSON in the { project, data, timestamp } envelope.
What does the IDX Margin Summary API return?
Ringkasan perdagangan efek margin. The example response has the fields data, date, start, total, length, dataset, provider. Each item in data has fields such as low, code, high, close, value, change, volume, frequency.
Is the IDX Margin Summary 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 5 Zap. Paid plans raise the limits.
Can an AI assistant call the IDX Margin Summary 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 "idx" and endpoint "margin-summary".
What other IDX API endpoints are there?
It has 47 endpoints. Besides Margin Summary: Ringkasan Saham, Ringkasan Indeks, Top Movers, Ringkasan Broker, Emiten Tercatat, Daftar Securities, and 40 more.