Skip to content

Instantly share code, notes, and snippets.

@mdcruz
Created October 9, 2025 13:22
Show Gist options
  • Select an option

  • Save mdcruz/c563eef1d09d3f0315aea09069b4510a to your computer and use it in GitHub Desktop.

Select an option

Save mdcruz/c563eef1d09d3f0315aea09069b4510a to your computer and use it in GitHub Desktop.

Get status of tube lines

https://api.tfl.gov.uk/Line/{{tubeLine}}/Status/{{fromDate}}/to/{{toDate}}

  • {{tubeLine}} - victoria, district, bakerloo
  • {{fromDate}} - YYYY-MM-DD
  • {{toDate}} - YYYY-MM-DD

Get real-time travel disruptions

https://api.tfl.gov.uk/Line/Mode/{{mode}}/Disruption

  • {{mode}} - bus, tube, dlr

https://api.tfl.gov.uk/Line/Meta/Modes (to find all the modes)

Get real-time arrivals

https://api.tfl.gov.uk/StopPoint/{{NaptanID}}/Arrivals

  • {{NaptanID}}

List of tube naptan IDs List of bus naptan IDs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment