/v1/search
Search locations by name with country / function filters
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/locode-api/v1/search" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/locode-api/v1/search", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/locode-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/locode-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": 3,
"limit": 20,
"query": "rotterdam",
"total": 3,
"offset": 0,
"filters": {
"country": null,
"function": null
},
"results": [
{
"code": "NLRTM",
"name": "Rotterdam",
"country": "NL",
"latitude": 51.917,
"functions": [
"Port",
"Rail terminal",
"Road terminal",
"Airport",
"Postal exchange"
],
"longitude": 4.5
},
{
"code": "USRAJ",
"name": "Rotterdam",
"country": "US",
"latitude": 42.783,
"functions": [
"Port",
"Rail terminal",
"Road terminal"
],
"longitude": -73.967
},
{
"code": "USRJN",
"name": "Rotterdam Junction",
"country": "US",
"latitude": null,
"functions": [
"Road terminal"
],
"longitude": null
}
]
},
"meta": {
"timestamp": "2026-05-31T06:28:07.093Z",
"request_id": "665e8de8-a570-4665-80c2-e5e357045e14"
},
"status": "ok",
"message": "Locations listed",
"success": true
}