# departureboard.io API API

> departureboard.io API API on Apizie: 6 endpoints (getArrivalsAndDeparturesByCRS is used to get a list of services arriving to and departing from a UK train…, getArrivalsByCRS is used to get a list of services arriving to a UK train station by the CRS (Computer…, getDeparturesByCRS is used to get a list of services departing from a UK train station by the CRS (Computer…, getFastestDeparturesByCRS is used to get the fastest next service running between two stations. Multiple…, …) returned as clean JSON through one API key. 6 endpoints are live now. Call it over REST at https://zieapi.vercel.app/v1/transport:departureboard/{endpoint} or from Claude, ChatGPT and Cursor through the Apizie MCP server. Free plan: 1,000 requests a month.

- Project key: `transport:departureboard`
- Category: Transport
- Status: live
- Source: https://departureboard.io
- Page: https://zieapi.vercel.app/api/transport/departureboard
- OpenAPI: https://zieapi.vercel.app/api/transport/departureboard/openapi.json

The departureboard.io is a high performance API written in Golang. Its goal is to provide to main functions: (1): A JSON API interface to the legacy National Rail SOAP API: Giving developers the ability to pull live…

## Endpoints

### getArrivalsAndDeparturesByCRS is used to get a list of services arriving to and departing from a UK train…
`GET https://zieapi.vercel.app/v1/transport:departureboard/get-arrivals-and-departures-by-crs`

| Parameter | Type | Required | Description |
|---|---|---|---|
| CRS | string | yes | The CRS (Computer Reservation System) for the Station you wish to get departure and arrival information for, e.g. KGX for London Kings… |
| apiKey | string | yes | The National Rail OpenLDBWS API Key to use for looking up service information. You must register with National Rail to obtain this key and… |
| numServices | integer | no | The number of arriving and departing services to return. This is a maximum value, less may be returned if there is not a sufficient amount… |
| timeOffset | integer | no | The time window in minutes to offset the arrival and departure information by. For example, a value of 20 will not show services arriving… |
| timeWindow | integer | no | The time window in minutes to offset the arrival and departure information by. For example, a value of 20 will not show services arriving… |
| serviceDetails | boolean | no | Should the response contain information on the calling points for each service? If set to false, calling points will not be returned. |
| filterStation | string | no | The CRS (Computer Reservation System) code to filter the results by. When setting this you must also set the filterType parameter. For… |
| filterType | string | no | Determines if the filterStation parameter should be applied for services arriving to, or leaving from the selected station. Required if… |

### getArrivalsByCRS is used to get a list of services arriving to a UK train station by the CRS (Computer…
`GET https://zieapi.vercel.app/v1/transport:departureboard/get-arrivals-by-crs`

| Parameter | Type | Required | Description |
|---|---|---|---|
| CRS | string | yes | The CRS (Computer Reservation System) for the Station you wish to get arrival information for, e.g. KGX for London Kings Cross. |
| apiKey | string | yes | The National Rail OpenLDBWS API Key to use for looking up service information. You must register with National Rail to obtain this key and… |
| numServices | integer | no | The number of arriving train services to return. This is a maximum value, less may be returned if there is not a sufficient amount of… |
| timeOffset | integer | no | The time window in minutes to offset the arrival information by. For example, a value of 20 will not show services arriving within the… |
| timeWindow | integer | no | The time window to show train services for in minutes. For example, a value of 60 will show services arriving to the station in the next… |
| serviceDetails | boolean | no | Should the response contain information on the calling points for each service? If set to false, calling points will not be returned. |
| filterStation | string | no | The CRS (Computer Reservation System) code to filter the results by. For example, performing a lookup for PAD (London Paddington) and… |

### getDeparturesByCRS is used to get a list of services departing from a UK train station by the CRS (Computer…
`GET https://zieapi.vercel.app/v1/transport:departureboard/get-departures-by-crs`

| Parameter | Type | Required | Description |
|---|---|---|---|
| CRS | string | yes | The CRS (Computer Reservation System) for the station you wish to get departure information for, e.g. KGX for London Kings Cross. |
| apiKey | string | yes | The National Rail OpenLDBWS API Key to use for looking up service information. You must register with National Rail to obtain this key and… |
| numServices | integer | no | The number of departing services to return. This is a maximum value, less may be returned if there is not a sufficient amount of services… |
| timeOffset | integer | no | The time window in minutes to offset the departure information by. For example, a value of 20 will not show services departing within the… |
| timeWindow | integer | no | The time window to show services for in minutes. For example, a value of 60 will show services departing the station in the next 60 minutes. |
| serviceDetails | boolean | no | Should the response contain information on the calling points for each service? If set to false, calling points will not be returned. |
| filterStation | string | no | The CRS (Computer Reservation System) code to filter the results by. For example, performing a lookup for PAD (London Paddington) and… |

### getFastestDeparturesByCRS is used to get the fastest next service running between two stations. Multiple…
`GET https://zieapi.vercel.app/v1/transport:departureboard/get-fastest-departures-by-crs`

| Parameter | Type | Required | Description |
|---|---|---|---|
| CRS | string | yes | The CRS (Computer Reservation System) for the station you wish to get departure information for, e.g. KGX for London Kings Cross. |
| apiKey | string | yes | The National Rail OpenLDBWS API Key to use for looking up service information. You must register with National Rail to obtain this key and… |
| filterList | string | yes | The CRS (Computer Reservation System) codes to show the fastest departing services to. Up to 20 destination stations can be specified.… |
| timeOffset | integer | no | The time window in minutes to offset the departure information by. For example, a value of 20 will show the fastest services departing… |
| timeWindow | integer | no | The time window to show train services for in minutes. For example, a value of 60 will show the fastest services departing the station in… |
| serviceDetails | boolean | no | Should the response contain information on the calling points for each service? If set to false, calling points will not be returned. |

### getNextDeparturesByCRS is used to get the next service running between two stations. Multiple destinations…
`GET https://zieapi.vercel.app/v1/transport:departureboard/get-next-departures-by-crs`

| Parameter | Type | Required | Description |
|---|---|---|---|
| CRS | string | yes | The CRS (Computer Reservation System) for the station you wish to get departure information for, e.g. KGX for London Kings Cross. |
| apiKey | string | yes | The National Rail OpenLDBWS API Key to use for looking up service information. You must register with National Rail to obtain this key and… |
| filterList | string | yes | The CRS (Computer Reservation System) codes to show departing services to. Up to 20 destination stations can be specified. These should be… |
| timeOffset | integer | no | The time window in minutes to offset the arrival and departure information by. For example, a value of 20 will not show services arriving… |
| timeWindow | integer | no | The time window in minutes to offset the arrival and departure information by. For example, a value of 20 will not show services arriving… |
| serviceDetails | boolean | no | Should the response contain information on the calling points for each service? If set to false, calling points will not be returned. |

### getServiceDetailsByID is used to get information on a service, by the Service ID. This will typically return…
`GET https://zieapi.vercel.app/v1/transport:departureboard/get-service-details-by-id`

| Parameter | Type | Required | Description |
|---|---|---|---|
| serviceID | string | yes | The Service ID for the Train Service you wish to look up in the URL Safe format. For example "qsec4O8LW7k8ITcOt_ir4Q--". |
| apiKey | string | yes | The National Rail OpenLDBWS API Key to use for looking up service information. You must register with National Rail to obtain this key and… |

## Example
```
curl "https://zieapi.vercel.app/v1/transport:departureboard/get-arrivals-and-departures-by-crs" \
  -H "x-api-key: $APIZIE_KEY"
```

## FAQ

### How do I call the departureboard.io API API?
Create a free Apizie key, then send GET https://zieapi.vercel.app/v1/transport:departureboard/get-arrivals-and-departures-by-crs with the header x-api-key. Every endpoint returns { project, data, timestamp }.

### Is the departureboard.io API API free on Apizie?
Yes. The Free plan includes 1,000 requests a month at 100 requests a minute, no credit card.

### Can AI agents use the departureboard.io API API?
Yes. Add the Apizie MCP server (https://zieapi.vercel.app/mcp) to Claude, ChatGPT, Cursor or VS Code, then ask in plain language. The agent calls run_scraper with project key transport:departureboard.

### What is the status of the departureboard.io API API?
Live: works with just an Apizie key
