Skip to main content
All providers

Transport for London

TransportGB

api.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 credit

Returns the current and next-day London air quality forecast with a band, a pollutant summary and the advisory text TfL publishes.

No parameters
GET /v1/data/tfl/arrivals1 credit

Returns live arrival predictions for every vehicle currently running on one line, each with stop name, destination, platform, vehicle id and seconds to arrival.

linedirection?destinationStationId?
GET /v1/data/tfl/bikepoints1 credit

Returns every Santander Cycles docking station with its name, coordinates and live counts of bikes, e-bikes, empty docks and total docks.

No parameters
GET /v1/data/tfl/bikepoint-search1 credit

Searches Santander Cycles docking stations by name and returns the matches with their id, name and coordinates.

query
GET /v1/data/tfl/crowding1 credit

Returns 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.

id
GET /v1/data/tfl/journey1 credit

Plans 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.

fromtovia?date?time?timeIs?journeyPreference?mode?accessibilityPreference?walkingSpeed?maxWalkingMinutes?nationalSearch?useMultiModalCall?cyclePreference?bikeProficiency?
GET /v1/data/tfl/line1 credit

Returns the current service status of one line, with severity level, a human status description and any disruption text.

linedetail?
GET /v1/data/tfl/line-disruption1 credit

Returns the current disruptions affecting lines in one mode, each with category, type and the free-text description TfL publishes.

mode
GET /v1/data/tfl/line-route-sequence1 credit

Returns 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.

linedirectionserviceTypes?excludeCrowding?
GET /v1/data/tfl/lines-by-mode1 credit

Returns every line belonging to one mode, with its id, display name, service types and the date the record was last modified.

mode
GET /v1/data/tfl/line-stops1 credit

Returns every stop point a line calls at, in full stop-point detail with zone, modes, coordinates and facility properties.

linetflOperatedNationalRailStationsOnly?
GET /v1/data/tfl/mode-arrivals1 credit

Returns live arrival predictions across every line in one mode, each with line, stop, platform, destination and seconds to arrival.

modecount?
GET /v1/data/tfl/modes1 credit

Returns every transport mode name TfL serves, flagged by whether it is a TfL service, fare paying and a scheduled service.

No parameters
GET /v1/data/tfl/road-corridors1 credit

Returns every TfL-managed road corridor with its id, display name, current status severity and a bounding box.

No parameters
GET /v1/data/tfl/road-disruption1 credit

Returns current roadworks, closures and incidents on a road corridor, each with severity, category, location point, start and end dates and a description.

roadstripContent?severities?categories?closures?startDate?endDate?
GET /v1/data/tfl/search1 credit

Searches TfL's published content and returns scored matches with title, URL and a highlighted excerpt.

query
GET /v1/data/tfl/status1 credit

Returns the current service status of every line in one transport mode, each with severity, status description and disruptions.

modedetail?severityLevel?
GET /v1/data/tfl/stoppoint1 credit

Returns the full record for one stop, station or hub: modes served, lines, zone, accessibility and facility properties, child platforms and coordinates.

idincludeCrowdingData?
GET /v1/data/tfl/stoppoint-arrivals1 credit

Returns live arrival predictions at one stop, each with line, destination, platform, vehicle id, expected arrival time and seconds to arrival.

id
GET /v1/data/tfl/stoppoint-disruption1 credit

Returns 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.

modeincludeRouteBlockedStops?getFamily?flattenResponse?
GET /v1/data/tfl/stoppoint-nearby1 credit

Returns the stops of a given type nearest to a latitude/longitude, each with distance from the centre point, modes, lines and coordinates.

latlonstopTypesradius?modes?returnLines?categories?useStopPointHierarchy?
GET /v1/data/tfl/stoppoint-search1 credit

Searches stops, stations and hubs by name and returns matches with id, name, modes, zone and coordinates.

querymodes?maxResults?faresOnly?includeHubs?tflOperatedNationalRailStationsOnly?
GET /v1/data/tfl/timetable1 credit

Returns the scheduled timetable for a line between two named stops, as departure times per station grouped by schedule period.

linefromto
GET /v1/data/tfl/vehicle-arrivals1 credit

Returns the remaining predicted stops of one vehicle, each with stop name, line, direction and seconds to arrival.

vehicle

Response example

The shape of data from tfl/air-quality (London air quality forecast). A sample, not live data.

$id$typeforecastTypeforecastIDforecastBandforecastSummarynO2Bando3Band
2Tfl.Api.Presentation.Entities.CurrentForecast, Tfl.Api.Presentation.EntitiesCurrent55562LowLow air pollution forecast valid from Wednesday 21 October to end of Wednesday 21 October GMTLowLow
3Tfl.Api.Presentation.Entities.CurrentForecast, Tfl.Api.Presentation.EntitiesFuture55577LowLow air pollution forecast valid from Thursday 22 October to end of Thursday 22 October GMTLowLow

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-service

Attribution

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