Overview
The Transport for London (TfL) Unified API provides real-time transport data, including line status, stop search, cycle hire locations, air quality, and journey planning.
Choose your path
| Path | Description | Time |
|---|---|---|
| Quickstart | Run all playground operations | ~10 min |
| Line status by mode | GET /Line/Mode/{modes}/Status | ~10 min |
| Search stops | GET /StopPoint/Search/{query} | ~10 min |
| Bike points | GET /BikePoint | ~5 min |
| Air quality | GET /AirQuality | ~5 min |
| Plan a journey | GET /Journey/JourneyResults/{from}/to/{to} | ~10 min |
How the API works
Base URL
All API requests are made to:
https://api.tfl.gov.uk
For this demo site, playground examples use public endpoints that don't require credentials.
API playground
Use the API playground to run curated demo endpoints in the browser:
GET /Line/Mode/{modes}/StatusGET /StopPoint/Search/{query}GET /BikePointGET /AirQualityGET /Journey/JourneyResults/{from}/to/{to}
These playground examples are configured with sample values and don't require authentication.
Downloadable OpenAPI (playground only)
The canonical machine-readable description for the playground operations is tfl-playground.json. It doesn't describe arrivals, disruptions, or other TfL paths outside the demo scope.