Trainline: Stations
Stations from Trainline as JSON. 1 credit per successful call.
GET /v1/trainline/stations
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
query | string | Required | Up to 100 characters |
limit | integer | Optional | Any |
locale | string | Optional | Any |
Example request
Trainline
GET/v1/trainline/stations?query=london
{
"success": true,
"data": {
"query": "london",
"locale": "en-GB",
"stations": [
{
"id": "urn:trainline:generic:loc:182gb",
"name": "London",
"short_code": "182",
"type": "stationGroup",
"country_code": "GB",
"timezone": "Europe/London",
"subtitle": "Any",
"attributes": [
"BusStation",
"category:point"
],
"carriers": [
"atoc",
"distribusion",
"pao_sncf"
],
"score": 1
},
{
"id": "urn:trainline:generic:loc:EUS1444gb",
"name": "London Euston",
"short_code": "EUS",
"type": "station",
"country_code": "GB",
"latitude": 51.5284,
"longitude": -0.1346,
"timezone": "Europe/London",
"parent": {
"name": "London",
"type": "stationGroup"
},
"attributes": [
"BusStation",
"category:train"
],
"carriers": [
"atoc",
"nationalexpress"
],
"score": 0.42039064
},
{
"id": "urn:trainline:generic:loc:KGX6121gb",
"name": "London Kings Cross",
"short_code": "KGX",
"type": "station",
"country_code": "GB",
"latitude": 51.5309,
"longitude": -0.1229,
"timezone": "Europe/London",
"parent": {
"name": "London",
"type": "stationGroup"
},
"attributes": [
"BusStation",
"category:train"
],
"carriers": [
"atoc",
"nationalexpress"
],
"score": 0.26271868
}
]
},
"meta": {
"endpoint_family": "stations"
}
}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
Each item in data.stations has these 13 fields, read from a recorded call that returned 10 items. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
id | string |
name | string |
short_code | string |
type | string |
country_code | string |
timezone | string |
subtitle | string |
attributes | string[] |
carriers | string[] |
score | number |
latitude | number |
longitude | number |
parent | object |