Open documentation ↗Overview
An API providing master data for German railway stations by DB Station&Service AG.
Stationsdatenbereitstellung is a transportation API from deutschebahn.com. It needs no API key. It is served over HTTPS. Its OpenAPI description documents 4 endpoints.
At a glance
- Authentication
- No auth
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Transportation
- Base URL
https://api.deutschebahn.com/stada/v2- Version
- 2.2.01
- Endpoints
- 4
- OpenAPI
- Specification ↗
- Spec updated
- 2021-06-21
Make a first request
Replace the placeholders; the documentation says exactly where credentials go.
curl -X GET "https://api.deutschebahn.com/stada/v2/stations" \
-H "Accept: application/json"const response = await fetch("https://api.deutschebahn.com/stada/v2/stations", {
method: "GET",
headers: {
"Accept": "application/json",
},
});
const data = await response.json();
console.log(data);import requests
response = requests.request(
"GET",
"https://api.deutschebahn.com/stada/v2/stations",
headers={
"Accept": "application/json",
},
timeout=30,
)
print(response.json())Endpoints
| Method | Path | What it does |
|---|---|---|
| GET | /stations | This operation provides the master data for german railway stations. |
| GET | /stations/{id} | This operation provides the master data for a german railway station selected by its station-id. |
| GET | /szentralen | This operation provides the master data for 3-S-Zentralen. |
| GET | /szentralen/{id} | This operation provides the master data for 3-S-Zentralen select by its id. |
Questions
Does the Stationsdatenbereitstellung API need an API key?
No. The Stationsdatenbereitstellung API can be called without an API key or sign-up, which makes it handy for prototypes and front-end demos.
Does the Stationsdatenbereitstellung API support HTTPS?
Yes, the Stationsdatenbereitstellung API is served over HTTPS.
How many endpoints does the Stationsdatenbereitstellung API have?
Its OpenAPI description lists 4 endpoints in version 2.2.01. All of them are shown on this page.
What are alternatives to the Stationsdatenbereitstellung 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).