Retrieving Schedule and Capacity
To retrieve schedule data, you need a valid token. The request is sent through GET parameters and returns trips for a specific date, including available rates, prices, equipment, extras, and add-ons. The response is returned in JSON format.
GET Parameters
| Parameter | Description |
|---|---|
aktion | Action, required value: fahrplan. |
appversion | API version, required value: 3. |
recht_id | Permission of the requesting user, required value: 1. |
user_id | ID of the requesting user or agent, optional and provided by the operator. |
station_id | Station ID for the request. Multiple stations can be separated with ;, maximum 10 stations. |
zielstation_id | Destination station ID, optional integer, one station per parameter. |
linie_id | Optional restriction to a specific line. |
datum | Date for the request as Unix timestamp. |
token | XML token provided by the operator. |
schiff_id | Optional restriction to a specific resource. |