Request
https://api.zapi.ink/v1/finance:kontan/pdbSend 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 |
|---|---|---|---|---|
| section | number | query | No | Which table on the page, 1-based. Default 1; `sections` lists them all Example: 1 |
Code examples
curl -X GET "https://api.zapi.ink/v1/finance:kontan/pdb?section=1" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/finance:kontan/pdb?section=1", { 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:kontan/pdb", params={"section":"1"}, headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "finance:kontan", "data": { "count": 10, "items": [ { "q1": "3264523,50 (-0,98)", "q2": "3396302,60 (4,04)", "q3": "3444756,70 (1,43)", "q4": "3474461,20 (0,86)", "year": "2025", "total": "13580524,70 (5,11)" }, { "q1": "3112906,10 (-0,83)", "q2": "3230971,10 (3,79)", "q3": "3279593,40 (1,50)", "q4": "3296741,70 (0,53)", "year": "2024", "total": "12920281,70 (5,03)" }, { "q1": "2961512,20 (-0,91)", "q2": "3075791,50 (3,86)", "q3": "3124938,50 (1,60)", "q4": "3139084,50 (0,45)", "year": "2023", "total": "12301393,60 (5,05)" }, { "q1": "2819330,40 (-0,94)", "q2": "2924458,00 (3,73)", "q3": "2977972,90 (1,83)", "q4": "2988636,50 (0,36)", "year": "2022", "total": "11710397,80 (5,31)" }, { "q1": "2684447,50 (-0,93)", "q2": "2773067,20 (3,30)", "q3": "2816494,70 (1,57)", "q4": "2846068,50 (1,05)", "year": "2021", "total": "11120077,90 (3,70)" }, { "q1": "2703027,10 (-2,41)", "q2": "2589769,20 (-4,19)", "q3": "2720481,30 (5,05)", "q4": "2709721,70 (-0,40)", "year": "2020", "total": "10722999,30 (-2,07)" }, { "q1": "2625180,50 (-0,52)", "q2": "2735414,10 (4,20)", "q3": "2818812,70 (3,05)", "q4": "2769748,10 (-1,74)", "year": "2019", "total": "10949155,40 (5,02)" }, { "q1": "2498697,50 (-0,41)", "q2": "2603852,60 (4,21)", "q3": "2684332,20 (3,09)", "q4": "2638969,60 (-1,69)", "year": "2018", "total": "10425851,90 (5,17)" } ], "columns": [ { "field": "year", "label": "Tahun" }, { "field": "q1", "label": "Q1 (M)" }, { "field": "q2", "label": "Q2 (M)" }, { "field": "q3", "label": "Q3 (M)" }, { "field": "q4", "label": "Q4 (M)" }, { "field": "total", "label": "Total (M)" } ], "dataset": "pdb", "section": 2, "provider": "kontan", "sections": [ { "count": 10, "title": "PDB Harga Berlaku", "section": 1 }, { "count": 10, "title": "PDB Harga Konstan", "section": 2 } ], "sectionTitle": "PDB Harga Konstan" }, "timestamp": "2026-08-20T11:44:00Z" }
Frequently asked questions
How do I call the Kontan GDP API?
Send a GET request to https://api.zapi.ink/v1/finance:kontan/pdb with your Zapi key in the x-api-key header. Parameters — optional: section. The response is JSON in the { project, data, timestamp } envelope.
What does the Kontan GDP API return?
Gross domestic product by quarter and year, current and constant prices. The example response has the fields count, items, columns, dataset, section, provider, sections, sectionTitle. Each item in items has fields such as q1, q2, q3, q4, year, total.
Is the Kontan GDP 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 Kontan GDP 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 "kontan" and endpoint "pdb".
What other Kontan API endpoints are there?
It has 24 endpoints. Besides GDP: Channel Feed, Article Search, Article Archive, Article Detail, Trading Recap, Global Indices, and 17 more.
