Regions All docs

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/regions

List regions with filters and paging.

ParameterInTypeRules
pagequeryintegermin 1 · default 1
limitqueryinteger1 to 200 · default 50
countryquerystringISO 3166-1 alpha-2
qquerystring2 to 100 chars
levelquerystringone of provinces, regencies, districts, villages
GET/v1/id/regions
curl 'https://api.apifor.dev/v1/id/regions' \
  -G -d limit=1 \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "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 parameters
  • 404Record not found
  • 500Dataset unavailable
GET/v1/id/regions/{id}

Find indonesia regions by identifier.

ParameterInTypeRules
id *pathstringNone
GET/v1/id/regions/{id}
curl 'https://api.apifor.dev/v1/id/regions/{id}' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "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 parameters
  • 404Record not found
  • 500Dataset unavailable

Error handling · Rate limits · Source licences