APIs / Trainline / Journeys

Trainline: Journeys

Journeys from Trainline as JSON. 1 credit per successful call.

GET /v1/trainline/journeys

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
originstringRequiredAny
destinationstringRequiredAny
datestringRequiredAny
timestringOptionalAny
journey_typestringOptionalsingle, return, open_return
return_datestringOptionalAny
return_timestringOptionalAny
adultsintegerOptionalAny
childrenintegerOptionalAny
child_ageintegerOptionalAny
transport_modestringOptionalall, train, coach
currencystringOptionalGBP, EUR

Example request

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

Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.