GET getNextDeparturesByCRS/{CRS}

departureboard.io

Summary: getNextDeparturesByCRS is used to get the next service running between two stations. Multiple destinations can be specified. This will typically return a single train service, but will also return a replacement bus or ferry service if in place. This will return the next departures for each of the filterList stations specified. It may not return the fastest next service. To get the fastest next service use the getFastestDeparturesByCRS endpoint.
Operation ID: getNextDeparturesByCRS
Auth: unknown

Parameters (6)

CRS (string, path, required)

The CRS (Computer Reservation System) for the station you wish to get departure information for, e.g. KGX for London Kings Cross.

Constraints: {'minLength': 3, 'maxLength': 3}

apiKey (string, query, required)

The National Rail OpenLDBWS API Key to use for looking up service information. You must register with National Rail to obtain this key and whitelist it with us. See https://api.departureboard.io/docs/registration for more information.

filterList (string, query, required)

The CRS (Computer Reservation System) codes to show departing services to. Up to 20 destination stations can be specified. These should be split by a comma, for example HAY,EAL,PAD.

serviceDetails (boolean, query, optional, default: True)

Should the response contain information on the calling points for each service? If set to false, calling points will not be returned.

timeOffset (integer, query, optional, default: 0)

The time window in minutes to offset the arrival and departure information by. For example, a value of 20 will not show services arriving to or departing from the station within the next 20 minutes.

Constraints: {'minimum': -239, 'maximum': 119}

timeWindow (integer, query, optional, default: 120)

The time window in minutes to offset the arrival and departure information by. For example, a value of 20 will not show services arriving to or departing from the selected station within the next 20 minutes.

Constraints: {'minimum': 0}

No probe data for this endpoint yet.