/v1/lookup
Look up OSM objects by id
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
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_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"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
}