Trainline
Use Trainline data APIs through OpenAny to research stations and route information and inspect UK arrival, departure and calling-point data. For UK live arrivals, supply station identifier in the query; optionally select origin to set the requested scope. Other available operations include UK live departures, station and city search, route: times, trains per day, fares from, UK train calling points. Use these results to assemble arrival or departure boards and inspect service timings and operating status. Each API page provides supported parameters, request and response examples, and usage pricing.
- Endpoints / Providers
- 5 / 1In this collection
- Requests
- —Loading...
- Success rate
- —Loading...
- Response P50
- —Loading...
Trainline
Choose an API, then continue with your agent.
- Endpoints
- 5
- Providers
- 1
Each endpoint publishes its own rate and billing unit.
View APIsConnect your agentOn this page
Available APIs
Trainline UK Calling Points API
Get Trainline UK calling points from a station-board service ID via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, raw, station, and retrieve structured data including source board-service identifier, source train UID reference, source service date, source stop name, and scheduled stop-time label for service stops, and board navigation.
Trainline Route Overview API
Get Trainline route summaries between cities or stations via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as from, output, raw, and retrieve structured data including source average journey duration, source shortest journey duration, source longest journey duration, source route service-count summary, and source starting-fare summary to route discovery, and timetable context.
Trainline UK Arrivals API
Get Trainline UK station arrivals by name or slug via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as limit, output, raw, and retrieve structured data including selected station slug, source board-service identifier, scheduled arrival label, source expected-arrival label, and source cancellation flag for arrival display, and service navigation.
Trainline UK Departures API
Get Trainline UK departures by station name or slug via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as limit, output, raw, and retrieve structured data including selected station slug, source board-service identifier, source destination label, source platform value, and source on-time flag for departure board, and calling-point links.
Trainline Location Search API
Search Trainline stations and city groups by name and locale via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as output, q, raw, and retrieve structured data including source location reference, source short station code, source navigation slug, source location type, and source timezone for location picker, and navigation labels.
Common questions
How are Trainline APIs priced?
Each endpoint publishes its own rate and billing unit. Compare the selected implementation and request-specific conditions; a collection starting price is not a quote for every request.
How do I authenticate Trainline requests?
Use your OpenAny API key from a secure environment variable for supported account-based calls. Never paste secrets into prompts, documentation examples or public logs.
Are all implementations interchangeable?
No. Read each endpoint request schema, response examples and limitations before execution. Different suppliers may expose different fields and behavior; approve the budget before a paid call.