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

Trainline
GET/v1/trainline/journeys?origin=urn%3Atrainline%3Ageneric%3Aloc%3AEUS1444gb&destination=urn%3Atrainline%3Ageneric%3Aloc%3AMAN2968gb&date=2026-12-12
{
  "success": true,
  "data": {
    "origin": "urn:trainline:generic:loc:EUS1444gb",
    "destination": "urn:trainline:generic:loc:MAN2968gb",
    "journey_type": "single",
    "currency": "GBP",
    "transport_mode": "all",
    "search_id": "fb277616-9b9c-4b6c-8511-31c3165c6e72",
    "expires_at": "2026-11-12T13:33:03+00:00",
    "requires_inward_call": false,
    "journey_count": 12,
    "journeys": [
      {
        "id": "59d6b6b1-7c07-4f39-9afd-c9fcf2dcdf6b",
        "departure_time": "2026-12-12T09:13:00+00:00",
        "arrival_time": "2026-12-12T11:19:00+00:00",
        "duration_minutes": 126,
        "distance_km": 280,
        "changes": 0,
        "carriers": [
          {
            "code": "urn:trainline:atoc:carrier:VT",
            "name": "Avanti West Coast"
          }
        ],
        "legs": [
          {
            "origin": "…",
            "destination": "…",
            "departure_time": "2026-12-12T09:13:00+00:00",
            "arrival_time": "2026-12-12T11:19:00+00:00",
            "departure_platform": "13",
            "arrival_platform": "5",
            "carrier": "…",
            "transport_mode": "train",
            "duration_minutes": 126,
            "distance_km": 280,
            "timetable_id": "W33743",
            "train_number": "VT709700",
            "reservable": true,
            "reservation_mandatory": true,
            "cancelled": false,
            "replacement_service": false,
            "bike_restriction": "ALLOWEDWITHRESERVATION"
          }
        ],
        "cheapest_total_price": {
          "amount": 52.5,
          "currency": "GBP"
        },
        "sellable": true,
        "bike_restriction": "ALLOWEDWITHRESERVATION",
        "co2_grams": 9828,
        "live_confidence": "Possible",
        "offers": [
          {
            "id": "aba5c1f7-aa98-4139-9a6c-8694ef2668df",
            "section_id": "59ddbbae-9bfe-40b0-b43d-b44963f1df2b",
            "total_price": "…",
            "full_price": "…",
            "fare_name": "Off-Peak Single",
            "fare_code": "urn:trainline:atoc:fare:SVS",
            "description": "Any off-peak train.",
            "travel_classes": [
              "Standard"
            ],
            "fare_change_conditions": [
              "Flexible ticket only valid at specific off-peak times of the day.",
              "Your  journey must be on off-peak trains on the date specified. Off-peak times vary by route - our journey planner only shows off-peak tickets on trains for which they are valid.",
              "Can be booked in advance or purchased on the day of travel."
            ],
            "fares": [
              "…"
            ],
            "included_extras": [
              "…",
              "…",
              "…"
            ],
            "available_extras": [
              "…",
              "…",
              "…"
            ],
            "vendor": "UK National Rail",
            "requires_travel_together": false
          },
          {
            "id": "fdc9b2a7-2c74-4d36-829f-cd0eea3de200",
            "section_id": "59ddbbae-9bfe-40b0-b43d-b44963f1df2b",
            "total_price": "…",
            "full_price": "…",
            "fare_name": "Anytime Single",
            "fare_code": "urn:trainline:atoc:fare:SOS",
            "description": "Travel any time of day.",
            "travel_classes": [
              "Standard"
            ],
            "fare_change_conditions": [
              "Flexible ticket with no time restrictions on when you can travel.",
              "Your journey must be on the date, or the day after the date, specified on the ticket.",
              "Can be booked in advance or purchased on the day of travel."
            ],
            "fares": [
              "…"
            ],
            "included_extras": [
              "…",
              "…",
              "…"
            ],
            "available_extras": [
              "…",
              "…",
              "…"
            ],
            "vendor": "UK National Rail",
            "requires_travel_together": false
          },
          {
            "id": "9b32c947-8662-4767-8293-3b06f6b4033f",
            "section_id": "59ddbbae-9bfe-40b0-b43d-b44963f1df2b",
            "total_price": "…",
            "full_price": "…",
            "fare_name": "Off-Peak Single (1st Class)",
            "fare_code": "urn:trainline:atoc:fare:FSS",
            "description": "Any off-peak train.",
            "travel_classes": [
              "First"
            ],
            "fare_change_conditions": [
              "Flexible ticket only valid at specific off-peak times of the day.",
              "Your  journey must be on off-peak trains on the date specified. Off-peak times vary by route - our journey planner only shows off-peak tickets on trains for which they are valid.",
              "Can be booked in advance or purchased on the day of travel."
            ],
            "fares": [
              "…"
            ],
            "included_extras": [
              "…",
              "…",
              "…"
            ],
            "available_extras": [
              "…",
              "…",
              "…"
            ],
            "vendor": "UK National Rail",
            "requires_travel_together": false
          }
        ]
      },
      {
        "id": "2f4535ab-5285-415c-87fa-7fbfa7adb24a",
        "departure_time": "2026-12-12T09:33:00+00:00",
        "arrival_time": "2026-12-12T11:44:00+00:00",
        "duration_minutes": 131,
        "distance_km": 290,
        "changes": 0,
        "carriers": [
          {
            "code": "urn:trainline:atoc:carrier:VT",
            "name": "Avanti West Coast"
          }
        ],
        "legs": [
          {
            "origin": "…",
            "destination": "…",
            "departure_time": "2026-12-12T09:33:00+00:00",
            "arrival_time": "2026-12-12T11:44:00+00:00",
            "departure_platform": "3",
            "arrival_platform": "6",
            "carrier": "…",
            "transport_mode": "train",
            "duration_minutes": 131,
            "distance_km": 290,
            "timetable_id": "W33582",
            "train_number": "VT710700",
            "reservable": true,
            "reservation_mandatory": true,
            "cancelled": false,
            "replacement_service": false,
            "bike_restriction": "ALLOWEDWITHRESERVATION"
          }
        ],
        "cheapest_total_price": {
          "amount": 55,
          "currency": "GBP"
        },
        "sellable": true,
        "bike_restriction": "ALLOWEDWITHRESERVATION",
        "co2_grams": 10179,
        "live_confidence": "Possible",
        "offers": [
          {
            "id": "16d608d7-39ed-4163-941e-0c5b558f0871",
            "section_id": "3bc2df97-c68e-4f69-b82b-89f125b8d076",
            "total_price": "…",
            "full_price": "…",
            "fare_name": "Off-Peak Single",
            "fare_code": "urn:trainline:atoc:fare:SVS",
            "description": "Any off-peak train.",
            "travel_classes": [
              "Standard"
            ],
            "fare_change_conditions": [
              "Flexible ticket only valid at specific off-peak times of the day.",
              "Your  journey must be on off-peak trains on the date specified. Off-peak times vary by route - our journey planner only shows off-peak tickets on trains for which they are valid.",
              "Can be booked in advance or purchased on the day of travel."
            ],
            "fares": [
              "…"
            ],
            "included_extras": [
              "…",
              "…",
              "…"
            ],
            "available_extras": [
              "…",
              "…",
              "…"
            ],
            "vendor": "UK National Rail",
            "requires_travel_together": false
          },
          {
            "id": "f07c7253-1484-4433-b7b4-19935a3d233f",
            "section_id": "3bc2df97-c68e-4f69-b82b-89f125b8d076",
            "total_price": "…",
            "full_price": "…",
            "fare_name": "Anytime Single",
            "fare_code": "urn:trainline:atoc:fare:SOS",
            "description": "Travel any time of day.",
            "travel_classes": [
              "Standard"
            ],
            "fare_change_conditions": [
              "Flexible ticket with no time restrictions on when you can travel.",
              "Your journey must be on the date, or the day after the date, specified on the ticket.",
              "Can be booked in advance or purchased on the day of travel."
            ],
            "fares": [
              "…"
            ],
            "included_extras": [
              "…",
              "…",
              "…"
            ],
            "available_extras": [
              "…",
              "…",
              "…"
            ],
            "vendor": "UK National Rail",
            "requires_travel_together": false
          },
          {
            "id": "084cc02b-1325-4058-a7ee-aae5f42b9708",
            "section_id": "3bc2df97-c68e-4f69-b82b-89f125b8d076",
            "total_price": "…",
            "full_price": "…",
            "fare_name": "Off-Peak Single (1st Class)",
            "fare_code": "urn:trainline:atoc:fare:FSS",
            "description": "Any off-peak train.",
            "travel_classes": [
              "First"
            ],
            "fare_change_conditions": [
              "Flexible ticket only valid at specific off-peak times of the day.",
              "Your  journey must be on off-peak trains on the date specified. Off-peak times vary by route - our journey planner only shows off-peak tickets on trains for which they are valid.",
              "Can be booked in advance or purchased on the day of travel."
            ],
            "fares": [
              "…"
            ],
            "included_extras": [
              "…",
              "…",
              "…"
            ],
            "available_extras": [
              "…",
              "…",
              "…"
            ],
            "vendor": "UK National Rail",
            "requires_travel_together": false
          }
        ]
      },
      {
        "id": "a8f8180a-d1a1-430d-9280-4ec4cd9efd01",
        "departure_time": "2026-12-12T09:53:00+00:00",
        "arrival_time": "2026-12-12T12:05:00+00:00",
        "duration_minutes": 132,
        "distance_km": 280,
        "changes": 0,
        "carriers": [
          {
            "code": "urn:trainline:atoc:carrier:VT",
            "name": "Avanti West Coast"
          }
        ],
        "legs": [
          {
            "origin": "…",
            "destination": "…",
            "departure_time": "2026-12-12T09:53:00+00:00",
            "arrival_time": "2026-12-12T12:05:00+00:00",
            "departure_platform": "4",
            "arrival_platform": "5",
            "carrier": "…",
            "transport_mode": "train",
            "duration_minutes": 132,
            "distance_km": 280,
            "timetable_id": "W33680",
            "train_number": "VT712700",
            "reservable": true,
            "reservation_mandatory": true,
            "cancelled": false,
            "replacement_service": false,
            "bike_restriction": "ALLOWEDWITHRESERVATION"
          }
        ],
        "cheapest_total_price": {
          "amount": 79.8,
          "currency": "GBP"
        },
        "sellable": true,
        "bike_restriction": "ALLOWEDWITHRESERVATION",
        "co2_grams": 9828,
        "live_confidence": "Possible",
        "offers": [
          {
            "id": "97c99fe4-cee3-43ac-8b7e-96eb0e64d28a",
            "section_id": "5a3e1002-2be0-4873-b359-bdf2530a2b59",
            "total_price": "…",
            "full_price": "…",
            "fare_name": "Off-Peak Single",
            "fare_code": "urn:trainline:atoc:fare:SVS",
            "description": "Any off-peak train.",
            "travel_classes": [
              "Standard"
            ],
            "fare_change_conditions": [
              "Flexible ticket only valid at specific off-peak times of the day.",
              "Your  journey must be on off-peak trains on the date specified. Off-peak times vary by route - our journey planner only shows off-peak tickets on trains for which they are valid.",
              "Can be booked in advance or purchased on the day of travel."
            ],
            "fares": [
              "…"
            ],
            "included_extras": [
              "…",
              "…",
              "…"
            ],
            "available_extras": [
              "…",
              "…",
              "…"
            ],
            "vendor": "UK National Rail",
            "requires_travel_together": false
          },
          {
            "id": "f00bc3cd-d12c-4f3e-abd9-dcfb3b8ab7ed",
            "section_id": "5a3e1002-2be0-4873-b359-bdf2530a2b59",
            "total_price": "…",
            "full_price": "…",
            "fare_name": "Anytime Single",
            "fare_code": "urn:trainline:atoc:fare:SOS",
            "description": "Travel any time of day.",
            "travel_classes": [
              "Standard"
            ],
            "fare_change_conditions": [
              "Flexible ticket with no time restrictions on when you can travel.",
              "Your journey must be on the date, or the day after the date, specified on the ticket.",
              "Can be booked in advance or purchased on the day of travel."
            ],
            "fares": [
              "…"
            ],
            "included_extras": [
              "…",
              "…",
              "…"
            ],
            "available_extras": [
              "…",
              "…",
              "…"
            ],
            "vendor": "UK National Rail",
            "requires_travel_together": false
          },
          {
            "id": "4dda5526-0d1b-41d2-a8f5-c3d8ac2da235",
            "section_id": "5a3e1002-2be0-4873-b359-bdf2530a2b59",
            "total_price": "…",
            "full_price": "…",
            "fare_name": "Off-Peak Single (1st Class)",
            "fare_code": "urn:trainline:atoc:fare:FSS",
            "description": "Any off-peak train.",
            "travel_classes": [
              "First"
            ],
            "fare_change_conditions": [
              "Flexible ticket only valid at specific off-peak times of the day.",
              "Your  journey must be on off-peak trains on the date specified. Off-peak times vary by route - our journey planner only shows off-peak tickets on trains for which they are valid.",
              "Can be booked in advance or purchased on the day of travel."
            ],
            "fares": [
              "…"
            ],
            "included_extras": [
              "…",
              "…",
              "…"
            ],
            "available_extras": [
              "…",
              "…",
              "…"
            ],
            "vendor": "UK National Rail",
            "requires_travel_together": false
          }
        ]
      }
    ]
  },
  "meta": {
    "endpoint_family": "journeys"
  }
}
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 10 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.

FieldType
originstring
destinationstring
journey_typestring
currencystring
transport_modestring
search_idstring
expires_atstring
requires_inward_callboolean
journey_countinteger
journeysobject[]