Trainline Railcards 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: railcards — ?view=railcards on the items API, or the matching tab in the Console.
12 columns, in the order the view shows them.
| # | Column | Label | Type | Description | Example |
|---|---|---|---|---|---|
| 1 | recordType | string | Which kind of row this is. journey and fare-day come from the journeys and fareCalendar modes, station from stations, railcard from railcards, calling-point and service-status from the includeCallingPoints toggle. | ||
| 2 | scrapedAt | string | ISO 8601 UTC timestamp of when this row was delivered. | ||
| 3 | provenance | string | What produced this row: the Apify actor id, the build number and the record kind, joined as ‘ | ||
| 4 | code | string, nullable | Station rows: Trainline’s location id for the place. Railcard rows: the railcard’s catalogue code. | ||
| 5 | name | string, nullable | Station rows: the place’s full name. Railcard rows: the card’s name. | ||
| 6 | price | number, nullable | Railcard rows only. The card’s price in currency. | ||
| 7 | currency | string, nullable | The ISO code the price on this row is in (journey, fare-day: the fare; railcard: the card’s price). | ||
| 8 | validityPeriod | string, nullable | Railcard rows only. The card’s validity as the catalogue states it, e.g. P1Y for one year and P3Y for three. | ||
| 9 | vendor | string, nullable | Railcard rows only. Who sells the card. | ||
| 10 | description | — | undocumented | ||
| 11 | termsSummary | string, nullable | Railcard rows only, and only with includeRailcardTerms on. The card’s terms and conditions summary. Blank (not missing) when the terms request failed. | ||
| 12 | termsUrl | string, nullable | Railcard rows only, and only with includeRailcardTerms on. Link to the card’s full terms on Trainline’s site. |