Skip to content

FaSta - Station Facilities Status API

by deutschebahn.com

API keyHTTPSTransportation
Open documentation ↗

Overview

A RESTful webservice to retrieve data about the operational state of public elevators and escalators in german railway stations.

FaSta - Station Facilities Status is a transportation API from deutschebahn.com. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 3 endpoints.

At a glance

Authentication
API key
HTTPS
Yes
CORS
Unknown
Base URL
https://api.deutschebahn.com/fasta/v2
Version
2.1
Endpoints
3
Spec updated
2021-06-21

Make a first request

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

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

response = requests.request(
    "GET",
    "https://api.deutschebahn.com/fasta/v2/facilities",
    headers={
    "Accept": "application/json",
    "X-API-Key": "YOUR_API_KEY",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/facilitiesAccess to public facilities (escalators and elevators) in railway stations
GET/facilities/{equipmentnumber}Returns the facility identified by its equipmentnumber.
GET/stations/{stationnumber}Returns information about a station (and its corresponding facilities) identified by a stationnumber.

Questions

Does the FaSta - Station Facilities Status API need an API key?

Yes. The FaSta - Station Facilities Status API uses API key authentication; the documentation explains how to get credentials.

Does the FaSta - Station Facilities Status API support HTTPS?

Yes, the FaSta - Station Facilities Status API is served over HTTPS.

How many endpoints does the FaSta - Station Facilities Status API have?

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

What are alternatives to the FaSta - Station Facilities Status API?

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

Compare alternatives →

Listed from APIs.guru (CC0).