Apify Actors by rl1987

Fares and seats left

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.

#ColumnLabelTypeDescriptionExample
1recordTyperecordTypestringWhich 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.
2solutionIdsolutionIdstring, nullableUpstream 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.
3originoriginstring, nullableDeparture 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.
4destinationdestinationstring, nullableArrival 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.
5departureTimedepartureTimestring, nullableISO-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.
6serviceNameserviceNamestring, nullableTravel class as the API names it: ‘Standard’, ‘Business’, ‘2ª Classe Easy’. This is the class, not the fare family.
7fareNamefareNamestring, nullableFare family: ‘BASE’, ‘ORDINARIA’, ‘ECONOMY’. This is what refund/change rules attach to, not serviceName.
8pricepricenumber, nullablePrice 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.
9currencycurrencystring, nullableCurrency symbol exactly as the API sends it (’€’), not an ISO code. Paired with price on solution and fare rows.
10availableSeatsavailableSeatsinteger, nullableSeats 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.
11canRefundcanRefundboolean, nullableWhether this fare is refundable according to the API’s own flag.
12canChangecanChangeboolean, nullableWhether this fare can be changed according to the API’s own flag. Read together with canModify: the app shows both.
13canModifycanModifyboolean, nullableThe 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.
14offerStatusofferStatusstring, nullableSale 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.
15selectableselectableboolean, nullableThe 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.
16selectedselectedboolean, nullableThe API’s selected flag: whether this fare is the one the app pre-selects for the solution.
17offerIdofferIdinteger, nullableFare offer id within the solution. Unique per solution, so solutionId+offerId+serviceId is the fare’s identity and the de-duplication key.
18serviceIdserviceIdinteger, nullableService (travel class) id, e.g. 30005 = Standard on Frecciarossa, 170 = 2ª Classe Easy on Intercity.
19descriptiondescriptionstring, nullableThe API’s own prose about the fare’s refund/change rules, Italian, as sent. Long and repeated across rows of the same family.