# departureboard.io API API

> The departureboard.io is a high performance API written in Golang. Its goal is to provide to main functions:<br><br> (1): A JSON API interface to the legacy National Rail SOAP API: Giving developers the ability to pull live information on departures, arrivals, and services from National Rail, without having to use the legacy SOAP API provided by National Rail. Information is still pulled directly from National Rail in the background, providing the same level of real-time data without the additional complexity of having to interact with SOAP. <br><br>(2): A JSON API interface for additional National Rail information: Giving developers the ability to pull a range of information about the Rail Network, via a JSON API interface. This is not an offering that National Rail currently provide, and is custom developed. Data is sourced from periodically updated XML documents, parsed, and provided for consumption via the departureboard.io API.<br><br>This API is completely free to use for non-commercial purposes. You can explore the various sections of the documentation using the links below.<br><br> For more information please see <a href="https://api.departureboard.io">https://api.departureboard.io</a>.

departureboard.io API is a transportation API from departureboard.io. It needs no API key. It is served over HTTPS. Its OpenAPI description documents 6 endpoints.

## At a glance

- Category: [Transportation](https://www.openparable.com/apis/category/transportation)
- Provider: departureboard.io
- Authentication: None (no API key)
- HTTPS: Yes
- CORS: Not stated
- Base URL: https://api.departureboard.io/api/v2.0
- Documentation: https://departureboard.io/
- OpenAPI description: https://api.apis.guru/v2/specs/departureboard.io/2.0/openapi.json
- Version: 2.0
- Specification updated: 2020-11-16

## Example request

```bash
curl -X GET "https://api.departureboard.io/api/v2.0/getArrivalsAndDeparturesByCRS/CRS" \
  -H "Accept: application/json"
```

## Endpoints

- `GET /getArrivalsAndDeparturesByCRS/{CRS}` — getArrivalsAndDeparturesByCRS is used to get a list of services arriving to and departing from a UK train station by the CRS (Computer Reservation System) code.
- `GET /getArrivalsByCRS/{CRS}` — getArrivalsByCRS is used to get a list of services arriving to a UK train station by the CRS (Computer Reservation System) code. This will typically return a li
- `GET /getDeparturesByCRS/{CRS}` — getDeparturesByCRS is used to get a list of services departing from a UK train station by the CRS (Computer Reservation System) code. This will typically return
- `GET /getFastestDeparturesByCRS/{CRS}` — getFastestDeparturesByCRS is used to get the fastest next service running between two stations. Multiple destinations can be specified. This will typically retu
- `GET /getNextDeparturesByCRS/{CRS}` — getNextDeparturesByCRS is used to get the next service running between two stations. Multiple destinations can be specified. This will typically return a single
- `GET /getServiceDetailsByID/{serviceID}` — getServiceDetailsByID is used to get information on a service, by the Service ID. This will typically return a train service, but will also return a bus and fer

## Questions

### Does the departureboard.io API API need an API key?

No. The departureboard.io API API can be called without an API key or sign-up, which makes it handy for prototypes and front-end demos.

### Does the departureboard.io API API support HTTPS?

Yes, the departureboard.io API API is served over HTTPS.

### How many endpoints does the departureboard.io API API have?

Its OpenAPI description lists 6 endpoints in version 2.0. All of them are shown on this page.

### What are alternatives to the departureboard.io API API?

Other Transportation APIs include airportsapi, Transport for London, England, Uber, Transport for Spain, Amadeus for Developers.

## Similar transportation APIs

- [airportsapi](https://www.openparable.com/apis/airportsapi): Get name and website-URL for airports by ICAO code
- [Transport for London, England](https://www.openparable.com/apis/transport-for-london-england): Discover TFL APIs
- [Uber](https://www.openparable.com/apis/uber): Uber ride requests and price estimation
- [Transport for Spain](https://www.openparable.com/apis/transport-for-spain): Public trains of Spain
- [Amadeus for Developers](https://www.openparable.com/apis/amadeus-for-developers): Travel Search - Limited usage
- [Boston MBTA Transit](https://www.openparable.com/apis/boston-mbta-transit): Stations and predicted arrivals for MBTA
- [ADS-B Exchange](https://www.openparable.com/apis/ads-b-exchange): Access real-time and historical data of any and all airborne aircraft
- [Sabre for Developers](https://www.openparable.com/apis/sabre-for-developers): Travel Search - Limited usage
- [GoToTraining](https://www.openparable.com/apis/gototraining): The GoToTraining API enables developers to use the stable and robust GoToTraining functionality as the basis for online trainings in a proprietary learning management system. The GoToTraining APIs provide the ability to access the scheduling, registration, management, and reporting functions of GoToTraining from external applications. With the ability to tightly integrate GoToTraining into your learning infrastructure, you can offer your learners a seamless user experience and provide them with a market leading virtual classroom environment.
- [Transport for The Netherlands](https://www.openparable.com/apis/transport-for-the-netherlands): Discover APIs, learn how to use them, try them out interactively, and sign up to acquire keys.
- [Transport for Hessen, Germany](https://www.openparable.com/apis/transport-for-hessen-germany): RMV API (Public Transport in Hessen)
- [Transport for Auckland, New Zealand](https://www.openparable.com/apis/transport-for-auckland-new-zealand): The Auckland Transport developer portal allows you to explore the diverse range of APIs and transport data from Auckland Transport and NZTA.

Listed from: APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/departureboard-io (OpenParable). Cite the canonical URL above.
