Indonesia Regions API Reference
2 routes under /v1/id/regions. Base URL https://api.apifor.dev, authenticated with x-api-key, one credit per request.
GET
/v1/id/regionsList regions with filters and paging.
| Parameter | In | Type | Rules |
|---|---|---|---|
| page | query | integer | min 1 · default 1 |
| limit | query | integer | 1 to 200 · default 50 |
| country | query | string | ISO 3166-1 alpha-2 |
| q | query | string | 2 to 100 chars |
| level | query | string | one of provinces, regencies, districts, villages |
curl 'https://api.apifor.dev/v1/id/regions' \
-G -d limit=1 \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": [
{
"id": "11",
"code": "11",
"name": "Aceh",
"alt_name": "Aceh",
"lat": 5.571,
"lng": 95.341,
"is_active": 1,
"created_at": "2026-09-18 15:54:24",
"updated_at": "2026-09-18 15:54:24"
}
]
}200Successful response. Pagination is explicit; no silent truncation.400Invalid query parameters404Record not found500Dataset unavailable
GET
/v1/id/regions/{id}Find indonesia regions by identifier.
| Parameter | In | Type | Rules |
|---|---|---|---|
| id * | path | string | None |
curl 'https://api.apifor.dev/v1/id/regions/{id}' \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": {
"id": "11",
"code": "11",
"name": "Aceh",
"alt_name": "Aceh",
"lat": 5.571,
"lng": 95.341,
"is_active": 1,
"created_at": "2026-09-18 15:54:24",
"updated_at": "2026-09-18 15:54:24"
}
}200Successful response. Pagination is explicit; no silent truncation.400Invalid query parameters404Record not found500Dataset unavailable