Skip to navigation

List the dates with trains

View as Markdown

List the dates inside a window that have at least one train on a route. Built for a date picker: grey out the days missing from dates. A date in the list means a train runs that day; it does not promise seats or a price, so search for the day the traveler picks.

Headers

x-api-keystringRequired

Query parameters

start_datestringRequired

Start of the window, as YYYY-MM-DDTHH:MM:SS.

end_datestringRequired

End of the window, as YYYY-MM-DDTHH:MM:SS.

departure_airportenumRequired
Origin station code.
Allowed values:
arrival_airportenumRequired
Destination station code.
Allowed values:
directbooleanOptional
Set to true to count direct trains only.

Response

The dates with a train.
departureAirportstringOptional
arrivalAirportstringOptional
startDatestringOptional
endDatestringOptional
dateslist of stringsOptional
The dates in the window that have at least one train.