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
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.
| Endpoint | What it returns | Cost |
|---|---|---|
GET/v1/trainline/cards | Cards | 1 credit |
GET/v1/trainline/cards-discounts | Cards Discounts | 1 credit |
GET/v1/trainline/fares-best | Fares Best | 1 credit |
GET/v1/trainline/fares-calendar | Fares Calendar | 1 credit |
GET/v1/trainline/fares-calendar-times | Fares Calendar Times | 1 credit |
GET/v1/trainline/journeys | Journeys | 1 credit |
GET/v1/trainline/journeys-calling-points | Journeys Calling Points | 1 credit |
GET/v1/trainline/journeys-local-transport | Journeys Local Transport | 1 credit |
GET/v1/trainline/journeys-page | Journeys Page | 1 credit |
GET/v1/trainline/journeys-price-prediction | Journeys Price Prediction | 1 credit |
GET/v1/trainline/journeys-return | Journeys Return | 1 credit |
GET/v1/trainline/journeys-ticket-options | Journeys Ticket Options | 1 credit |
GET/v1/trainline/stations | Stations | 1 credit |
GET/v1/trainline/stations-nearby | Stations 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.