/v1/levels
Admin levels available for a country
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}