Trainline Local Transport API Documentation Read local transport add-ons that cover the offers of a journey: PlusBus and travelcard fares with the zone, the price per fare category and the period of validity. Each add-on belongs to one offer id. An offer without add-on returns an empty list and is not billed.
Run this endpoint
Endpoint
Parameters
Start with the required fields, then add optional filters only when your use case needs them.
Runnable path
2 required parameters needed before sending a request.
1 optional filter available.
string
Required
search_id of a journey search answer.
1234567890
string
Required
Comma separated offer ids (offers[].id), 1 to 10.
example
string
Optional
GBP or EUR. Use the same value as in the search.
USD
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"data": {
"currency": "GBP",
"search_id": "1ab6ab81-b316-4f2e-ba21-df3055a8e3cc",
"alternatives": [
{
"options": [
{
"type": "plusbus",
"fares": [
{
"name": "PlusBus Day",
"zone": "Manchester+Bus",
"price": {
"amount": 4.9,
"currency": "GBP"
},
"category": "Peak",
"passengers": 1,
"valid_from": "2026-11-03T11:19:00+00:00",
"valid_until": "2026-11-04T04:30:00+00:00"
}
]
},
{
"type": "travelcard",
"fares": [
{
"name": "Anytime Day Travelcard",
"zone": "London Travelcard Zones 1-4",
"price": {
"amount": 16.6,
"currency": "GBP"
},
"category": "Peak",
"passengers": 1,
"valid_from": "2026-11-03T00:00:00+00:00",
"valid_until": "2026-11-04T04:30:00+00:00"
},
{
"name": "Off-Peak Day Travelcard",
"zone": "London Travelcard Zones 1-6",
"price": {
"amount": 16.6,
"currency": "GBP"
},
"category": "Off-Peak",
"passengers": 1,
"valid_from": "2026-11-03T00:00:00+00:00",
"valid_until": "2026-11-04T04:30:00+00:00"
},
{
"name": "Anytime Day Travelcard",
"zone": "London Travelcard Zones 1-6",
"price": {
"amount": 23.6,
"currency": "GBP"
},
"category": "Peak",
"passengers": 1,
"valid_from": "2026-11-03T00:00:00+00:00",
"valid_until": "2026-11-04T04:30:00+00:00"
}
]
}
],
"alternative_id": "6f3c35e3-7877-42a1-a1c9-72f338b722bc"
}
]
},
"meta": {
"billable": true,
"endpoint_family": "journeys_local_transport"
},
"success": true
}
Errors
Handle these documented responses before retrying or showing customer-facing failures.
Validation Error
A required parameter is missing or invalid. This response is not billable.
{
"errors": {
"origin": [
"The origin is a station id from the stations endpoint."
]
},
"message": "The request validation failed"
}Upstream Unavailable
Trainline did not answer in time. Scrappa retries on other exits first. This response is not billable. Retry after a few seconds.
{
"meta": {
"billable": false,
"retryable": true,
"endpoint_family": "journeys_local_transport"
},
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "The Trainline service is temporarily unavailable. Please retry."
},
"success": false
}Generate Code with AI
Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.
Try It Live
Test this endpoint in our interactive playground with real data.