APIs / Trainline / Journeys Price Prediction

Trainline: Journeys Price Prediction

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

GET /v1/trainline/journeys-price-prediction

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
search_idstringRequiredAny
journey_idstringRequiredAny
currencystringOptionalGBP, EUR

Example request

Trainline
GET/v1/trainline/journeys-price-prediction?search_id=1ab6ab81-b316-4f2e-ba21-df3055a8e3cc&journey_id=785924f2-9819-4468-9ca7-eee4855546bd
{
  "success": true,
  "data": {
    "search_id": "1ab6ab81-b316-4f2e-ba21-df3055a8e3cc",
    "journey_id": "785924f2-9819-4468-9ca7-eee4855546bd"
  },
  "meta": {
    "endpoint_family": "journeys_price_prediction"
  }
}
200 OKJSONX-Credits-Used: 1
Recorded 12 Nov 2026 and shortened.

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

Response fields

data has these 2 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
search_idstring
journey_idstring