Transport for London Unified API
Our unified API brings together data across all modes of transport into a single RESTful API. This API provides access to the most highly requested realtime and status infomation across all the modes of transport, in a single and consistent way. Access to the developer documentation is available at
- Homepage
- https://api.apis.guru/v2/specs/tfl.gov.uk/v1.json
- Provider
- tfl.gov.uk
- OpenAPI version
- 3.0.0
- Spec (JSON)
- https://api.apis.guru/v2/specs/tfl.gov.uk/v1/openapi.json
- Spec (YAML)
- https://api.apis.guru/v2/specs/tfl.gov.uk/v1/openapi.yaml
Tools (86)
Extracted live via the executor SDK.
-
accidentStats.accidentStatsGetGets all accident details for accidents occuring in the specified year
-
airQuality.airQualityGetGets air quality data feed
-
bikePoint.bikePointGetGets the bike point with the given id.
-
bikePoint.bikePointGetAllGets all bike point locations. The Place object has an addtionalProperties array which contains the nbBikes, nbDocks and nbSpaces numbers which give the status of the BikePoint. A mismatch in these numbers i.e. nbDocks - (nbBikes + nbSpaces) != 0 indicates broken docks.
-
bikePoint.bikePointSearchSearch for bike stations by their name, a bike point's name often contains information about the name of the street or nearby landmarks, for example. Note that the search result does not contain the PlaceProperties i.e. the status or occupancy of the BikePoint, to get that information you should retrieve the BikePoint by its id on /BikePoint/id.
-
cabwise.cabwiseGetGets taxis and minicabs contact information
-
journey.journeyJourneyResultsPerform a Journey Planner search from the parameters specified in simple types
-
journey.journeyMetaGets a list of all of the available journey planner modes
-
line.lineArrivalsGet the list of arrival predictions for given line ids based at the given stop
-
line.lineDisruptionGet disruptions for the given line ids
-
line.lineDisruptionByModeGet disruptions for all lines of the given modes.
-
line.lineGetGets lines that match the specified line ids.
-
line.lineGetByModeGets lines that serve the given modes.
-
line.lineLineRoutesByIdsGet all valid routes for given line ids, including the name and id of the originating and terminating stops for each route.
-
line.lineMetaDisruptionCategoriesGets a list of valid disruption categories
-
line.lineMetaModesGets a list of valid modes
-
line.lineMetaServiceTypesGets a list of valid ServiceTypes to filter on
-
line.lineMetaSeverityGets a list of valid severity codes
-
line.lineRouteGet all valid routes for all lines, including the name and id of the originating and terminating stops for each route.
-
line.lineRouteByModeGets all lines and their valid routes for given modes, including the name and id of the originating and terminating stops for each route
-
line.lineRouteSequenceGets all valid routes for given line id, including the sequence of stops on each route.
-
line.lineSearchSearch for lines or routes matching the query string
-
line.lineStatusGets the line status for given line ids during the provided dates e.g Minor Delays
-
line.lineStatusByIdsGets the line status of for given line ids e.g Minor Delays
-
line.lineStatusByModeGets the line status of for all lines for the given modes
-
line.lineStatusBySeverityGets the line status for all lines with a given severity A list of valid severity codes can be obtained from a call to Line/Meta/Severity
-
line.lineStopPointsGets a list of the stations that serve the given line id
-
line.lineTimetableGets the timetable for a specified station on the give line
-
line.lineTimetableToGets the timetable for a specified station on the give line with specified destination
-
mode.modeArrivalsGets the next arrival predictions for all stops of a given mode
-
mode.modeGetActiveServiceTypesReturns the service type active for a mode. Currently only supports tube
-
occupancy.getOccupancyCarParkGets the occupancy for all car parks that have occupancy data
-
occupancy.occupancyGetGets the occupancy for a car park with a given id
-
occupancy.occupancyGetAllChargeConnectorStatusGets the occupancy for all charge connectors
-
occupancy.occupancyGetBikePointsOccupanciesGet the occupancy for bike points.
-
occupancy.occupancyGetChargeConnectorStatusGets the occupancy for a charge connectors with a given id (sourceSystemPlaceId)
-
place.placeGetGets the place with the given id.
-
place.placeGetAtGets any places of the given type whose geography intersects the given latitude and longitude. In practice this means the Place must be polygonal e.g. a BoroughBoundary.
-
place.placeGetByGeoGets the places that lie within a geographic region. The geographic region of interest can either be specified by using a lat/lon geo-point and a radius in metres to return places within the locus defined by the lat/lon of its centre or alternatively, by the use of a bounding box defined by the lat/lon of its north-west and south-east corners. Optionally filters on type and can strip properties for a smaller payload.
-
place.placeGetByTypeGets all places of a given type
-
place.placeGetOverlayGets the place overlay for a given set of co-ordinates and a given width/height.
-
place.placeGetStreetsByPostCodeGets the set of streets associated with a post code.
-
place.placeMetaCategoriesGets a list of all of the available place property categories and keys.
-
place.placeMetaPlaceTypesGets a list of the available types of Place.
-
place.placeSearchGets all places that matches the given query
-
road.getRoadIdsGets the road with the specified id (e.g. A1)
-
road.roadDisruptedStreetsGets a list of disrupted streets. If no date filters are provided, current disruptions are returned.
-
road.roadDisruptionGet active disruptions, filtered by road ids
-
road.roadDisruptionByIdGets a list of active disruptions filtered by disruption Ids.
-
road.roadGetGets all roads managed by TfL
-
road.roadMetaCategoriesGets a list of valid RoadDisruption categories
-
road.roadMetaSeveritiesGets a list of valid RoadDisruption severity codes
-
road.roadStatusGets the specified roads with the status aggregated over the date range specified, or now until the end of today if no dates are passed.
-
search.searchBusSchedulesSearches the bus schedules folder on S3 for a given bus number.
-
search.searchGetSearch the site for occurrences of the query string. The maximum number of results returned is equal to the maximum page size of 100. To return subsequent pages, use the paginated overload.
-
search.searchMetaCategoriesGets the available search categories.
-
search.searchMetaSearchProvidersGets the available searchProvider names.
-
search.searchMetaSortsGets the available sorting options.
-
stopPoint.getStopPointIdPlaceTypesGet a list of places corresponding to a given id and place types.
-
stopPoint.getStopPointSearchSearch StopPoints by their common name, or their 5-digit Countdown Bus Stop Code.
-
stopPoint.stopPointArrivalDeparturesGets the list of arrival and departure predictions for the given stop point id (overground, Elizabeth line and thameslink only)
-
stopPoint.stopPointArrivalsGets the list of arrival predictions for the given stop point id
-
stopPoint.stopPointCrowdingGets all the Crowding data (static) for the StopPointId, plus crowding data for a given line and optionally a particular direction.
-
stopPoint.stopPointDirectionReturns the canonical direction, "inbound" or "outbound", for a given pair of stop point Ids in the direction from -> to.
-
stopPoint.stopPointDisruptionGets all disruptions for the specified StopPointId, plus disruptions for any child Naptan records it may have.
-
stopPoint.stopPointDisruptionByModeGets a distinct list of disrupted stop points for the given modes
-
stopPoint.stopPointGetGets a list of StopPoints corresponding to the given list of stop ids.
-
stopPoint.stopPointGetByGeoPointGets a list of StopPoints within {radius} by the specified criteria
-
stopPoint.stopPointGetByModeGets a list of StopPoints filtered by the modes available at that StopPoint.
-
stopPoint.stopPointGetBySmsGets a StopPoint for a given sms code.
-
stopPoint.stopPointGetByTypeGets all stop points of a given type
-
stopPoint.stopPointGetByTypeWithPaginationGets all the stop points of given type(s) with a page number
-
stopPoint.stopPointGetCarParksByIdGet car parks corresponding to the given stop point id.
-
stopPoint.stopPointGetServiceTypesGets the service types for a given stoppoint
-
stopPoint.stopPointGetTaxiRanksByIdsGets a list of taxi ranks corresponding to the given stop point id.
-
stopPoint.stopPointMetaCategoriesGets the list of available StopPoint additional information categories
-
stopPoint.stopPointMetaModesGets the list of available StopPoint modes
-
stopPoint.stopPointMetaStopTypesGets the list of available StopPoint types
-
stopPoint.stopPointReachableFromGets Stopoints that are reachable from a station/line combination.
-
stopPoint.stopPointRouteReturns the route sections for all the lines that service the given stop point ids
-
stopPoint.stopPointSearchSearch StopPoints by their common name, or their 5-digit Countdown Bus Stop Code.
-
travelTime.travelTimeGetCompareOverlayGets the TravelTime overlay.
-
travelTime.travelTimeGetOverlayGets the TravelTime overlay.
-
vehicle.vehicleGetGets the predictions for a given list of vehicle Id's.
-
openapi.previewSpecPreview an OpenAPI document before adding it as a source
-
openapi.addSourceAdd an OpenAPI source and register its operations as tools