Transport for London, England Travel Time API

The TravelTime API from Transport for London, England — 2 operation(s) for traveltime.

GitHub OpenAPI

Operations 2

GET /TravelTimes/overlay/{z}/mapcenter/{mapCenterLat}/{mapCenterLon}/pinlocation/{pinLat}/{pinLon}/dimensions/{width}/{height} Gets the TravelTime overlay. #
GET /TravelTimes/compareOverlay/{z}/mapcenter/{mapCenterLat}/{mapCenterLon}/pinlocation/{pinLat}/{pinLon}/dimensions/{width}/{height} Gets the TravelTime overlay. #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/transport-for-london-england:transport-for-london-england-traveltime-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

transport-for-london-england-traveltime-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: v1
  title: Transport for London Unified Travel Time API
servers:
- url: https://api.tfl.gov.uk
tags:
- name: TravelTime
paths:
  /TravelTimes/overlay/{z}/mapcenter/{mapCenterLat}/{mapCenterLon}/pinlocation/{pinLat}/{pinLon}/dimensions/{width}/{height}:
    get:
      tags:
      - TravelTime
      summary: Gets the TravelTime overlay.
      operationId: TravelTime_GetOverlay
      parameters:
      - name: z
        in: path
        description: The zoom level.
        required: true
        schema:
          type: integer
          format: int32
      - name: pinLat
        in: path
        description: The latitude of the pin.
        required: true
        schema:
          type: number
          format: double
      - name: pinLon
        in: path
        description: The longitude of the pin.
        required: true
        schema:
          type: number
          format: double
      - name: mapCenterLat
        in: path
        description: The map center latitude.
        required: true
        schema:
          type: number
          format: double
      - name: mapCenterLon
        in: path
        description: The map center longitude.
        required: true
        schema:
          type: number
          format: double
      - name: scenarioTitle
        in: query
        description: The title of the scenario.
        required: true
        schema:
          type: string
      - name: timeOfDayId
        in: query
        description: The id for the time of day (AM/INTER/PM)
        required: true
        schema:
          type: string
      - name: modeId
        in: query
        description: The id of the mode.
        required: true
        schema:
          type: string
      - name: width
        in: path
        description: The width of the requested overlay.
        required: true
        schema:
          type: integer
          format: int32
      - name: height
        in: path
        description: The height of the requested overlay.
        required: true
        schema:
          type: integer
          format: int32
      - name: direction
        in: query
        description: The direction of travel.
        required: true
        schema:
          type: string
          enum:
          - Average
          - From
          - To
      - name: travelTimeInterval
        in: query
        description: The total minutes between the travel time bands
        required: true
        schema:
          type: integer
          format: int32
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/System.Object'
            text/json:
              schema:
                $ref: '#/components/schemas/System.Object'
            application/xml:
              schema:
                $ref: '#/components/schemas/System.Object'
            text/xml:
              schema:
                $ref: '#/components/schemas/System.Object'
      deprecated: false
  ? /TravelTimes/compareOverlay/{z}/mapcenter/{mapCenterLat}/{mapCenterLon}/pinlocation/{pinLat}/{pinLon}/dimensions/{width}/{height}
  : get:
      tags:
      - TravelTime
      summary: Gets the TravelTime overlay.
      operationId: TravelTime_GetCompareOverlay
      parameters:
      - name: z
        in: path
        description: The zoom level.
        required: true
        schema:
          type: integer
          format: int32
      - name: pinLat
        in: path
        description: The latitude of the pin.
        required: true
        schema:
          type: number
          format: double
      - name: pinLon
        in: path
        description: The longitude of the pin.
        required: true
        schema:
          type: number
          format: double
      - name: mapCenterLat
        in: path
        description: The map center latitude.
        required: true
        schema:
          type: number
          format: double
      - name: mapCenterLon
        in: path
        description: The map center longitude.
        required: true
        schema:
          type: number
          format: double
      - name: scenarioTitle
        in: query
        description: The title of the scenario.
        required: true
        schema:
          type: string
      - name: timeOfDayId
        in: query
        description: The id for the time of day (AM/INTER/PM)
        required: true
        schema:
          type: string
      - name: modeId
        in: query
        description: The id of the mode.
        required: true
        schema:
          type: string
      - name: width
        in: path
        description: The width of the requested overlay.
        required: true
        schema:
          type: integer
          format: int32
      - name: height
        in: path
        description: The height of the requested overlay.
        required: true
        schema:
          type: integer
          format: int32
      - name: direction
        in: query
        description: The direction of travel.
        required: true
        schema:
          type: string
          enum:
          - Average
          - From
          - To
      - name: travelTimeInterval
        in: query
        description: The total minutes between the travel time bands
        required: true
        schema:
          type: integer
          format: int32
      - name: compareType
        in: query
        required: true
        schema:
          type: string
      - name: compareValue
        in: query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/System.Object'
            text/json:
              schema:
                $ref: '#/components/schemas/System.Object'
            application/xml:
              schema:
                $ref: '#/components/schemas/System.Object'
            text/xml:
              schema:
                $ref: '#/components/schemas/System.Object'
      deprecated: false
components:
  schemas:
    System.Object:
      type: object
      properties: {}
  securitySchemes:
    apiKey:
      type: apiKey
      description: API Key Authentication
      name: app_key
      in: query
    appId:
      type: apiKey
      description: Application ID
      name: app_id
      in: query
x-provenance:
  method: harvested
  publisher: Transport for London, England
  source: https://api.tfl.gov.uk/swagger/docs/v1
  note: split by refine-openapis from the provider's own published document, verified by fetch (openapi/_original/*.fetch.json);
    stamped by stamp-openapi-provenance.py (roadmap#793)