Transport for London, England Line API

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

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 21

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /Line/Meta/Modes List valid line modes · Gets a list of valid modes #
Ask an LLM
“Which transport modes like tube or dlr can I filter lines by?”
“What mode values does the line mode lookup accept?”
Tell an agent
List the valid line modes.
Show me the transport mode codes for filtering lines.
GET /Line/Meta/Severity List valid disruption severity codes · Gets a list of valid severity codes #
Ask an LLM
“What severity levels are used for line disruptions?”
“Can I get the severity code lookup for line status?”
Tell an agent
List the valid disruption severity codes.
Show the severity level codes for line status.
GET /Line/Meta/DisruptionCategories List valid disruption categories · Gets a list of valid disruption categories #
Ask an LLM
“Which disruption categories can I filter line disruptions by?”
“What category values exist for line disruption messages?”
Tell an agent
List the valid disruption categories.
Show the disruption category codes for filtering.
GET /Line/Meta/ServiceTypes List valid service types for lines · Gets a list of valid ServiceTypes to filter on #
Ask an LLM
“What service types like Regular or Night can I filter lines by?”
“Which service type values exist for line routes?”
Tell an agent
List the valid service types for lines.
Show the service type codes for filtering line routes.
GET /Line/{ids} Get lines by line id · Gets lines that match the specified line ids. #
Ask an LLM
“How do I look up the status of specific lines by their id?”
“Can I fetch several lines at once by id?”
Tell an agent
Get lines {ids}.
Show the status of lines {ids} in one call.
GET /Line/Mode/{modes} Get lines serving a transport mode · Gets lines that serve the given modes. #
Ask an LLM
“Which lines serve a particular mode like the tube or DLR?”
“Can I list all lines operating on a given mode?”
Tell an agent
Get lines that serve mode {modes}.
Show all lines operating on {modes}.
GET /Line/Route List all line routes and termini · Get all valid routes for all lines, including the name and id of the originating and terminating stops for each route. #
Ask an LLM
“What are the full routes and terminating stops for every line?”
“Can I get the origin and destination stop names for all lines?”
Tell an agent
List all line routes with origin and destination stops.
Show every line's full route and termini.
GET /Line/{ids}/Route List routes for specific lines · Get all valid routes for given line ids, including the name and id of the originating and terminating stops for each route. #
Ask an LLM
“What routes exist for a few specific lines?”
“Can I get the terminating stops for selected lines only?”
Tell an agent
List routes for lines {ids}.
Show the origin and destination stops of lines {ids}.
GET /Line/Mode/{modes}/Route List routes for lines of a mode · Gets all lines and their valid routes for given modes, including the name and id of the originating and terminating stops for each route #
Ask an LLM
“Which lines and routes serve a given mode?”
“Can I get route termini for all lines of one mode?”
Tell an agent
List routes for lines of mode {modes}.
Show the full routes of every line on {modes}.
GET /Line/{id}/Route/Sequence/{direction} Get stop sequences on a line route · Gets all valid routes for given line id, including the sequence of stops on each route. #
Ask an LLM
“What stops are on a line's route in order?”
“Can I see the stop sequence for a line in one direction?”
Tell an agent
Get the stop sequence for line {id} in direction {direction}.
Show the ordered stops on {id} going {direction}.
GET /Line/{ids}/Status/{StartDate}/to/{EndDate} Get the status of London Underground lines over dates · Gets the line status for given line ids during the provided dates e.g Minor Delays #
Ask an LLM
“What is the status of the Circle and Victoria lines on a given day?”
“Can I see which stops are affected by delays on a tube line?”
Tell an agent
Get the status of lines {ids} from {startDate} to {endDate}.
Show {ids} status between {startDate} and {endDate} with disruption details.
GET /Line/{ids}/Status Get current line status · Gets the line status of for given line ids e.g Minor Delays #
Ask an LLM
“What is the current status of several lines?”
“Can I get line status for a list of line ids right now?”
Tell an agent
Get the current status of lines {ids}.
Show line status for {ids} with full disruption details.
GET /Line/Status/{severity} Get lines with a given disruption 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 #
Ask an LLM
“Which lines have a disruption severity of 14?”
“Can I list lines by severity level?”
Tell an agent
Get lines with severity {severity}.
Show all lines at disruption severity {severity}.
GET /Line/Mode/{modes}/Status Get line status for a transport mode · Gets the line status of for all lines for the given modes #
Ask an LLM
“What is the status of all lines on a given mode?”
“Can I see line status for one mode only?”
Tell an agent
Get line status for mode {modes}.
Show the status of every line on {modes}.
GET /Line/{id}/StopPoints List stations serving a line · Gets a list of the stations that serve the given line id #
Ask an LLM
“Which stations serve a particular line?”
“Can I get only the National Rail stations operated by TfL?”
Tell an agent
List the stations serving line {id}.
Show stations on {id} operated by TfL only.
GET /Line/{id}/Timetable/{fromStopPointId} Get a station's timetable for a line · Gets the timetable for a specified station on the give line #
Ask an LLM
“What times does a line run through a given station?”
“Can I get a station's timetable for one line?”
Tell an agent
Get the timetable for line {id} at station {fromStopPointId}.
Show when {id} runs through {fromStopPointId}.
GET /Line/{id}/Timetable/{fromStopPointId}/to/{toStopPointId} Get a station-to-station timetable · Gets the timetable for a specified station on the give line with specified destination #
Ask an LLM
“What times does a line run from one station to another?”
“Can I get a journey timetable between two stops?”
Tell an agent
Get the timetable for line {id} from {fromStopPointId} to {toStopPointId}.
Show the journey from {fromStopPointId} to {toStopPointId} on {id}.
GET /Line/{ids}/Disruption Get disruptions on lines · Get disruptions for the given line ids #
Ask an LLM
“What disruptions are affecting certain lines?”
“Can I see disruption messages for several lines at once?”
Tell an agent
Get disruptions on lines {ids}.
Show the disruption messages for lines {ids}.
GET /Line/Mode/{modes}/Disruption Get disruptions on all lines of a mode · Get disruptions for all lines of the given modes. #
Ask an LLM
“Which lines of a given mode are disrupted?”
“Can I see disruptions across every line on a mode?”
Tell an agent
Get disruptions on all lines of mode {modes}.
Show disruption messages for every line on {modes}.
GET /Line/{ids}/Arrivals/{stopPointId} Get arrival predictions for a stop · Get the list of arrival predictions for given line ids based at the given stop #
Ask an LLM
“When will the next train arrive at a stop for a line?”
“Can I get predictions for several lines at once?”
Tell an agent
Get arrival predictions for lines {ids} at stop {stopPointId}.
Show arrivals for {ids} at stop {stopPointId} going to {destinationStationId}.

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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. 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