Note
Please review this additional information before continuing.
The regions dataset was originally provided in raw CSV format by kodewilayah.id. I converted it into JSON to make it usable as a static public API. The dataset is free to use without attribution, so you're good to go!
Public static API for Indonesian regions
- Powered by jsDelivr for fast access
- Dataset is complete based on "Permendagri No. 72/2019" down to the village/kelurahan level
- and more to explore
This is a static API, which means all data is served as pre-generated JSON files. There's no backend processing; the files are hosted on a CDN, making responses fast and reliable.
To get an ID for each endpoint, follow the hierarchical order: provinces → cities → districts → villages.
-
Get all provinces
https://cdn.jsdelivr.net/gh/rezzvy/geonesia-api/data/main.json -
Get cities
Replace
{ID}with the province IDhttps://cdn.jsdelivr.net/gh/rezzvy/geonesia-api/data/cities/{ID}.json -
Get districts
Replace
{ID}with the city IDhttps://cdn.jsdelivr.net/gh/rezzvy/geonesia-api/data/districts/{ID}.json -
Get villages
Replace
{ID}with the district IDhttps://cdn.jsdelivr.net/gh/rezzvy/geonesia-api/data/villages/{ID}.json
Check out our demo for details and a playground.
There's always room for improvement. Feel free to contribute!
The game is licensed under MIT License. Check the license file for more details.