Sources › Indonesia › Wilayah Indonesia › Provinces

Wilayah Indonesia Provinces API
All 38 Indonesian provinces with their official BPS codes.
Request
https://api.zapi.ink/v1/indonesia:wilayah/provincesSend 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
No parameters. Call it as is.
Code examples
curl -X GET "https://api.zapi.ink/v1/indonesia:wilayah/provinces" \ -H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"
const res = await fetch("https://api.zapi.ink/v1/indonesia:wilayah/provinces", { 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/indonesia:wilayah/provinces", headers={"x-api-key":"zpi_xxxxxxxxxxxxxxxxxxxxxxxx"}, ) print(res.json())
Example response
{ "project": "indonesia:wilayah", "data": { "count": 38, "items": [ { "code": "11", "name": "ACEH" }, { "code": "12", "name": "SUMATERA UTARA" }, { "code": "13", "name": "SUMATERA BARAT" }, { "code": "14", "name": "RIAU" }, { "code": "15", "name": "JAMBI" }, { "code": "16", "name": "SUMATERA SELATAN" }, { "code": "17", "name": "BENGKULU" }, { "code": "18", "name": "LAMPUNG" } ], "provider": "sipedas" }, "timestamp": "2026-09-02T07:32:13Z" }
Frequently asked questions
How do I call the Wilayah Indonesia Provinces API?
Send a GET request to https://api.zapi.ink/v1/indonesia:wilayah/provinces with your Zapi key in the x-api-key header. It takes no parameters. The response is JSON in the { project, data, timestamp } envelope.
What does the Wilayah Indonesia Provinces API return?
All 38 Indonesian provinces with their official BPS codes. The example response has the fields count, items, provider. Each item in items has fields such as code, name.
Is the Wilayah Indonesia Provinces 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 Wilayah Indonesia Provinces 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 "wilayah" and endpoint "provinces".
What other Wilayah Indonesia API endpoints are there?
It has 2 endpoints. Besides Provinces: Search.