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
- 5In this collection
- Providers
- 1Unique providers
- Requests
- —Loading...
- Success rate
- —Loading...
- Response P50
- —Loading...
Available APIs
Trainline UK train calling points API
Use the Trainline UK train calling points API to retrieve calling-point records, arrival and port status, source-page links and record identities and titles as structured JSON from Trainline. Supply station identifier in the query; optionally select record identifier to set the requested scope. Use these results to review service progress and connect stop changes or delays with the selected train journey. Service identifiers are valid only for their operating day. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.
Trainline route: times, trains per day, fares from API
Use the Trainline route: times, trains per day, fares from API to retrieve calculated distance, transport operators, timetable entries, journey segments and endpoints, clock-change records and published text as structured JSON from Trainline. Supply origin and destination in the query. Use these results to compare journey options for the selected route and dates before choosing a travel itinerary. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.
Trainline UK live arrivals API
Use the Trainline UK live arrivals API to retrieve service options, arrival and port status, source-page links and record identities and titles as structured JSON from Trainline. Supply station identifier in the query; optionally select origin to set the requested scope. Use these results to assemble arrival or departure boards and inspect service timings and operating status. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.
Trainline UK live departures API
Use the Trainline UK live departures API to retrieve service options, arrival and port status, source-page links and record identities and titles as structured JSON from Trainline. Supply station identifier in the query; optionally select destination to set the requested scope. Use these results to assemble arrival or departure boards and inspect service timings and operating status. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.
Trainline station and city search API
Use the Trainline station and city search API to retrieve matching scores, product attributes, time-zone information, record identities and titles and geographic references as structured JSON from Trainline. Supply search words in the query; optionally select record type to set the requested scope. Use these results to reconcile transport-location identifiers and connect stations or cities with published services. The detail page includes parameter definitions, paired request and response examples, and usage pricing for this operation.
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.
Use Trainline with your agent
Inspect endpoint contracts and confirm availability and pricing before a paid call.