Trainline website screenshot

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 29 more developer resources.

22.7/100 emerging ▬ flat Agent 11/100 agent aware saas · ODbL-1.0 Full breakdown ↓
scored 2026-09-08 · rubric v0.20.0
1 APIs
TravelRailUnited KingdomEuropeBookingTicketingDistributionOTACorporate Travel

Kin Score

Kin Score Kin Score How this is scored →
scored 2026-09-08 · rubric v0.20.0
Create-or-Update Ergonomics could not be measured. We hold no machine-readable contract for this provider to read, so there is nothing to measure a write surface against. Excluded rather than scored zero: never-measured and measured-empty are different facts. Publishing an OpenAPI is what makes this facet — and several others — scorable at all.
Improve this rating by publishing the missing artifacts — every area above can be raised, and the full rubric is at apis.io/rating/. Every facet and dimension name above is a link: it opens that measurement's own page — what it means, the exact checks that feed it, how the whole catalog distributes on it, and the providers at the top of it. 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. Submit an artifact on GitHub — free → Manage your own listing — the Influence plan, $499/mo →

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 3

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 3

Status, limits, changes, and where to get help

Commercial 4

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.'
deliveryModel:
  model: saas
  license: ODbL-1.0
  open_source: false
  commercial: true
  callable_host: false
  label: Hosted service · you call their endpoint
  confidence: medium
  source:
  - license
  - pricing
  generated: '2026-08-28'
  method: derived
accessModel:
  pricing: unknown
  onboarding: unknown
  trial: false
  try_now: false
  public: false
  label: Unknown
  confidence: low
  source:
  - security
  generated: '2026-09-02'
  method: derived
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.23'
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: IssueTracker
  url: https://github.com/trainline-eu/stations/issues
- type: ContributionGuide
  url: https://github.com/trainline-eu/stations/blob/master/CONTRIBUTING.md
- type: License
  name: ODbL-1.0
  url: https://github.com/trainline-eu/stations/blob/master/LICENSE
- 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

Work with this as data

Every provider 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 providers

9 MCP tools reach this
  • find_providersBrowse and filter every provider in the catalog.
  • get_provider_artifactsEvery artifact this provider publishes, grouped by type.
  • get_provider_operationsEvery operation across all of their OpenAPIs — one call instead of parsing every spec.
  • get_provider_toolsEvery MCP tool they ship, with the operation each wraps.
  • get_provider_evidenceHow each part of their score was established. Free — the basis for a claim should not sit behind it.
  • get_provider_ratingPRO — composite, band, trend and facet scores.
  • 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 provider
curl "https://apis.io/api/v1/providers/trainline"
All providers
curl "https://apis.io/api/v1/providers?limit=25"
Every operation they expose
curl "https://apis.io/api/v1/providers/trainline/operations?limit=25"
How their score was established
curl "https://apis.io/api/v1/providers/trainline/evidence"

Discovery needs no key. Ratings and market analysis are Pro.

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.