Transport for London, England Search API

The Search API from Transport for London, England — 5 operation(s) for search.

GitHub OpenAPI

Operations 5

GET /Search Search 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 #
GET /Search/BusSchedules Searches the bus schedules folder on S3 for a given bus number. #
GET /Search/Meta/SearchProviders Gets the available searchProvider names. #
GET /Search/Meta/Categories Gets the available search categories. #
GET /Search/Meta/Sorts Gets the available sorting options. #

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-search-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-search-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: v1
  title: Transport for London Unified Search API
servers:
- url: https://api.tfl.gov.uk
tags:
- name: Search
paths:
  /Search:
    get:
      tags:
      - Search
      summary: "Search the site for occurrences of the query string. The maximum number of results returned is equal to the maximum page size\n            of 100. To return subsequent pages, use the paginated overload."
      operationId: Search_Get
      parameters:
      - name: query
        in: query
        description: The search query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Tfl.Api.Presentation.Entities.SearchResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/Tfl.Api.Presentation.Entities.SearchResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/Tfl.Api.Presentation.Entities.SearchResponse'
            text/xml:
              schema:
                $ref: '#/components/schemas/Tfl.Api.Presentation.Entities.SearchResponse'
      deprecated: false
  /Search/BusSchedules:
    get:
      tags:
      - Search
      summary: Searches the bus schedules folder on S3 for a given bus number.
      operationId: Search_BusSchedules
      parameters:
      - name: query
        in: query
        description: The search query
        required: true
        schema:
          type: string
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Tfl.Api.Presentation.Entities.SearchResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/Tfl.Api.Presentation.Entities.SearchResponse'
            application/xml:
              schema:
                $ref: '#/components/schemas/Tfl.Api.Presentation.Entities.SearchResponse'
            text/xml:
              schema:
                $ref: '#/components/schemas/Tfl.Api.Presentation.Entities.SearchResponse'
      deprecated: false
  /Search/Meta/SearchProviders:
    get:
      tags:
      - Search
      summary: Gets the available searchProvider names.
      operationId: Search_MetaSearchProviders
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
            text/json:
              schema:
                type: array
                items:
                  type: string
            application/xml:
              schema:
                type: array
                items:
                  type: string
            text/xml:
              schema:
                type: array
                items:
                  type: string
      deprecated: false
  /Search/Meta/Categories:
    get:
      tags:
      - Search
      summary: Gets the available search categories.
      operationId: Search_MetaCategories
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
            text/json:
              schema:
                type: array
                items:
                  type: string
            application/xml:
              schema:
                type: array
                items:
                  type: string
            text/xml:
              schema:
                type: array
                items:
                  type: string
      deprecated: false
  /Search/Meta/Sorts:
    get:
      tags:
      - Search
      summary: Gets the available sorting options.
      operationId: Search_MetaSorts
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: array
                items:
                  type: string
            text/json:
              schema:
                type: array
                items:
                  type: string
            application/xml:
              schema:
                type: array
                items:
                  type: string
            text/xml:
              schema:
                type: array
                items:
                  type: string
      deprecated: false
components:
  schemas:
    Tfl.Api.Presentation.Entities.SearchResponse:
      type: object
      properties:
        query:
          type: string
        from:
          format: int32
          type: integer
        page:
          format: int32
          type: integer
        pageSize:
          format: int32
          type: integer
        provider:
          type: string
        total:
          format: int32
          type: integer
        matches:
          type: array
          items:
            $ref: '#/components/schemas/Tfl.Api.Presentation.Entities.SearchMatch'
        maxScore:
          format: double
          type: number
    Tfl.Api.Presentation.Entities.SearchMatch:
      type: object
      properties:
        id:
          type: string
        url:
          type: string
        name:
          type: string
        lat:
          format: double
          type: number
        lon:
          format: double
          type: number
  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)