Skip to main content

Lines

Query Tube, rail, and other line data. The API playground highlights line status by mode (GET /Line/Mode/{modes}/Status).

Line modes

ModeDescription
tubeLondon Underground
busLondon Buses
dlrDocklands Light Railway
overgroundLondon Overground
national-railNational Rail
tramTramlink

Playground endpoint (documented in this site’s OpenAPI)

Other endpoints on the live API

These are common on api.tfl.gov.uk but not part of the downloadable playground spec:

  • GET /Line/{ids}/Status — status for specific line IDs
  • GET /Line/{ids}/Route — route geometry and stops
  • GET /Line/Mode/{modes} — line metadata by mode

Guides