# Transport for London Unified API **Provider:** Transport for London Unified **Category:** ai **Base URL:** `https://api.digital.tfl.gov.uk` **Auth:** api-key — `GET /endpoint?app_key=YOUR_KEY` **Rate Limit:** 500 req/min with API key **Free Tier:** Yes — available **Pricing:** Enterprise / contact sales (subscription) **Docs:** https://api.digital.tfl.gov.uk ## Description 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 ## Endpoints | Method | Endpoint | Description | |--------|----------|-------------| | GET | `https://api.digital.tfl.gov.uk/AccidentStats/{year}` | Gets all accident details for accidents occuring in the specified year | | GET | `https://api.digital.tfl.gov.uk/AirQuality` | Gets air quality data feed | | GET | `https://api.digital.tfl.gov.uk/BikePoint` | Gets 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. | | GET | `https://api.digital.tfl.gov.uk/BikePoint/Search` | Search 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. | | GET | `https://api.digital.tfl.gov.uk/BikePoint/{id}` | Gets the bike point with the given id. | | GET | `https://api.digital.tfl.gov.uk/Cabwise/search` | Gets taxis and minicabs contact information | | GET | `https://api.digital.tfl.gov.uk/Journey/JourneyResults/{from}/to/{to}` | Perform a Journey Planner search from the parameters specified in simple types | | GET | `https://api.digital.tfl.gov.uk/Journey/Meta/Modes` | Gets a list of all of the available journey planner modes | ## Authentication API key as a query parameter (app_key) ``` GET /endpoint?app_key=YOUR_KEY ``` ## Sample Request ```bash curl -X GET 'https://api.digital.tfl.gov.uk/AccidentStats/{year}' \ -H 'GET /endpoint?app_key=YOUR_KEY' ``` ## Sample Response ```json {} ``` ## Pricing Details Free with TfL API key. London transport real-time data; no paid tiers. --- *Source: [API Map](https://apimap.dev/apis/transport-for-london-unified/) — CC BY 4.0*