Trenitalia Fares and seats left columns, generated from the actor dataset schema.
Describes build 0.1.5 of rl1987/trenitalia-timetable-scraper, deployed 2026-11-22. The column set last changed 2026-11-22. Earlier builds can return a different one.
Dataset view: fares — ?view=fares on the items API, or the matching tab in the Console.
19 columns, in the order the view shows them.
| # | Column | Label | Type | Description | Example |
|---|---|---|---|---|---|
| 1 | recordType | recordType | string | Which kind of row this is: solution, fare, trainStatus, stop, board or station. Each kind has its own dataset view; a column another kind does not fill is absent from these rows rather than null. | |
| 2 | solutionId | solutionId | string, nullable | Upstream solution id (a string, not a number - it is a UUID-shaped token). Unique per journey option within one search; the ledger’s de-duplication key. | |
| 3 | origin | origin | string, nullable | Departure station name as the API spells it (e.g. ‘Milano Centrale’). On a board row this is the train’s true origin, which may be earlier than the board station. | |
| 4 | destination | destination | string, nullable | Arrival station name as the API spells it. On a board row this is the train’s final destination, which may be beyond the board station. | |
| 5 | departureTime | departureTime | string, nullable | ISO-8601 departure of the journey, with the +01:00/+02:00 offset the API sends (e.g. ‘2026-11-21T08:00:00.000+01:00’). Not normalised to UTC. | |
| 6 | serviceName | serviceName | string, nullable | Travel class as the API names it: ‘Standard’, ‘Business’, ‘2ª Classe Easy’. This is the class, not the fare family. | |
| 7 | fareName | fareName | string, nullable | Fare family: ‘BASE’, ‘ORDINARIA’, ‘ECONOMY’. This is what refund/change rules attach to, not serviceName. | |
| 8 | price | price | number, nullable | Price amount in the currency given by currency (’€’ for Italian domestic journeys), as the API sends it. A fare row inherits the solution’s amount because offerDetails carries no price of its own. | |
| 9 | currency | currency | string, nullable | Currency symbol exactly as the API sends it (’€’), not an ISO code. Paired with price on solution and fare rows. | |
| 10 | availableSeats | availableSeats | integer, nullable | Seats left in this class/fare at scrape time (offerDetails.availableAmount). This is the seats-left signal this Actor exposes; 0 is a legitimate sold-out value. | |
| 11 | canRefund | canRefund | boolean, nullable | Whether this fare is refundable according to the API’s own flag. | |
| 12 | canChange | canChange | boolean, nullable | Whether this fare can be changed according to the API’s own flag. Read together with canModify: the app shows both. | |
| 13 | canModify | canModify | boolean, nullable | The API’s second change flag (canModify), which is not always equal to canChange - regional ‘ORDINARIA’ fares return canChange=false, canModify=false while other families differ. | |
| 14 | offerStatus | offerStatus | string, nullable | Sale status of the fare at scrape time, e.g. NOT_SALEABLE. A NOT_SALEABLE fare can still be listed with seats left, so read it before treating a row as purchasable. | |
| 15 | selectable | selectable | boolean, nullable | The API’s selecteable flag (its spelling), i.e. whether the app would let the user pick this fare. Often false while the solution is still SALEABLE. | |
| 16 | selected | selected | boolean, nullable | The API’s selected flag: whether this fare is the one the app pre-selects for the solution. | |
| 17 | offerId | offerId | integer, nullable | Fare offer id within the solution. Unique per solution, so solutionId+offerId+serviceId is the fare’s identity and the de-duplication key. | |
| 18 | serviceId | serviceId | integer, nullable | Service (travel class) id, e.g. 30005 = Standard on Frecciarossa, 170 = 2ª Classe Easy on Intercity. | |
| 19 | description | description | string, nullable | The API’s own prose about the fare’s refund/change rules, Italian, as sent. Long and repeated across rows of the same family. |