/v1/search
Location search / geocoding
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/weather-api/v1/search" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/weather-api/v1/search", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/weather-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/weather-api/v1/search",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"count": 10,
"query": "Berlin",
"results": [
{
"id": 2950159,
"name": "Berlin",
"region": "State of Berlin",
"country": "Germany",
"latitude": 52.52437,
"timezone": "Europe/Berlin",
"elevation": 74,
"longitude": 13.41053,
"population": 3426354,
"country_code": "DE"
},
{
"id": 5083330,
"name": "Berlin",
"region": "New Hampshire",
"country": "United States",
"latitude": 44.46867,
"timezone": "America/New_York",
"elevation": 311,
"longitude": -71.18508,
"population": 9367,
"country_code": "US"
},
{
"id": 4500771,
"name": "Berlin",
"region": "New Jersey",
"country": "United States",
"latitude": 39.79123,
"timezone": "America/New_York",
"elevation": 50,
"longitude": -74.92905,
"population": 7590,
"country_code": "US"
},
{
"id": 4349706,
"name": "Brunswick",
"region": "Maryland",
"country": "United States",
"latitude": 39.31427,
"timezone": "America/New_York",
"elevation": 90,
"longitude": -77.62777,
"population": 6116,
"country_code": "US"
},
{
"id": 5245497,
"name": "Berlin",
"region": "Wisconsin",
"country": "United States",
"latitude": 43.96804,
"timezone": "America/Chicago",
"elevation": 246,
"longitude": -88.94345,
"population": 5420,
"country_code": "US"
},
{
"id": 4348460,
"name": "Berlin",
"region": "Maryland",
"country": "United States",
"latitude": 38.32262,
"timezone": "America/New_York",
"elevation": 11,
"longitude": -75.21769,
"population": 5065,
"country_code": "US"
},
{
"id": 4930431,
"name": "Berlin",
"region": "Massachusetts",
"country": "United States",
"latitude": 42.3812,
"timezone": "America/New_York",
"elevation": 100,
"longitude": -71.63701,
"population": 2422,
"country_code": "US"
},
{
"id": 455651
…