Deutschebahn

Fahrplan-Free

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…

Logistics & shipping#openapi#transport#open-data

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

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.

Endpoints 4

  • GETGet arrival board of a location/arrivalBoard/:id?date=stringGet arrival board at a given location at a given daten and time.
  • GETGet departure board of a location/departureBoard/:id?date=stringGet departure board at a given location at a given daten and time.
  • GETGet details about a single journey/journeyDetails/:idRetrieve details of a journey. The id of journey should come from an arrival board or a departure board.
  • GETGet location information/location/:nameGet information about locations matching the given name or name fragment

API details

Base URL
https://api.deutschebahn.com/freeplan/v1
Authentication
None declared in the description
Operations
4 operations on 4 pathsGET 4
Response formats
application/json
Description format
Swagger 2.0, API version v1
Listed from
APIs.guru OpenAPI Directory (CC0-1.0)
Source updated

How to test the Fahrplan-Free in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Fahrplan-Free collection, without the publisher's secrets.
  3. Add your credentialsOpen the collection's variables or an environment and enter your API key or token, if the API needs one.
  4. Send a requestPick an endpoint, for example “Get arrival board of a location” (GET /arrivalBoard/:id?date=string), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Fahrplan-Free?

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… It is listed under Logistics & shipping and has 4 endpoints.

Who publishes the Fahrplan-Free?

It is listed from Deutschebahn's public API description (an OpenAPI document), not published by Deutschebahn on Swastik Codes. Anyone who controls deutschebahn.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Fahrplan-Free?

Requests go to https://api.deutschebahn.com/freeplan/v1. Endpoint paths are added to this base URL.

How do I authenticate with the Fahrplan-Free?

Its OpenAPI description does not declare an authentication scheme. Some endpoints may be open; check the provider's documentation before relying on that.

How many endpoints does the Fahrplan-Free have?

4 operations on 4 paths (4 GET).

Is forking the Fahrplan-Free free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.