Skip to content
GET /v1/levels

Admin levels available for a country

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/geoboundaries-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/geoboundaries-api/v1/levels" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/geoboundaries-api/v1/levels", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/geoboundaries-api/v1/levels");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/geoboundaries-api/v1/levels",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "iso": "DEU",
        "count": 4,
        "levels": [
            {
                "name": "Germany",
                "year": "2021",
                "level": "ADM0",
                "admin_unit_count": 1,
                "download_geojson": "https://github.com/wmgeolab/geoBoundaries/raw/9469f09/releaseData/gbOpen/DEU/ADM0/geoBoundaries-DEU-ADM0.geojson",
                "download_simplified": "https://github.com/wmgeolab/geoBoundaries/raw/9469f09/releaseData/gbOpen/DEU/ADM0/geoBoundaries-DEU-ADM0_simplified.geojson"
            },
            {
                "name": "Germany",
                "year": "2021",
                "level": "ADM1",
                "admin_unit_count": 16,
                "download_geojson": "https://github.com/wmgeolab/geoBoundaries/raw/9469f09/releaseData/gbOpen/DEU/ADM1/geoBoundaries-DEU-ADM1.geojson",
                "download_simplified": "https://github.com/wmgeolab/geoBoundaries/raw/9469f09/releaseData/gbOpen/DEU/ADM1/geoBoundaries-DEU-ADM1_simplified.geojson"
            },
            {
                "name": "Germany",
                "year": "2021",
                "level": "ADM2",
                "admin_unit_count": 38,
                "download_geojson": "https://github.com/wmgeolab/geoBoundaries/raw/9469f09/releaseData/gbOpen/DEU/ADM2/geoBoundaries-DEU-ADM2.geojson",
                "download_simplified": "https://github.com/wmgeolab/geoBoundaries/raw/9469f09/releaseData/gbOpen/DEU/ADM2/geoBoundaries-DEU-ADM2_simplified.geojson"
            },
            {
                "name": "Germany",
                "year": "2021",
                "level": "ADM3",
                "admin_unit_count": 428,
                "download_geojson": "https://github.com/wmgeolab/geoBoundaries/raw/9469f09/releaseData/gbOpen/DEU/ADM3/geoBoundaries-DEU-ADM3.geojson",
                "download_simplified": "https://github.com/wmgeolab/geoBoundaries/raw/9469f09/releaseData/gbOpen/DEU/ADM3/geoBoundaries-DEU-ADM3_simplified.geojson"
            }
        ]
    },
    "meta": {
        "timestamp": "2026-06-01T08:13:02.966Z",
        "request_id": "9f1ef502-d55e-4547-ac27-52ce872cadca"
    },
    "status": "ok",
    "message": "Levels retrieved",
    "success": true
}