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.
| # | Column | Label | Type | Description | Example |
|---|---|---|---|---|---|
| 1 | scrapedAt | string | ISO 8601 UTC timestamp of when this row was delivered. | ||
| 2 | direction | string | Journeys and fare-day only. outbound for the origin-to-destination direction, return for the reverse leg when a returnDate was given. | ||
| 3 | originName | string, nullable | Journeys 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. | ||
| 4 | destinationName | string, nullable | Journeys and fare-day: the station name the destination resolved to. calling-point and service-status: the last station the service calls at. | ||
| 5 | travelDate | string, nullable | The travel day. Journeys and fare-day: the day of travel; calling-point and service-status: the day the service runs. Always YYYY-MM-DD. | ||
| 6 | departAt | string, nullable | Journeys only. Scheduled departure timestamp, ISO 8601 with offset. | ||
| 7 | arriveAt | string, nullable | Journeys only. Scheduled arrival timestamp, ISO 8601 with offset. | ||
| 8 | duration | string, nullable | Journeys only. Journey duration exactly as the API reports it, HH:MM:SS. | ||
| 9 | durationMinutes | integer, nullable | Journeys only. duration in whole minutes. Null when the API’s duration string is missing or not HH:MM[:SS]. | ||
| 10 | changes | integer, nullable | Journeys only. How many times the passenger changes train: legs minus one. 0 is a direct service. | ||
| 11 | legCount | integer, nullable | Journeys only. How many legs the journey is made of, as the API listed them. | ||
| 12 | carriers | string, nullable | Journeys only. Comma-separated train operating company codes, in leg order, e.g. VT for Avanti West Coast. | ||
| 13 | standardPrice | number, nullable | Journeys only. The cheapest standard-class fare for this departure, in currency. Null when the API returned no standard-class price for it. | ||
| 14 | firstPrice | number, nullable | Journeys 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. | ||
| 15 | currency | string, nullable | The ISO code the price on this row is in (journey, fare-day: the fare; railcard: the card’s price). | ||
| 16 | isCheapest | boolean, nullable | Journeys only. True when the API tagged this departure as the cheapest of the day. | ||
| 17 | tags | array, nullable | Journeys 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. | ||
| 18 | legs | array, nullable | Journeys 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. | ||
| 19 | originCode | string, nullable | Journeys and fare-day. Trainline’s location id for the origin, urn:trainline:generic:loc:… - the stable key, unlike the name. | ||
| 20 | destinationCode | string, nullable | Journeys and fare-day. Trainline’s location id for the destination. | ||
| 21 | provenance | string | What produced this row: the Apify actor id, the build number and the record kind, joined as ‘ |