Transport for London
TransportGBapi.tfl.gov.uk
Live London transport status: tube, bus, DLR and Overground line status, stop points and arrivals.
Capabilities (24)
GET /v1/data/tfl/air-quality1 creditReturns the current and next-day London air quality forecast with a band, a pollutant summary and the advisory text TfL publishes.
GET /v1/data/tfl/arrivals1 creditReturns live arrival predictions for every vehicle currently running on one line, each with stop name, destination, platform, vehicle id and seconds to arrival.
GET /v1/data/tfl/bikepoints1 creditReturns every Santander Cycles docking station with its name, coordinates and live counts of bikes, e-bikes, empty docks and total docks.
GET /v1/data/tfl/bikepoint-search1 creditSearches Santander Cycles docking stations by name and returns the matches with their id, name and coordinates.
GET /v1/data/tfl/crowding1 creditReturns the typical crowding profile of one station as percentage-of-baseline figures in 15-minute bands for each day of the week, with the AM and PM peak windows named.
GET /v1/data/tfl/journey1 creditPlans public-transport journeys between two points and returns each itinerary with duration, fare where available, and a leg-by-leg breakdown of modes, lines and stops.
GET /v1/data/tfl/line1 creditReturns the current service status of one line, with severity level, a human status description and any disruption text.
GET /v1/data/tfl/line-disruption1 creditReturns the current disruptions affecting lines in one mode, each with category, type and the free-text description TfL publishes.
GET /v1/data/tfl/line-route-sequence1 creditReturns the ordered stop sequence of a line in one direction, plus the branch structure and the WGS84 line strings that draw it on a map.
GET /v1/data/tfl/lines-by-mode1 creditReturns every line belonging to one mode, with its id, display name, service types and the date the record was last modified.
GET /v1/data/tfl/line-stops1 creditReturns every stop point a line calls at, in full stop-point detail with zone, modes, coordinates and facility properties.
GET /v1/data/tfl/mode-arrivals1 creditReturns live arrival predictions across every line in one mode, each with line, stop, platform, destination and seconds to arrival.
GET /v1/data/tfl/modes1 creditReturns every transport mode name TfL serves, flagged by whether it is a TfL service, fare paying and a scheduled service.
GET /v1/data/tfl/road-corridors1 creditReturns every TfL-managed road corridor with its id, display name, current status severity and a bounding box.
GET /v1/data/tfl/road-disruption1 creditReturns current roadworks, closures and incidents on a road corridor, each with severity, category, location point, start and end dates and a description.
GET /v1/data/tfl/search1 creditSearches TfL's published content and returns scored matches with title, URL and a highlighted excerpt.
GET /v1/data/tfl/status1 creditReturns the current service status of every line in one transport mode, each with severity, status description and disruptions.
GET /v1/data/tfl/stoppoint1 creditReturns the full record for one stop, station or hub: modes served, lines, zone, accessibility and facility properties, child platforms and coordinates.
GET /v1/data/tfl/stoppoint-arrivals1 creditReturns live arrival predictions at one stop, each with line, destination, platform, vehicle id, expected arrival time and seconds to arrival.
GET /v1/data/tfl/stoppoint-disruption1 creditReturns stations and stops in one mode that are currently disrupted, each with the affected NaPTAN code, validity dates and a description of what is closed.
GET /v1/data/tfl/stoppoint-nearby1 creditReturns the stops of a given type nearest to a latitude/longitude, each with distance from the centre point, modes, lines and coordinates.
GET /v1/data/tfl/stoppoint-search1 creditSearches stops, stations and hubs by name and returns matches with id, name, modes, zone and coordinates.
GET /v1/data/tfl/timetable1 creditReturns the scheduled timetable for a line between two named stops, as departure times per station grouped by schedule period.
GET /v1/data/tfl/vehicle-arrivals1 creditReturns the remaining predicted stops of one vehicle, each with stop name, line, direction and seconds to arrival.
Response example
The shape of data from tfl/air-quality (London air quality forecast). A sample, not live data.
| $id | $type | forecastType | forecastID | forecastBand | forecastSummary | nO2Band | o3Band |
|---|---|---|---|---|---|---|---|
| 2 | Tfl.Api.Presentation.Entities.CurrentForecast, Tfl.Api.Presentation.Entities | Current | 55562 | Low | Low air pollution forecast valid from Wednesday 21 October to end of Wednesday 21 October GMT | Low | Low |
| 3 | Tfl.Api.Presentation.Entities.CurrentForecast, Tfl.Api.Presentation.Entities | Future | 55577 | Low | Low air pollution forecast valid from Thursday 22 October to end of Thursday 22 October GMT | Low | Low |
4 more columns in JSON.
Ask with this source
A prompt for your agent that names this source and how to call it through the crw MCP.
London air quality forecast
Use Transport for London (tfl) from fastCRW Pergamon, capability "London air quality forecast" (air-quality). You are asked how bad London's air is today or tomorrow. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "tfl" and capability "air-quality". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Live arrivals on a line
Use Transport for London (tfl) from fastCRW Pergamon, capability "Live arrivals on a line" (arrivals). You want every live prediction across a whole line rather than at one stop. Example options: line=24, direction=inbound, destinationStationId=940GZZLUVIC. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "tfl" and capability "arrivals". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
All cycle hire docking stations
Use Transport for London (tfl) from fastCRW Pergamon, capability "All cycle hire docking stations" (bikepoints). You need the whole cycle hire network at once, for example to build a map or find the nearest free dock yourself. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "tfl" and capability "bikepoints". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Cycle hire docking station search
Use Transport for London (tfl) from fastCRW Pergamon, capability "Cycle hire docking station search" (bikepoint-search). You know roughly where a docking station is by name and want its id without downloading the 2 MB full list. Example options: query=Hyde Park. Use the crw MCP tools: crw_find_data to confirm the source and its options, then crw_get_data with provider "tfl" and capability "bikepoint-search". Tell me the credits used and cite the licence from the response. If the crw MCP tools are missing, install them with: npx -y crw-mcp install --api-key <your fastCRW API key>
Licence
Exploit the Information commercially and non-commercially for example, by combining it with other Information, or by including it in Your own product or application
https://tfl.gov.uk/corporate/terms-and-conditions/transport-data-serviceAttribution
Display this wherever you show the data. It arrives on every response as provenance.attribution_text.
Powered by TfL Open Data
Cache: up to 60s
