# Transport for London Unified API API

> Transport for London Unified API API on Apizie: 84 endpoints (Gets all accident details for accidents occuring in the specified year, Gets air quality data feed, Gets all bike point locations. The Place object has an addtionalProperties array which contains the nbBikes,…, Search for bike stations by their name, a bike point's name often contains information about the name of the…, …) returned as clean JSON through one API key. Send your own provider key in the x-upstream-key header. Call it over REST at https://apizie.tech/v1/transport:tfl-gov-uk/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `transport:tfl-gov-uk`
- Category: Transport
- Status: byok
- Source: https://tfl.gov.uk
- Page: https://apizie.tech/api/transport/tfl-gov-uk
- OpenAPI: https://apizie.tech/api/transport/tfl-gov-uk/openapi.json

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…

## Endpoints

### Gets all accident details for accidents occuring in the specified year
`GET https://apizie.tech/v1/transport:tfl-gov-uk/accident-stats-get` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| year | integer | yes | The year for which to filter the accidents on. |

### Gets air quality data feed
`GET https://apizie.tech/v1/transport:tfl-gov-uk/air-quality-get` (byok)

### Gets all bike point locations. The Place object has an addtionalProperties array which contains the nbBikes,…
`GET https://apizie.tech/v1/transport:tfl-gov-uk/bike-point-get-all` (byok)

### Search for bike stations by their name, a bike point's name often contains information about the name of the…
`GET https://apizie.tech/v1/transport:tfl-gov-uk/bike-point-search` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | yes | The search term e.g. "St. James" |

### Gets the bike point with the given id.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/bike-point-get` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | A bike point id (a list of ids can be obtained from the above BikePoint call) |

### Gets taxis and minicabs contact information
`GET https://apizie.tech/v1/transport:tfl-gov-uk/cabwise-get` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| lat | number | yes | Latitude |
| lon | number | yes | Longitude |
| optype | string | no | Operator Type e.g Minicab, Executive, Limousine |
| wc | string | no | Wheelchair accessible |
| radius | number | no | The radius of the bounding circle in metres |
| name | string | no | Trading name of operating company |
| maxResults | integer | no | An optional parameter to limit the number of results return. Default and maximum is 20. |
| legacyFormat | boolean | no | Legacy Format |
| forceXml | boolean | no | Force Xml |
| twentyFourSevenOnly | boolean | no | Twenty Four Seven Only |

### Perform a Journey Planner search from the parameters specified in simple types
`GET https://apizie.tech/v1/transport:tfl-gov-uk/journey-journey-results` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| from | string | yes | Origin of the journey. Can be WGS84 coordinates expressed as "lat,long", a UK postcode, a Naptan (StopPoint) id, an ICS StopId, or a… |
| to | string | yes | Destination of the journey. Can be WGS84 coordinates expressed as "lat,long", a UK postcode, a Naptan (StopPoint) id, an ICS StopId, or a… |
| via | string | no | Travel through point on the journey. Can be WGS84 coordinates expressed as "lat,long", a UK postcode, a Naptan (StopPoint) id, an ICS… |
| nationalSearch | boolean | no | Does the journey cover stops outside London? eg. "nationalSearch=true" |
| date | string | no | The date must be in yyyyMMdd format |
| time | string | no | The time must be in HHmm format |
| timeIs | string | no | Does the time given relate to arrival or leaving time? Possible options: "departing" / "arriving" |
| journeyPreference | string | no | The journey preference eg possible options: "leastinterchange" / "leasttime" / "leastwalking" |
| mode | array | no | The mode must be a comma separated list of modes. eg possible options:… |
| accessibilityPreference | array | no | The accessibility preference must be a comma separated list eg.… |
| fromName | string | no | An optional name to associate with the origin of the journey in the results. |
| toName | string | no | An optional name to associate with the destination of the journey in the results. |
| viaName | string | no | An optional name to associate with the via point of the journey in the results. |
| maxTransferMinutes | string | no | The max walking time in minutes for transfer eg. "120" |
| maxWalkingMinutes | string | no | The max walking time in minutes for journeys eg. "120" |
| walkingSpeed | string | no | The walking speed. eg possible options: "slow" / "average" / "fast". |
| cyclePreference | string | no | The cycle preference. eg possible options: "allTheWay" / "leaveAtStation" / "takeOnTransport" / "cycleHire" |
| adjustment | string | no | Time adjustment command. eg possible options: "TripFirst" / "TripLast" |
| bikeProficiency | array | no | A comma separated list of cycling proficiency levels. eg possible options: "easy,moderate,fast" |
| alternativeCycle | boolean | no | Option to determine whether to return alternative cycling journey |
| alternativeWalking | boolean | no | Option to determine whether to return alternative walking journey |
| applyHtmlMarkup | boolean | no | Flag to determine whether certain text (e.g. walking instructions) should be output with HTML tags or not. |
| useMultiModalCall | boolean | no | A boolean to indicate whether or not to return 3 public transport journeys, a bus journey, a cycle hire journey, a personal cycle journey… |
| walkingOptimization | boolean | no | A boolean to indicate whether to optimize journeys using walking |
| taxiOnlyTrip | boolean | no | A boolean to indicate whether to return one or more taxi journeys. Note, setting this to true will override "useMultiModalCall". |
| routeBetweenEntrances | boolean | no | A boolean to indicate whether public transport routes should include directions between platforms and station entrances. |
| useRealTimeLiveArrivals | boolean | no | A boolean to indicate if we want to receive real time live arrivals data where available. |
| calcOneDirection | boolean | no | A boolean to make Journey Planner calculate journeys in one temporal direction only. In other words, only calculate journeys after the… |

### Gets a list of all of the available journey planner modes
`GET https://apizie.tech/v1/transport:tfl-gov-uk/journey-meta` (byok)

### Gets a list of valid disruption categories
`GET https://apizie.tech/v1/transport:tfl-gov-uk/line-meta-disruption-categories` (byok)

### Gets a list of valid modes
`GET https://apizie.tech/v1/transport:tfl-gov-uk/line-meta-modes` (byok)

### Gets a list of valid ServiceTypes to filter on
`GET https://apizie.tech/v1/transport:tfl-gov-uk/line-meta-service-types` (byok)

### Gets a list of valid severity codes
`GET https://apizie.tech/v1/transport:tfl-gov-uk/line-meta-severity` (byok)

### Gets lines that serve the given modes.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/line-get-by-mode` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| modes | array | yes | A comma-separated list of modes e.g. tube,dlr |

### Get disruptions for all lines of the given modes.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/line-disruption-by-mode` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| modes | array | yes | A comma-separated list of modes e.g. tube,dlr |

### Gets all lines and their valid routes for given modes, including the name and id of the originating and…
`GET https://apizie.tech/v1/transport:tfl-gov-uk/line-route-by-mode` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| modes | array | yes | A comma-separated list of modes e.g. tube,dlr |
| serviceTypes | array | no | A comma seperated list of service types to filter on. Supported values: Regular, Night. Defaulted to 'Regular' if not specified |

### Gets the line status of for all lines for the given modes
`GET https://apizie.tech/v1/transport:tfl-gov-uk/line-status-by-mode` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| modes | array | yes | A comma-separated list of modes to filter by. e.g. tube,dlr |
| detail | boolean | no | Include details of the disruptions that are causing the line status including the affected stops and routes |
| severityLevel | string | no | If specified, ensures that only those line status(es) are returned within the lines that have disruptions with the matching severity level. |

### Get all valid routes for all lines, including the name and id of the originating and terminating stops for…
`GET https://apizie.tech/v1/transport:tfl-gov-uk/line-route` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| serviceTypes | array | no | A comma seperated list of service types to filter on. Supported values: Regular, Night. Defaulted to 'Regular' if not specified |

### Search for lines or routes matching the query string
`GET https://apizie.tech/v1/transport:tfl-gov-uk/line-search` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | yes | Search term e.g victoria |
| modes | array | no | Optionally filter by the specified modes |
| serviceTypes | array | no | A comma seperated list of service types to filter on. Supported values: Regular, Night. Defaulted to 'Regular' if not specified |

### Gets the line status for all lines with a given severity A list of valid severity codes can be obtained from…
`GET https://apizie.tech/v1/transport:tfl-gov-uk/line-status-by-severity` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| severity | integer | yes | The level of severity (eg: a number from 0 to 14) |

### Gets lines that match the specified line ids.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/line-get` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ids | array | yes | A comma-separated list of line ids e.g. victoria,circle,N133. Max. approx. 20 ids. |

### Get the list of arrival predictions for given line ids based at the given stop
`GET https://apizie.tech/v1/transport:tfl-gov-uk/line-arrivals` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ids | array | yes | A comma-separated list of line ids e.g. victoria,circle,N133. Max. approx. 20 ids. |
| stopPointId | string | yes | Optional. Id of stop to get arrival predictions for (station naptan code e.g. 940GZZLUASL, you can use /StopPoint/Search/{query} endpoint… |
| direction | string | no | Optional. The direction of travel. Can be inbound or outbound or all. If left blank, and destinationStopId is set, will default to all |
| destinationStationId | string | no | Optional. Id of destination stop |

### Get disruptions for the given line ids
`GET https://apizie.tech/v1/transport:tfl-gov-uk/line-disruption` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ids | array | yes | A comma-separated list of line ids e.g. victoria,circle,N133. Max. approx. 20 ids. |

### Get all valid routes for given line ids, including the name and id of the originating and terminating stops…
`GET https://apizie.tech/v1/transport:tfl-gov-uk/line-line-routes-by-ids` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ids | array | yes | A comma-separated list of line ids e.g. victoria,circle,N133. Max. approx. 20 ids. |
| serviceTypes | array | no | A comma seperated list of service types to filter on. Supported values: Regular, Night. Defaulted to 'Regular' if not specified |

### Gets the line status of for given line ids e.g Minor Delays
`GET https://apizie.tech/v1/transport:tfl-gov-uk/line-status-by-ids` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ids | array | yes | A comma-separated list of line ids e.g. victoria,circle,N133. Max. approx. 20 ids. |
| detail | boolean | no | Include details of the disruptions that are causing the line status including the affected stops and routes |

### Gets the line status for given line ids during the provided dates e.g Minor Delays
`GET https://apizie.tech/v1/transport:tfl-gov-uk/line-status` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ids | array | yes | A comma-separated list of line ids e.g. victoria,circle,N133. Max. approx. 20 ids. |
| detail | boolean | no | Include details of the disruptions that are causing the line status including the affected stops and routes |
| startDate | string | yes |  |
| endDate | string | yes |  |
| dateRange.startDate | string | no |  |
| dateRange.endDate | string | no |  |
| StartDate | string | yes | Automatically added |
| EndDate | string | yes | Automatically added |

### Gets all valid routes for given line id, including the sequence of stops on each route.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/line-route-sequence` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | A single line id e.g. victoria |
| direction | string | yes | The direction of travel. Can be inbound or outbound. |
| serviceTypes | array | no | A comma seperated list of service types to filter on. Supported values: Regular, Night. Defaulted to 'Regular' if not specified |
| excludeCrowding | boolean | no | That excludes crowding from line disruptions. Can be true or false. |

### Gets a list of the stations that serve the given line id
`GET https://apizie.tech/v1/transport:tfl-gov-uk/line-stop-points` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | A single line id e.g. victoria |
| tflOperatedNationalRailStationsOnly | boolean | no | If the national-rail line is requested, this flag will filter the national rail stations so that only those operated by TfL are returned |

### Gets the timetable for a specified station on the give line
`GET https://apizie.tech/v1/transport:tfl-gov-uk/line-timetable` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| fromStopPointId | string | yes | The originating station's stop point id (station naptan code e.g. 940GZZLUASL, you can use /StopPoint/Search/{query} endpoint to find a… |
| id | string | yes | A single line id e.g. victoria |

### Gets the timetable for a specified station on the give line with specified destination
`GET https://apizie.tech/v1/transport:tfl-gov-uk/line-timetable-to` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| fromStopPointId | string | yes | The originating station's stop point id (station naptan code e.g. 940GZZLUASL, you can use /StopPoint/Search/{query} endpoint to find a… |
| id | string | yes | A single line id e.g. victoria |
| toStopPointId | string | yes | The destination stations's Naptan code |

### Returns the service type active for a mode. Currently only supports tube
`GET https://apizie.tech/v1/transport:tfl-gov-uk/mode-get-active-service-types` (byok)

### Gets the next arrival predictions for all stops of a given mode
`GET https://apizie.tech/v1/transport:tfl-gov-uk/mode-arrivals` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| mode | string | yes | A mode name e.g. tube, dlr |
| count | integer | no | A number of arrivals to return for each stop, -1 to return all available. |

### Get the occupancy for bike points.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/occupancy-get-bike-points-occupancies` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ids | array | yes |  |

### Gets the occupancy for all car parks that have occupancy data
`GET https://apizie.tech/v1/transport:tfl-gov-uk/get-occupancy-car-park` (byok)

### Gets the occupancy for a car park with a given id
`GET https://apizie.tech/v1/transport:tfl-gov-uk/occupancy-get` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes |  |

### Gets the occupancy for all charge connectors
`GET https://apizie.tech/v1/transport:tfl-gov-uk/occupancy-get-all-charge-connector-status` (byok)

### Gets the occupancy for a charge connectors with a given id (sourceSystemPlaceId)
`GET https://apizie.tech/v1/transport:tfl-gov-uk/occupancy-get-charge-connector-status` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ids | array | yes |  |

### Gets the places that lie within a geographic region. The geographic region of interest can either be…
`GET https://apizie.tech/v1/transport:tfl-gov-uk/place-get-by-geo` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| radius | number | no | The radius of the bounding circle in metres when only lat/lon are specified. |
| categories | array | no | An optional list of comma separated property categories to return in the Place's property bag. If null or empty, all categories of… |
| includeChildren | boolean | no | Defaults to false. If true child places e.g. individual charging stations at a charge point while be included, otherwise just the URLs of… |
| type | array | no | Place types to filter on, or null to return all types |
| activeOnly | boolean | no | An optional parameter to limit the results to active records only (Currently only the 'VariableMessageSign' place type is supported) |
| numberOfPlacesToReturn | integer | no | If specified, limits the number of returned places equal to the given value |
| placeGeo.swLat | number | no |  |
| placeGeo.swLon | number | no |  |
| placeGeo.neLat | number | no |  |
| placeGeo.neLon | number | no |  |
| placeGeo.lat | number | no |  |
| placeGeo.lon | number | no |  |

### Gets the set of streets associated with a post code.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/place-get-streets-by-post-code` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| postcode | string | yes |  |
| postcodeInput.postcode | string | no |  |
| Postcode | string | yes | Automatically added |

### Gets a list of all of the available place property categories and keys.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/place-meta-categories` (byok)

### Gets a list of the available types of Place.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/place-meta-place-types` (byok)

### Gets all places that matches the given query
`GET https://apizie.tech/v1/transport:tfl-gov-uk/place-search` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| name | string | yes | The name of the place, you can use the /Place/Types/{types} endpoint to get a list of places for a given type including their names. |
| types | array | no | A comma-separated list of the types to return. Max. approx 12 types. |

### Gets all places of a given type
`GET https://apizie.tech/v1/transport:tfl-gov-uk/place-get-by-type` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| types | array | yes | A comma-separated list of the types to return. Max. approx 12 types. A valid list of place types can be obtained from the… |
| activeOnly | boolean | no | An optional parameter to limit the results to active records only (Currently only the 'VariableMessageSign' place type is supported) |

### Gets the place with the given id.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/place-get` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | The id of the place, you can use the /Place/Types/{types} endpoint to get a list of places for a given type including their ids |
| includeChildren | boolean | no | Defaults to false. If true child places e.g. individual charging stations at a charge point while be included, otherwise just the URLs of… |

### Gets any places of the given type whose geography intersects the given latitude and longitude. In practice…
`GET https://apizie.tech/v1/transport:tfl-gov-uk/place-get-at` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| type | array | yes | The place type (a valid list of place types can be obtained from the /Place/Meta/placeTypes endpoint) |
| lat | string | yes |  |
| lon | string | yes |  |
| location.lat | number | yes |  |
| location.lon | number | yes |  |
| Lat | string | yes | Automatically added |
| Lon | string | yes | Automatically added |

### Gets the place overlay for a given set of co-ordinates and a given width/height.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/place-get-overlay` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| z | integer | yes | The zoom level |
| type | array | yes | The place type (a valid list of place types can be obtained from the /Place/Meta/placeTypes endpoint) |
| width | integer | yes | The width of the requested overlay. |
| height | integer | yes | The height of the requested overlay. |
| lat | string | yes |  |
| lon | string | yes |  |
| location.lat | number | yes |  |
| location.lon | number | yes |  |
| Lat | string | yes | Automatically added |
| Lon | string | yes | Automatically added |

### Gets all roads managed by TfL
`GET https://apizie.tech/v1/transport:tfl-gov-uk/road-get` (byok)

### Gets a list of valid RoadDisruption categories
`GET https://apizie.tech/v1/transport:tfl-gov-uk/road-meta-categories` (byok)

### Gets a list of valid RoadDisruption severity codes
`GET https://apizie.tech/v1/transport:tfl-gov-uk/road-meta-severities` (byok)

### Gets a list of active disruptions filtered by disruption Ids.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/road-disruption-by-id` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| disruptionIds | array | yes | Comma-separated list of disruption identifiers to filter by. |
| stripContent | boolean | no | Optional, defaults to false. When true, removes every property/node except for id, point, severity, severityDescription, startDate,… |

### Gets a list of disrupted streets. If no date filters are provided, current disruptions are returned.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/road-disrupted-streets` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| startDate | string | yes | Optional, the start time to filter on. |
| endDate | string | yes | Optional, The end time to filter on. |

### Gets the road with the specified id (e.g. A1)
`GET https://apizie.tech/v1/transport:tfl-gov-uk/get-road-ids` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ids | array | yes | Comma-separated list of road identifiers e.g. "A406, A2" (a full list of supported road identifiers can be found at the /Road/ endpoint) |

### Get active disruptions, filtered by road ids
`GET https://apizie.tech/v1/transport:tfl-gov-uk/road-disruption` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ids | array | yes | Comma-separated list of road identifiers e.g. "A406, A2" use all for all to ignore id filter (a full list of supported road identifiers… |
| stripContent | boolean | no | Optional, defaults to false. When true, removes every property/node except for id, point, severity, severityDescription, startDate,… |
| severities | array | no | an optional list of Severity names to filter on (a valid list of severities can be obtained from the /Road/Meta/severities endpoint) |
| categories | array | no | an optional list of category names to filter on (a valid list of categories can be obtained from the /Road/Meta/categories endpoint) |
| closures | boolean | no | Optional, defaults to true. When true, always includes disruptions that have road closures, regardless of the severity filter. When false,… |

### Gets the specified roads with the status aggregated over the date range specified, or now until the end of…
`GET https://apizie.tech/v1/transport:tfl-gov-uk/road-status` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ids | array | yes | Comma-separated list of road identifiers e.g. "A406, A2" or use "all" to ignore id filter (a full list of supported road identifiers can… |
| dateRangeNullable.startDate | string | no |  |
| dateRangeNullable.endDate | string | no |  |

### Search the site for occurrences of the query string. The maximum number of results returned is equal to the…
`GET https://apizie.tech/v1/transport:tfl-gov-uk/search-get` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | yes | The search query |

### Searches the bus schedules folder on S3 for a given bus number.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/search-bus-schedules` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | yes | The search query |

### Gets the available search categories.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/search-meta-categories` (byok)

### Gets the available searchProvider names.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/search-meta-search-providers` (byok)

### Gets the available sorting options.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/search-meta-sorts` (byok)

### Gets a list of StopPoints within {radius} by the specified criteria
`GET https://apizie.tech/v1/transport:tfl-gov-uk/stop-point-get-by-geo-point` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| stopTypes | array | yes | a list of stopTypes that should be returned (a list of valid stop types can be obtained from the StopPoint/meta/stoptypes endpoint) |
| radius | integer | no | the radius of the bounding circle in metres (default : 200) |
| useStopPointHierarchy | boolean | no | Re-arrange the output into a parent/child hierarchy |
| modes | array | no | the list of modes to search (comma separated mode names e.g. tube,dlr) |
| categories | array | no | an optional list of comma separated property categories to return in the StopPoint's property bag. If null or empty, all categories of… |
| returnLines | boolean | no | true to return the lines that each stop point serves as a nested resource |
| location.lat | number | yes |  |
| location.lon | number | yes |  |

### Gets the list of available StopPoint additional information categories
`GET https://apizie.tech/v1/transport:tfl-gov-uk/stop-point-meta-categories` (byok)

### Gets the list of available StopPoint modes
`GET https://apizie.tech/v1/transport:tfl-gov-uk/stop-point-meta-modes` (byok)

### Gets the list of available StopPoint types
`GET https://apizie.tech/v1/transport:tfl-gov-uk/stop-point-meta-stop-types` (byok)

### Gets a list of StopPoints filtered by the modes available at that StopPoint.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/stop-point-get-by-mode` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| modes | array | yes | A comma-seperated list of modes e.g. tube,dlr |
| page | integer | no | The data set page to return. Page 1 equates to the first 1000 stop points, page 2 equates to 1001-2000 etc. Must be entered for bus mode… |

### Gets a distinct list of disrupted stop points for the given modes
`GET https://apizie.tech/v1/transport:tfl-gov-uk/stop-point-disruption-by-mode` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| modes | array | yes | A comma-seperated list of modes e.g. tube,dlr |
| includeRouteBlockedStops | boolean | no |  |

### Search StopPoints by their common name, or their 5-digit Countdown Bus Stop Code.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/get-stop-point-search` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | yes | The query string, case-insensitive. Leading and trailing wildcards are applied automatically. |
| modes | array | no | An optional, parameter separated list of the modes to filter by |
| faresOnly | boolean | no | True to only return stations in that have Fares data available for single fares to another station. |
| maxResults | integer | no | An optional result limit, defaulting to and with a maximum of 50. Since children of the stop point heirarchy are returned for matches, it… |
| lines | array | no | An optional, parameter separated list of the lines to filter by |
| includeHubs | boolean | no | If true, returns results including HUBs. |
| tflOperatedNationalRailStationsOnly | boolean | no | If the national-rail mode is included, this flag will filter the national rail stations so that only those operated by TfL are returned |

### Search StopPoints by their common name, or their 5-digit Countdown Bus Stop Code.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/stop-point-search` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| query | string | yes | The query string, case-insensitive. Leading and trailing wildcards are applied automatically. |
| modes | array | no | An optional, parameter separated list of the modes to filter by |
| faresOnly | boolean | no | True to only return stations in that have Fares data available for single fares to another station. |
| maxResults | integer | no | An optional result limit, defaulting to and with a maximum of 50. Since children of the stop point heirarchy are returned for matches, it… |
| lines | array | no | An optional, parameter separated list of the lines to filter by |
| includeHubs | boolean | no | If true, returns results including HUBs. |
| tflOperatedNationalRailStationsOnly | boolean | no | If the national-rail mode is included, this flag will filter the national rail stations so that only those operated by TfL are returned |

### Gets the service types for a given stoppoint
`GET https://apizie.tech/v1/transport:tfl-gov-uk/stop-point-get-service-types` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | The Naptan id of the stop |
| lineIds | array | no | The lines which contain the given Naptan id (all lines relevant to the given stoppoint if empty) |
| modes | array | no | The modes which the lines are relevant to (all if empty) |

### Gets a StopPoint for a given sms code.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/stop-point-get-by-sms` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | A 5-digit Countdown Bus Stop Code e.g. 73241, 50435, 56334. |
| output | string | no | If set to "web", a 302 redirect to relevant website bus stop page is returned. Valid values are : web. All other values are ignored. |

### Gets all stop points of a given type
`GET https://apizie.tech/v1/transport:tfl-gov-uk/stop-point-get-by-type` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| types | array | yes | A comma-separated list of the types to return. Max. approx. 12 types. A list of valid stop types can be obtained from the… |

### Gets all the stop points of given type(s) with a page number
`GET https://apizie.tech/v1/transport:tfl-gov-uk/stop-point-get-by-type-with-pagination` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| types | array | yes |  |
| page | integer | yes |  |

### Gets a list of StopPoints corresponding to the given list of stop ids.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/stop-point-get` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ids | array | yes | A comma-separated list of stop point ids (station naptan code e.g. 940GZZLUASL). Max. approx. 20 ids. You can use… |
| includeCrowdingData | boolean | no | Include the crowding data (static). To Filter further use: /StopPoint/{ids}/Crowding/{line} |

### Gets all disruptions for the specified StopPointId, plus disruptions for any child Naptan records it may have.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/stop-point-disruption` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ids | array | yes | A comma-seperated list of stop point ids. Max. approx. 20 ids. You can use /StopPoint/Search/{query} endpoint to find a stop point id from… |
| getFamily | boolean | no | Specify true to return disruptions for entire family, or false to return disruptions for just this stop point. Defaults to false. |
| includeRouteBlockedStops | boolean | no |  |
| flattenResponse | boolean | no | Specify true to associate all disruptions with parent stop point. (Only applicable when getFamily is true). |

### Gets the list of arrival and departure predictions for the given stop point id (overground, Elizabeth line…
`GET https://apizie.tech/v1/transport:tfl-gov-uk/stop-point-arrival-departures` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | A StopPoint id (station naptan code e.g. 940GZZLUASL, you can use /StopPoint/Search/{query} endpoint to find a stop point id from a… |
| lineIds | array | yes | A comma-separated list of line ids e.g. elizabeth, london-overground, thameslink |

### Gets the list of arrival predictions for the given stop point id
`GET https://apizie.tech/v1/transport:tfl-gov-uk/stop-point-arrivals` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | A StopPoint id (station naptan code e.g. 940GZZLUASL, you can use /StopPoint/Search/{query} endpoint to find a stop point id from a… |

### Gets Stopoints that are reachable from a station/line combination.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/stop-point-reachable-from` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | The id (station naptan code e.g. 940GZZLUASL, you can use /StopPoint/Search/{query} endpoint to find a stop point id from a station name)… |
| lineId | string | yes | Line id of the line to filter by (e.g. victoria) |
| serviceTypes | array | no | A comma-separated list of service types to filter on. If not specified. Supported values: Regular, Night. Defaulted to 'Regular' if not… |

### Gets all the Crowding data (static) for the StopPointId, plus crowding data for a given line and optionally…
`GET https://apizie.tech/v1/transport:tfl-gov-uk/stop-point-crowding` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | The Naptan id of the stop |
| line | string | yes | A particular line e.g. victoria, circle, northern etc. |
| direction | string | yes | The direction of travel. Can be inbound or outbound. |

### Returns the canonical direction, "inbound" or "outbound", for a given pair of stop point Ids in the…
`GET https://apizie.tech/v1/transport:tfl-gov-uk/stop-point-direction` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | Originating stop id (station naptan code e.g. 940GZZLUASL, you can use /StopPoint/Search/{query} endpoint to find a stop point id from a… |
| toStopPointId | string | yes | Destination stop id (station naptan code e.g. 940GZZLUASL, you can use /StopPoint/Search/{query} endpoint to find a stop point id from a… |
| lineId | string | no | Optional line id filter e.g. victoria |

### Returns the route sections for all the lines that service the given stop point ids
`GET https://apizie.tech/v1/transport:tfl-gov-uk/stop-point-route` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | A stop point id (station naptan codes e.g. 940GZZLUASL, you can use /StopPoint/Search/{query} endpoint to find a stop point id from a… |
| serviceTypes | array | no | A comma-separated list of service types to filter on. If not specified. Supported values: Regular, Night. Defaulted to 'Regular' if not… |

### Get a list of places corresponding to a given id and place types.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/get-stop-point-id-place-types` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | yes | A naptan id for a stop point (station naptan code e.g. 940GZZLUASL). |
| placeTypes | array | yes | A comcomma-separated value representing the place types. |

### Get car parks corresponding to the given stop point id.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/stop-point-get-car-parks-by-id` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| stopPointId | string | yes | stopPointId is required to get the car parks. |

### Gets a list of taxi ranks corresponding to the given stop point id.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/stop-point-get-taxi-ranks-by-ids` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| stopPointId | string | yes | stopPointId is required to get the taxi ranks. |

### Gets the TravelTime overlay.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/travel-time-get-compare-overlay` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| z | integer | yes | The zoom level. |
| pinLat | number | yes | The latitude of the pin. |
| pinLon | number | yes | The longitude of the pin. |
| mapCenterLat | number | yes | The map center latitude. |
| mapCenterLon | number | yes | The map center longitude. |
| scenarioTitle | string | yes | The title of the scenario. |
| timeOfDayId | string | yes | The id for the time of day (AM/INTER/PM) |
| modeId | string | yes | The id of the mode. |
| width | integer | yes | The width of the requested overlay. |
| height | integer | yes | The height of the requested overlay. |
| direction | string | yes | The direction of travel. |
| travelTimeInterval | integer | yes | The total minutes between the travel time bands |
| compareType | string | yes |  |
| compareValue | string | yes |  |

### Gets the TravelTime overlay.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/travel-time-get-overlay` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| z | integer | yes | The zoom level. |
| pinLat | number | yes | The latitude of the pin. |
| pinLon | number | yes | The longitude of the pin. |
| mapCenterLat | number | yes | The map center latitude. |
| mapCenterLon | number | yes | The map center longitude. |
| scenarioTitle | string | yes | The title of the scenario. |
| timeOfDayId | string | yes | The id for the time of day (AM/INTER/PM) |
| modeId | string | yes | The id of the mode. |
| width | integer | yes | The width of the requested overlay. |
| height | integer | yes | The height of the requested overlay. |
| direction | string | yes | The direction of travel. |
| travelTimeInterval | integer | yes | The total minutes between the travel time bands |

### Gets the predictions for a given list of vehicle Id's.
`GET https://apizie.tech/v1/transport:tfl-gov-uk/vehicle-get` (byok)

| Parameter | Type | Required | Description |
|---|---|---|---|
| ids | array | yes | A comma-separated list of vehicle ids e.g. LX58CFV,LX11AZB,LX58CFE. Max approx. 25 ids. |

## Example
```
curl "https://apizie.tech/v1/transport:tfl-gov-uk/accident-stats-get" \
  -H "x-api-key: $APIZIE_KEY" \
  -H "x-upstream-key: $PROVIDER_KEY"
```

## FAQ

### How do I call the Transport for London Unified API API?
Create a free Apizie key, then send GET https://apizie.tech/v1/transport:tfl-gov-uk/accident-stats-get with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the Transport for London Unified API API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card. Transport for London Unified API itself also needs your own key from tfl.gov.uk.

### Can AI agents use the Transport for London Unified API API?
Yes. Add the Apizie MCP server (https://apizie.tech/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key transport:tfl-gov-uk.

### What is the status of the Transport for London Unified API API?
Needs your own provider key (bring your own key)
