Naar de inhoud
GET /v1/lookup

Look up OSM objects by id

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/geocoding-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "count": 2,
        "results": [
            {
                "lat": 52.5173885,
                "lon": 13.3951309,
                "name": "Berlin",
                "type": "administrative",
                "osm_id": 62422,
                "address": {
                    "city": "Berlin",
                    "country": "Germany",
                    "country_code": "de",
                    "ISO3166-2-lvl4": "DE-BE"
                },
                "category": "boundary",
                "osm_type": "relation",
                "place_id": 144602669,
                "importance": 0.8522196536088086,
                "place_rank": 7,
                "addresstype": "city",
                "boundingbox": [
                    52.3382448,
                    52.6755087,
                    13.088345,
                    13.7611609
                ],
                "display_name": "Berlin, Germany"
            },
            {
                "lat": 52.5173885,
                "lon": 13.3951309,
                "name": "Berlin",
                "type": "city",
                "osm_id": 240109189,
                "address": {
                    "city": "Berlin",
                    "country": "Germany",
                    "country_code": "de",
                    "ISO3166-2-lvl4": "DE-BE"
                },
                "category": "place",
                "osm_type": "node",
                "place_id": 144598842,
                "importance": 0.20000999999999997,
                "place_rank": 15,
                "addresstype": "city",
                "boundingbox": [
                    52.3573885,
                    52.6773885,
                    13.2351309,
                    13.5551309
                ],
                "display_name": "Berlin, Germany"
            }
        ]
    },
    "meta": {
        "timestamp": "2026-05-29T20:06:49.952Z",
        "request_id": "458d08e4-10e6-4332-a08c-7b31b4f68ef9"
    },
    "status": "ok",
    "message": "Lookup retrieved successfully",
    "success": true
}