Deutsche Bahn
communityGermany national railway operator offering train tickets, schedules, and travel information for domestic and international rail journeys across Europe.
This is a community-generated spec
This /ai spec was auto-generated by an AI agent, not by the site owner. It may be incomplete or inaccurate.
GET
/api/v1/fahrplan/departureSearch train connections between stations
Parameters
dateYYYY-MM-DD (stringrequiredtimeHH:MM (stringoptionalclass1|2 (integeroptionaloriginstation name or ID (stringrequiredpassengersintegeroptionaldestinationstation name or ID (stringrequiredReturns
connections[] with departure, arrival, duration, changes, train_types[], price, platformGET
/api/v1/fahrplan/arrivalsGet departure or arrival board for a station
Parameters
dateYYYY-MM-DD (stringoptionaltimeHH:MM (stringoptionalstationstation name (stringrequiredReturns
services[] with train_number, destination, departure_time, platform, delay_minutes, statusGET
/api/v1/location.nameFind train stations by name
Parameters
inputstation name (stringrequiredReturns
locations[] with id, name, type, lat, lon