/v1/search
Search railway stations by name and country
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/trainstations-api/v1/search" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/trainstations-api/v1/search", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/trainstations-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/trainstations-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": "berlin hbf",
"country": "DE",
"main_only": true
},
"results": [
{
"id": 7630,
"uic": "8065969",
"name": "Berlin Hbf",
"country": "DE",
"latitude": 52.52559,
"timezone": "Europe/Berlin",
"longitude": 13.36955,
"is_airport": false,
"main_station": true
}
]
},
"meta": {
"timestamp": "2026-05-31T01:02:51.768Z",
"request_id": "85c05000-92ca-43c1-bdcb-0ca8de57a83f"
},
"status": "ok",
"message": "Search completed",
"success": true
}