APIs / Trainline / Stations Nearby
Trainline: Stations Nearby
Stations Nearby from Trainline as JSON. 1 credit per successful call.
GET /v1/trainline/stations-nearby
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
station_id | string | Required | Any |
window | string | Optional | 0000-0600, 0600-1200, 1200-1800, 1800-2400 |
locale | string | Optional | Any |
Example request
Trainline
GET/v1/trainline/stations-nearby?station_id=urn%3Atrainline%3Ageneric%3Aloc%3AEUS1444gb
{
"success": true,
"data": {
"station_id": "urn:trainline:generic:loc:EUS1444gb",
"window": "0600-1200",
"stations": [
{
"id": "urn:trainline:generic:loc:MAN2968gb",
"name": "Manchester Piccadilly",
"short_code": "MAN",
"type": "station",
"country_code": "GB",
"latitude": 53.4767,
"longitude": -2.229,
"timezone": "Europe/London",
"parent": {
"name": "Manchester",
"type": "stationGroup"
},
"attributes": [
"MainStation",
"BusStation",
"category:train"
],
"carriers": [
"atoc",
"nationalexpress"
],
"score": 0.32
},
{
"id": "urn:trainline:generic:loc:BHM1127gb",
"name": "Birmingham New Street",
"short_code": "BHM",
"type": "station",
"country_code": "GB",
"latitude": 52.4782,
"longitude": -1.8984,
"timezone": "Europe/London",
"parent": {
"name": "Birmingham",
"type": "stationGroup"
},
"subtitle": "City centre, Main",
"attributes": [
"MainStation",
"BusStation",
"category:train"
],
"carriers": [
"atoc",
"nationalexpress"
],
"score": 0.242
},
{
"id": "urn:trainline:generic:loc:MKC1378gb",
"name": "Milton Keynes Central",
"short_code": "MKC",
"type": "station",
"country_code": "GB",
"latitude": 52.0343,
"longitude": -0.7741,
"timezone": "Europe/London",
"attributes": [
"BusStation",
"category:train"
],
"carriers": [
"atoc",
"nationalexpress"
],
"score": 0.202
}
]
},
"meta": {
"endpoint_family": "stations_nearby"
}
}200 OKJSONX-Credits-Used: 1
Recorded 12 Nov 2026 and shortened.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
data has these 3 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
station_id | string |
window | string |
stations | object[] |