1. Datasets
  2. Administrative Regions

Administrative Regions API

Walk administrative areas level by level, from top-level regions down to villages. 91,599 records across 1 countries and territories, from open-admin-data.

GET /v1/regionsCC BY 4.01 countries28 Nov 2026

Request and response

The response below is the example from our OpenAPI document, so it shows the exact shape you get, though the record itself may come from another country.

GET/v1/regions
curl 'https://api.apifor.dev/v1/regions' \
  -G -d country=ID -d limit=1 \
  -H 'x-api-key: YOUR_API_KEY'
Example response · application/json
{
  "success": true,
  "data": [
    {
      "country_code": "ID",
      "level": "provinces",
      "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"
    }
  ]
}

Fields

Each record in data has these fields. A nullable field can hold null for some records.

FieldTypeExample
country_codestring"ID"
levelstring"provinces"
idstring"11"
codestring"11"
namestring"Aceh"
alt_namestring"Aceh"
latnumber5.571
lngnumber95.341
is_activeinteger1
created_atstring"2026-09-18 15:54:24"
updated_atstring"2026-09-18 15:54:24"

Filters and paging

Query parameters accepted by GET /v1/regions. Full detail, including the single-record route, is in the endpoint reference.

ParameterTypeRules
pageintegermin 1 · default 1
limitinteger1 to 200 · default 50
countrystringISO 3166-1 alpha-2
qstring2 to 100 chars
levelstringone of provinces, regencies, districts, villages
province_idstringNone
regency_idstringNone
district_idstringNone

Coverage by country

1 countries and territories have records in the 28 Nov 2026 snapshot. Each one has its own page with filters and counts.