APIs / Trainline / Fares Calendar Return

Trainline: Fares Calendar Return

Fares Calendar Return from Trainline as JSON. 1 credit per successful call.

GET /v1/trainline/fares-calendar-return

Parameters

Send parameters in the query string.

ParameterTypeRequiredAllowed values
originstringRequiredAny
destinationstringRequiredAny
date_fromstringRequiredAny
date_tostringRequiredAny
return_fromstringRequiredAny
return_tostringRequiredAny
currencystringOptionalGBP, EUR

Example request

Trainline
GET/v1/trainline/fares-calendar-return?origin=urn%3Atrainline%3Ageneric%3Aloc%3A182gb&destination=urn%3Atrainline%3Ageneric%3Aloc%3A115gb&date_from=2027-01-04&date_to=2027-01-06&return_from=2027-01-07&return_to=2027-01-09
{
  "success": true,
  "data": {
    "origin": "urn:trainline:generic:loc:182gb",
    "destination": "urn:trainline:generic:loc:115gb",
    "date_from": "2026-12-14",
    "date_to": "2026-12-16",
    "currency": "GBP",
    "return_from": "2026-12-17",
    "return_to": "2026-12-19",
    "pairs": [
      {
        "outward_date": "2026-12-14",
        "return_date": "2026-12-17",
        "inward_departure": "2026-12-17T13:30:00+00:00",
        "inward_price": {
          "amount": 14,
          "currency": "GBP"
        }
      },
      {
        "outward_date": "2026-12-15",
        "return_date": "2026-12-17",
        "inward_departure": "2026-12-17T12:30:00+00:00",
        "inward_price": {
          "amount": 14,
          "currency": "GBP"
        }
      },
      {
        "outward_date": "2026-12-16",
        "return_date": "2026-12-17",
        "inward_departure": "2026-12-17T12:30:00+00:00",
        "inward_price": {
          "amount": 14,
          "currency": "GBP"
        }
      }
    ]
  },
  "meta": {
    "endpoint_family": "fares_calendar_return"
  }
}
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 8 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
originstring
destinationstring
date_fromstring
date_tostring
currencystring
return_fromstring
return_tostring
pairsobject[]