Zum Inhalt springen
GET /v1/boundary

A country boundary at one level

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/geoboundaries-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/geoboundaries-api/v1/boundary" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/geoboundaries-api/v1/boundary", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/geoboundaries-api/v1/boundary");
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/boundary",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "boundary": {
            "iso": "DEU",
            "name": "Germany",
            "year": "2021",
            "level": "ADM1",
            "source": "Federal Agency for Cartography and Geodesy",
            "license": "Data license Germany - Attribution - Version 2.0",
            "download": {
                "zip": "https://github.com/wmgeolab/geoBoundaries/raw/9469f09/releaseData/gbOpen/DEU/ADM1/geoBoundaries-DEU-ADM1-all.zip",
                "geojson": "https://github.com/wmgeolab/geoBoundaries/raw/9469f09/releaseData/gbOpen/DEU/ADM1/geoBoundaries-DEU-ADM1.geojson",
                "topojson": "https://github.com/wmgeolab/geoBoundaries/raw/9469f09/releaseData/gbOpen/DEU/ADM1/geoBoundaries-DEU-ADM1.topojson",
                "simplified_geojson": "https://github.com/wmgeolab/geoBoundaries/raw/9469f09/releaseData/gbOpen/DEU/ADM1/geoBoundaries-DEU-ADM1_simplified.geojson"
            },
            "canonical": "Länder",
            "license_url": null,
            "mean_vertices": 8850,
            "admin_unit_count": 16
        }
    },
    "meta": {
        "timestamp": "2026-06-01T08:13:02.207Z",
        "request_id": "adf09f3d-171f-4430-be4c-7de32366f6a1"
    },
    "status": "ok",
    "message": "Boundary retrieved",
    "success": true
}