Public API that provides structured data for
provinces, regencies, districts, and villages.
Free to use for learning, personal projects, and production.
| Query | Description |
|---|---|
| limit | Number of data per page (default: 10) |
| page | Page number (default: 1) |
| sortBy | Sort field (name, code, createdAt) |
| sortOrder | asc or desc |
| search | Search by name, code, or postalCode (village) |
| type | Kabupaten or Kota (regency only) |
| postalCode | Village postal code filter |
Full documentation available here:
https://github.com/fento2/indonesia-region-api/tree/main#api-reference
If you find this API useful, please consider giving it a star on GitHub 🌟 It really helps the project grow and motivates me to keep improving it. Github Repository