Vai al contenuto
GET /v1/boundary

A country boundary at one level

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/geoboundaries-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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_..."}
)

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}