Skip to content

Betriebsstellen API

by deutschebahn.com

No authHTTPSTransportation
Open documentation ↗

Overview

This REST-API enables you to query station and stop infos

Betriebsstellen is a transportation API from deutschebahn.com. It needs no API key. It is served over HTTPS. Its OpenAPI description documents 2 endpoints.

At a glance

Authentication
No auth
HTTPS
Yes
CORS
Unknown
Base URL
https://api.deutschebahn.com/betriebsstellen/v1
Version
v1
Endpoints
2
Spec updated
2020-11-23

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://api.deutschebahn.com/betriebsstellen/v1/betriebsstellen" \
  -H "Accept: application/json"
JavaScript
const response = await fetch("https://api.deutschebahn.com/betriebsstellen/v1/betriebsstellen", {
  method: "GET",
  headers: {
    "Accept": "application/json",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://api.deutschebahn.com/betriebsstellen/v1/betriebsstellen",
    headers={
    "Accept": "application/json",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/betriebsstellenGet information of stations matching a given text
GET/betriebsstellen/{abbrev}Get information about a specific station or stop by abbrevation

Questions

Does the Betriebsstellen API need an API key?

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

Does the Betriebsstellen API support HTTPS?

Yes, the Betriebsstellen API is served over HTTPS.

How many endpoints does the Betriebsstellen API have?

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

What are alternatives to the Betriebsstellen API?

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

Compare alternatives →

Listed from APIs.guru (CC0).