/v1/search
Search subdivisions by name, country and type
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
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_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten 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
}