National Rail API guide

nationalrail.co.uk

Use National Rail to check live departures and platforms, compare journey options, and look up walk-up adult fares between stations.

Actions and inputs

board

Check live departures and platform information at one or more stations.

Inputs Station CRS codes; optional time window or result count

journey

Compare live train options between two stations.

Inputs Origin and destination CRS codes; optional ranking

why

Check a train's expected times, calling points, and running status.

Inputs Service ID

fare

Look up walk-up adult single and return fares between stations.

Inputs Origin and destination CRS codes; optional travel date

Saved National Rail commute search in Smith

Create

Save a named commute search in Smith.

Inputs Commute name, origin and destination CRS codes, departure window

Read

View the saved commute search and check its next departures.

Inputs Commute name

Update

Change the stations or departure window for the saved commute search.

Inputs Commute name, revised station codes or departure window

Delete

Remove the saved National Rail commute search from Smith.

Inputs Commute name