APIs / Travel / Trainline

1 credit per call14 endpoints

Trainline API

Get Trainline data as JSON with one API key: cards, cards discounts, fares best, fares calendar. 1,000 free credits a month.

Trainline
GET/v1/trainline/cards
curl "https://api.perceptlayer.com/v1/trainline/cards" \
  -H "X-API-Key: $API_KEY"
cURL1 credit per successful call
Run this call below or from your dashboard to see a live response.

Playground

Run this API

cURLshell
curl "https://api.perceptlayer.com/v1/trainline/cards" \
  -H "X-API-Key: $API_KEY"

Trainline · 14 endpoints

Endpoints

Every endpoint takes the same key. Open one for its parameters and an example request.

EndpointWhat it returnsCost
GET/v1/trainline/cardsCards 1 credit
GET/v1/trainline/cards-discountsCards Discounts 1 credit
GET/v1/trainline/fares-bestFares Best 1 credit
GET/v1/trainline/fares-calendarFares Calendar 1 credit
GET/v1/trainline/fares-calendar-timesFares Calendar Times 1 credit
GET/v1/trainline/journeysJourneys 1 credit
GET/v1/trainline/journeys-calling-pointsJourneys Calling Points 1 credit
GET/v1/trainline/journeys-local-transportJourneys Local Transport 1 credit
GET/v1/trainline/journeys-pageJourneys Page 1 credit
GET/v1/trainline/journeys-price-predictionJourneys Price Prediction 1 credit
GET/v1/trainline/journeys-returnJourneys Return 1 credit
GET/v1/trainline/journeys-ticket-optionsJourneys Ticket Options 1 credit
GET/v1/trainline/stationsStations 1 credit
GET/v1/trainline/stations-nearbyStations Nearby 1 credit

Overview

About the Trainline API

Get Trainline data as JSON with one API key: cards, cards discounts, fares best, fares calendar. 1,000 free credits a month.

TravelJSONRESTMCP

More travel APIs

Try the Trainline API with 1,000 free credits

No credit card. Failed calls are never billed.