/v1/search
Search subdivisions by name, country and type
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/regions-api/v1/search" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/regions-api/v1/search", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/regions-api/v1/search");
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/regions-api/v1/search",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"count": 1,
"limit": 20,
"total": 1,
"offset": 0,
"filters": {
"q": "bavaria",
"type": null,
"country": "DE"
},
"results": [
{
"id": 3009,
"code": "BY",
"name": "Bavaria",
"type": "land",
"latitude": 48.94676,
"iso3166_2": "DE-BY",
"longitude": 11.40387,
"country_code": "DE",
"country_name": "Germany"
}
]
},
"meta": {
"timestamp": "2026-05-31T01:20:52.377Z",
"request_id": "565276fc-c96c-4ea7-9084-21b0d4a90c0a"
},
"status": "ok",
"message": "Search completed",
"success": true
}