Trainline

Trainline plc is Europe's leading independent rail and coach ticket retailer and distribution platform, headquartered in London and listed on the London Stock Exchange, with the United Kingdom as its home market. It aggregates fares, inventory and real-time journey data from 270+ rail and coach carriers across more than 40 countries and resells that content through its own consumer app and website, through Trainline for Business, and — via Trainline Solutions / Trainline Partner Solutions — as wholesale distribution to other travel sellers through its Global API, Agent Tool and White Label products. In distribution terms Trainline is an aggregator-reseller sitting between the carriers and the traveller: rail has no GDS-equivalent oligopoly and no NDC, so Trainline is itself the intermediation layer, holding the carrier connections, the ticket-issuing accreditation and the settlement relationships that a competitor would otherwise have to rebuild carrier by carrier. Its API posture is honestly gated: the Global API is publicly described as "a modern, intuitive RESTful API" on tps.thetrainline.com but there is no developer portal, no public reference, no sandbox and no OpenAPI — access requires a commercial agreement reached through a sales conversation, and in Great Britain a retailer also needs Rail Delivery Group / Rail Settlement Plan third-party retailer accreditation and a bond. The one genuinely open artifact is the ODbL-licensed European station database Trainline publishes on GitHub, which maps its internal station ids to UIC codes, ATOC/CRS codes and carrier-specific ids.

Trainline publishes 1 API on the APIs.io network. Tagged areas include Travel, Rail, United Kingdom, Europe, and Booking.

Trainline’s developer surface includes developer portal, documentation, support, engineering blog, and 26 more developer resources.

22.5/100 emerging Agent 4/100 human only Full breakdown ↓
scored 2026-07-28 · rubric v0.5
1 APIs
TravelRailUnited KingdomEuropeBookingTicketingDistributionOTACorporate Travel

Kin Score

Kin Score Kin Score How this is scored →
scored 2026-07-28 · rubric v0.5
Composite quality — 22.5/100 · emerging
Contract Quality 0.0 / 25
Developer Ergonomics 4.8 / 20
Commercial Clarity 7.4 / 20
Operational Transparency 2.1 / 13
Governance 1.6 / 12
Discoverability 6.8 / 10
Agent readiness — 4/100 · human only
Machine-Readable Contract 0 / 18
Agentic Access Contract 0 / 15
MCP Server 0 / 12
Machine-Readable Auth 0 / 10
Idempotency 0 / 9
Stable Error Semantics 0 / 8
Request/Response Examples 0 / 7
Rate-Limit Signaling 0 / 7
Typed Event Surface 0 / 6
Agent Skills 0 / 5
Well-Known Catalog 4 / 4
Consent & Bot Identity 0 / 3
Improve this rating by publishing the missing artifacts — every area above can be raised, and the full rubric is at apis.io/rating/. This rating is computed from github.com/api-evangelist/trainline: open an issue to ask a question, or submit a pull request to add artifacts. Want it done for you? Prioritized profiling — $2,500 →

APIs 1

Individual APIs this provider publishes, each with its own machine-readable definition.

Trainline Global API

Trainline Partner Solutions' wholesale rail and coach distribution API, sold to travel sellers, OTAs, TMCs and corporate booking tools. Trainline publicly describes it as "a mod...

JSON Schema 1

Standalone JSON Schema definitions for this provider's data models.

Trainline European Station

76 properties

JSON SCHEMA

Security Posture 3

Authentication, domain security, vulnerability disclosure, and trust-center signals.

Trainline Domain Security

TLSv1.3 · HSTS · DNSSEC · DMARC

SECURITY

Trainline Vulnerability Disclosure

Hackerone · contact published

SECURITY

Trainline Trust Center

PCI DSS Level 1, ISO/IEC 27001, ISO 22301

SECURITY

Resources

Get Started 1

Portal, sign-up, and the first successful call

Documentation 2

Reference material describing how the API behaves

Agent Surfaces 2

MCP servers, agent skills, and machine-readable catalogs

Design & Contract 3

Pagination, idempotency, versioning, errors, and events

Build 4

SDKs, sample code, and the tooling you integrate with

Access & Security 5

Authentication, authorization, and security posture

Operate 2

Status, limits, changes, and where to get help

Commercial 3

Pricing, plans, and the legal terms of use

Company 8

The organization behind the API

Scroll for all 8

Source (apis.yml)

apis.yml Raw ↑
aid: trainline
url: https://raw.githubusercontent.com/api-evangelist/trainline/refs/heads/main/apis.yml
name: Trainline
kind: company
description: 'Trainline plc is Europe''s leading independent rail and coach ticket retailer and distribution platform, headquartered
  in London and listed on the London Stock Exchange, with the United Kingdom as its home market. It aggregates fares, inventory
  and real-time journey data from 270+ rail and coach carriers across more than 40 countries and resells that content through
  its own consumer app and website, through Trainline for Business, and — via Trainline Solutions / Trainline Partner Solutions
  — as wholesale distribution to other travel sellers through its Global API, Agent Tool and White Label products. In distribution
  terms Trainline is an aggregator-reseller sitting between the carriers and the traveller: rail has no GDS-equivalent oligopoly
  and no NDC, so Trainline is itself the intermediation layer, holding the carrier connections, the ticket-issuing accreditation
  and the settlement relationships that a competitor would otherwise have to rebuild carrier by carrier. Its API posture is
  honestly gated: the Global API is publicly described as "a modern, intuitive RESTful API" on tps.thetrainline.com but there
  is no developer portal, no public reference, no sandbox and no OpenAPI — access requires a commercial agreement reached
  through a sales conversation, and in Great Britain a retailer also needs Rail Delivery Group / Rail Settlement Plan third-party
  retailer accreditation and a bond. The one genuinely open artifact is the ODbL-licensed European station database Trainline
  publishes on GitHub, which maps its internal station ids to UIC codes, ATOC/CRS codes and carrier-specific ids.'
image: https://tps.thetrainline.com/apple-touch-icon.png
tags:
- Travel
- Rail
- United Kingdom
- Europe
- Booking
- Ticketing
- Distribution
- OTA
- Corporate Travel
created: '2026-07-28'
modified: '2026-07-28'
specificationVersion: '0.19'
apis:
- aid: trainline:trainline-global-api
  name: Trainline Global API
  description: Trainline Partner Solutions' wholesale rail and coach distribution API, sold to travel sellers, OTAs, TMCs
    and corporate booking tools. Trainline publicly describes it as "a modern, intuitive RESTful API built on the most up
    to date tech stack" covering search and browse (quoted at "600 searches per second"), booking and ticketing, payment in
    10 currencies including on-account, real-time information on delays, disruption and platform changes, and aftersales —
    "cancellations within an hour, exchanges, changes of journey and refunds" — plus market-specific features such as UK SplitSave
    and seat maps, across ">44.8k stations connected". No public documentation, API reference, sandbox, machine-readable specification
    or self-serve signup is published; the only onboarding path is "Get in touch", with a stated average integration time
    of 12 weeks and Trainline-assisted carrier accreditation. No baseURL is recorded here because none is published; the host
    api.thetrainline.com resolves but returns HTTP 401 with a Basic auth challenge on every path and is not documented as
    the Global API endpoint.
  tags:
  - Rail
  - Booking
  - Ticketing
  - Distribution
  - Travel
  properties:
  - type: Documentation
    url: https://tps.thetrainline.com/our-products/global-api/
  - type: Documentation
    url: https://www.thetrainline.com/solutions/api
  - type: Support
    url: https://tps.thetrainline.com/partner-support/
  - type: Website
    url: https://tps.thetrainline.com/
common:
- type: DomainSecurity
  url: security/trainline-domain-security.yml
- type: VulnerabilityDisclosure
  url: security/trainline-vulnerability-disclosure.yml
- type: Security
  url: https://www.thetrainline.com/terms/security
- type: TrustCenter
  url: security/trainline-trust-center.yml
- type: Compliance
  url: https://www.thetrainline.com/terms/security
- type: Conformance
  url: conformance/trainline-conformance.yml
- type: WellKnown
  url: well-known/trainline-well-known.yml
- type: LLMsTxt
  url: llms/trainline-llms.txt
- type: Lifecycle
  url: lifecycle/trainline-lifecycle.yml
- type: Packages
  url: packages/trainline-packages.yml
- type: Vocabulary
  url: vocabulary/trainline-station-identifiers.yml
- type: JsonSchema
  url: json-schema/trainline-station.json
- type: Website
  url: https://www.thetrainline.com/
- type: Website
  url: https://www.trainlinegroup.com/
- type: Portal
  url: https://tps.thetrainline.com/
- type: Documentation
  url: https://tps.thetrainline.com/our-products/
- type: Support
  url: https://tps.thetrainline.com/partner-support/
- type: TermsOfService
  url: https://www.thetrainline.com/terms
- type: TermsOfService
  url: https://tps.thetrainline.com/terms-and-conditions/
- type: PrivacyPolicy
  url: https://www.thetrainline.com/terms/privacy
- type: Blog
  url: https://tps.thetrainline.com/blog-and-media/
- type: Blog
  url: https://media.trainline.com/
- type: GitHubOrganization
  url: https://github.com/trainline
- type: GitHubOrganization
  url: https://github.com/trainline-eu
- type: GitHubRepository
  url: https://github.com/trainline-eu/stations
- type: LinkedIn
  url: https://www.linkedin.com/company/trainline
- type: Twitter
  url: https://x.com/thetrainline
- type: Support
  url: https://support.thetrainline.com/en/support/home
- type: Partners
  url: https://www.thetrainline.com/about-us/partnerships
- type: Investors
  url: https://www.trainlinegroup.com/investors
maintainers:
- FN: Kin Lane
  email: kin@apievangelist.com