Apify Actors by rl1987

Journeys

Trainline Journeys columns, generated from the actor dataset schema.

Describes build 0.1.8 of rl1987/trainline-api-scraper, deployed 2026-11-22. The column set last changed 2026-11-22. Earlier builds can return a different one.

Dataset view: journeys — ?view=journeys on the items API, or the matching tab in the Console.

21 columns, in the order the view shows them.

#ColumnLabelTypeDescriptionExample
1scrapedAtstringISO 8601 UTC timestamp of when this row was delivered.
2directionstringJourneys and fare-day only. outbound for the origin-to-destination direction, return for the reverse leg when a returnDate was given.
3originNamestring, nullableJourneys and fare-day: the station name the origin resolved to. calling-point and service-status: the first station the service calls at. Null when the origin was passed as a raw location id.
4destinationNamestring, nullableJourneys and fare-day: the station name the destination resolved to. calling-point and service-status: the last station the service calls at.
5travelDatestring, nullableThe travel day. Journeys and fare-day: the day of travel; calling-point and service-status: the day the service runs. Always YYYY-MM-DD.
6departAtstring, nullableJourneys only. Scheduled departure timestamp, ISO 8601 with offset.
7arriveAtstring, nullableJourneys only. Scheduled arrival timestamp, ISO 8601 with offset.
8durationstring, nullableJourneys only. Journey duration exactly as the API reports it, HH:MM:SS.
9durationMinutesinteger, nullableJourneys only. duration in whole minutes. Null when the API’s duration string is missing or not HH:MM[:SS].
10changesinteger, nullableJourneys only. How many times the passenger changes train: legs minus one. 0 is a direct service.
11legCountinteger, nullableJourneys only. How many legs the journey is made of, as the API listed them.
12carriersstring, nullableJourneys only. Comma-separated train operating company codes, in leg order, e.g. VT for Avanti West Coast.
13standardPricenumber, nullableJourneys only. The cheapest standard-class fare for this departure, in currency. Null when the API returned no standard-class price for it.
14firstPricenumber, nullableJourneys only. The cheapest first-class fare for this departure. Null when no first-class fare is sold on it - this is common, and a null is not a missing row.
15currencystring, nullableThe ISO code the price on this row is in (journey, fare-day: the fare; railcard: the card’s price).
16isCheapestboolean, nullableJourneys only. True when the API tagged this departure as the cheapest of the day.
17tagsarray, nullableJourneys only. The API’s own tags for this departure (currently only ‘cheapest’), copied straight from the feed. Null when the API tagged nothing - which is most departures, because the API tags exactly one departure per travel day as the cheapest. A run capped by maxItems keeps the earliest departures, so when the tagged departure falls outside that window every delivered row shows null here; the same cheapest-of-the-day signal is carried on isCheapest, set from these same tags.
18legsarray, nullableJourneys only. The legs the journey is made of, in travel order: each leg’s departure and arrival, its origin and destination with their three-letter CRS codes, the operating carrier, the transport mode and the timetable id of that specific train. One leg means a direct service.
19originCodestring, nullableJourneys and fare-day. Trainline’s location id for the origin, urn:trainline:generic:loc:… - the stable key, unlike the name.
20destinationCodestring, nullableJourneys and fare-day. Trainline’s location id for the destination.
21provenancestringWhat produced this row: the Apify actor id, the build number and the record kind, joined as ‘@ ’, e.g. ’[email protected] journey’ (’local@local ’ off-platform). With scrapedAt (when the row was delivered) it pins every row to the exact build that made it.