Open documentation ↗Overview
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
- Authentication
- No auth
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Transportation
- Base URL
https://api.departureboard.io/api/v2.0- Version
- 2.0
- Endpoints
- 6
- OpenAPI
- Specification ↗
- Spec updated
- 2020-11-16
Make a first request
Replace the placeholders; the documentation says exactly where credentials go.
curl -X GET "https://api.departureboard.io/api/v2.0/getArrivalsAndDeparturesByCRS/CRS" \
-H "Accept: application/json"const response = await fetch("https://api.departureboard.io/api/v2.0/getArrivalsAndDeparturesByCRS/CRS", {
method: "GET",
headers: {
"Accept": "application/json",
},
});
const data = await response.json();
console.log(data);import requests
response = requests.request(
"GET",
"https://api.departureboard.io/api/v2.0/getArrivalsAndDeparturesByCRS/CRS",
headers={
"Accept": "application/json",
},
timeout=30,
)
print(response.json())Endpoints
| Method | Path | What it does |
|---|---|---|
| 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
Compare alternatives →airportsapi
TransportationGet name and website-URL for airports by ICAO code
Transport for London, England
TransportationDiscover TFL APIs
Uber
TransportationUber ride requests and price estimation
Transport for Spain
TransportationPublic trains of Spain
Amadeus for Developers
TransportationTravel Search - Limited usage
Boston MBTA Transit
TransportationStations and predicted arrivals for MBTA
Listed from APIs.guru (CC0).