Sign in | Sign up

Developer Portal

Train Information

Most "train information" API endpoint documentation has moved to our new API reference docs

Nearby stations

Moved to our new API reference docs

Stations by BBOX

Moved to our new API reference docs

Stations served by an operator

Retrieves the stations served by any given operator, as identified by their two digit ATOC code.

This function is processing intensive, and may take 10 seconds to respond. You’re encouraged to cache the results, and re-use them in your app.

http://transportapi.com/v3/uk/train/operator/{atoc_code}/stations[.format]?[rpp=]

  • rpp is the number of results per page to return
    There is no cap on the number of results returned by this method, so feel free to set the limit of results you can fit on one page (the rpp) to a big number.

The json response format is very similar to nearby stations, except there is no information relating to the bounds of a search box, or the distance of stations from a focal point.


Scheduled Station Departures

Moved to our new API reference docs

Live Station Data

Moved to our new API reference docs

Live Station Arrivals [deprecated]

Live arrivals at a station

This is deprecated because instead of the using the separate 'live_arrivals' URL (documented below), all live train functionality is via the same 'live' URL: live station data. By setting a new type=arrival parameter you will get arrivals data. Please switch to use this newer approach at your earliest convenience.

Deprecated URL structure:

http://transportapi.com/v3/uk/train/station/{station_code}/live_arrivals[.format]?[limit=]

The same as live station data with type=arrival set.

The available request parameters and JSON response structure are identical to those of live station data


Scheduled Service

Moved to our new API reference docs