Transport for London, England Line API

The Line API from Transport for London, England — 21 operation(s) for line.

GitHub OpenAPI

Operations 21

GET /Line/Meta/Modes Gets a list of valid modes #
GET /Line/Meta/Severity Gets a list of valid severity codes #
GET /Line/Meta/DisruptionCategories Gets a list of valid disruption categories #
GET /Line/Meta/ServiceTypes Gets a list of valid ServiceTypes to filter on #
GET /Line/{ids} Gets lines that match the specified line ids. #
GET /Line/Mode/{modes} Gets lines that serve the given modes. #
GET /Line/Route Get all valid routes for all lines, including the name and id of the originating and terminating stops for each route. #
GET /Line/{ids}/Route Get all valid routes for given line ids, including the name and id of the originating and terminating stops for each route. #
GET /Line/Mode/{modes}/Route Gets all lines and their valid routes for given modes, including the name and id of the originating and terminating stops for each route #
GET /Line/{id}/Route/Sequence/{direction} Gets all valid routes for given line id, including the sequence of stops on each route. #
GET /Line/{ids}/Status/{StartDate}/to/{EndDate} Gets the line status for given line ids during the provided dates e.g Minor Delays #
GET /Line/{ids}/Status Gets the line status of for given line ids e.g Minor Delays #
GET /Line/Status/{severity} Gets 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 #
GET /Line/Mode/{modes}/Status Gets the line status of for all lines for the given modes #
GET /Line/{id}/StopPoints Gets a list of the stations that serve the given line id #
GET /Line/{id}/Timetable/{fromStopPointId} Gets the timetable for a specified station on the give line #
GET /Line/{id}/Timetable/{fromStopPointId}/to/{toStopPointId} Gets the timetable for a specified station on the give line with specified destination #
GET /Line/{ids}/Disruption Get disruptions for the given line ids #
GET /Line/Mode/{modes}/Disruption Get disruptions for all lines of the given modes. #
GET /Line/{ids}/Arrivals/{stopPointId} Get the list of arrival predictions for given line ids based at the given stop #

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-line-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-line-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  version: v1
  title: Transport for London Unified Line API
servers:
- url: https://api.tfl.gov.uk
tags:


# --- truncated at 32 KB (57 KB total) ---
# Full source: https://artifacts.apis.io/transport-for-london-england/openapi/transport-for-london-england-line-api-openapi.yml