Request
https://api.zapi.ink/v1/finance:ksei/ownershipSend 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 day.
Parameters
| Name | Type | In | Required | Description |
|---|---|---|---|---|
| date | string | query | No | Exact publication date (YYYY-MM-DD / YYYYMMDD), or a month (YYYY-MM) to take that month's file. Omit for the latest published. Example: 2026-07-31 |
| code | string | query | No | Keep a single security code. Example: BBCA |
| type | string | query | No | Keep one instrument type — EQUITY, CORPORATE BOND, SUKUK, MUTUAL FUND, … Example: EQUITY |
| length | number | query | No | Rows to return (default 50, max 1000) Example: 50 |
| start | number | query | No | Row offset (default 0) Example: 0 |
Code examples
curl -X GET "https://api.zapi.ink/v1/finance:ksei/ownership?date=2026-07-31&code=BBCA&type=EQUITY&length=50&start=0" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/finance:ksei/ownership?date=2026-07-31&code=BBCA&type=EQUITY&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:ksei/ownership", params={"date":"2026-07-31","code":"BBCA","type":"EQUITY","length":"50","start":"0"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "finance:ksei", "data": { "code": "BBCA", "date": "2026-07-31", "items": [ { "code": "BBCA", "date": "2026-07-31", "type": "EQUITY", "local": { "total": 16323584367, "others": 14283100, "corporate": 639358985, "insurance": 2406061790, "foundation": 73486060, "individual": 11091661113, "mutualFund": 1223560978, "securities": 110263741, "pensionFund": 327545000, "financialInstitution": 437363600 }, "price": 6325, "foreign": { "total": 36130106753, "others": 5736807195, "corporate": 989616284, "insurance": 651011685, "foundation": 299882405, "individual": 326311580, "mutualFund": 20232370180, "securities": 434821897, "pensionFund": 4948602260, "financialInstitution": 2510683267 }, "outstanding": 123275050000, "recordedTotal": 52453691120, "foreignPctOfRecorded": 68.88, "foreignPctOfOutstanding": 29.31 } ], "start": 0, "total": 1, "length": 50, "source": "ksei" }, "timestamp": "2026-08-08T10:10:23Z" }
Frequently asked questions
How do I call the KSEI Securities Ownership API?
Send a GET request to https://api.zapi.ink/v1/finance:ksei/ownership with your Zapi key in the x-api-key header. Parameters — optional: date, code, type, length, start. The response is JSON in the { project, data, timestamp } envelope.
What does the KSEI Securities Ownership API return?
Kepemilikan efek per instrumen dari berkas posisi bulanan KSEI: porsi lokal dan asing dipecah sembilan tipe investor, dengan dua basis persentase asing yang dinamai eksplisit. The example response has the fields code, date, items, start, total, length, source. Each item in items has fields such as code, date, type, local, price, foreign, outstanding, recordedTotal.
Is the KSEI Securities Ownership 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 KSEI Securities Ownership 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 "ksei" and endpoint "ownership".
What other KSEI API endpoints are there?
It has 3 endpoints. Besides Securities Ownership: Investor Demographics, Domestic Distribution.
