Skip to content

Fahrplan-Free API

by deutschebahn.com

No authHTTPSTransportation
Open documentation ↗

Overview

A RESTful webservice to request a railway journey - FREE plan with restricted access (max. 10 requests per minute). Please ignore the message in the API Console about the access token. Register to use an less restricted version, which requires an access token.

Fahrplan-Free 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
Base URL
https://api.deutschebahn.com/freeplan/v1
Version
v1
Endpoints
4
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/freeplan/v1/arrivalBoard/ID" \
  -H "Accept: application/json"
JavaScript
const response = await fetch("https://api.deutschebahn.com/freeplan/v1/arrivalBoard/ID", {
  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/freeplan/v1/arrivalBoard/ID",
    headers={
    "Accept": "application/json",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/arrivalBoard/{id}Get arrival board of a location
GET/departureBoard/{id}Get departure board of a location
GET/journeyDetails/{id}Get details about a single journey
GET/location/{name}Get location information

Questions

Does the Fahrplan-Free API need an API key?

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

Does the Fahrplan-Free API support HTTPS?

Yes, the Fahrplan-Free API is served over HTTPS.

How many endpoints does the Fahrplan-Free API have?

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

What are alternatives to the Fahrplan-Free API?

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

Compare alternatives →

Listed from APIs.guru (CC0).