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.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
origin | string | Required | Any |
destination | string | Required | Any |
date_from | string | Required | Any |
date_to | string | Required | Any |
return_from | string | Required | Any |
return_to | string | Required | Any |
currency | string | Optional | GBP, 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.
| Field | Type |
|---|---|
origin | string |
destination | string |
date_from | string |
date_to | string |
currency | string |
return_from | string |
return_to | string |
pairs | object[] |