Find an API

Search public APIs with auth details & Postman guides

← All APIs

Stationsdatenbereitstellung

deutschebahn · Data

Data No Auth Free & Open transport open_data

An API providing master data for German railway stations by DB Station&Service AG.

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

GET This operation provides the master data for german railway stations.

Get a QueryResult object containing station objects from the database applying to the parameters described below. QueryResult is a container providing the following information about the query result. 1. the total number of hits 2. the maximum number of hits to be returned in that QueryResult

https://api.apis.guru/v2/specs/deutschebahn.com/stada/2.2.01/stations?eva=1&ril=example&limit=10&offset=0&category=example&federalstate=example&searchstring=example&logicaloperator=example

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/deutschebahn.com/stada/2.2.01/stations?eva=1&ril=example&limit=10&offset=0&category=example&federalstate=example&searchstring=example&logicaloperator=example"
import requests
params = {
    "eva": "1",
    "ril": "example",
    "limit": "10",
    "offset": "0",
    "category": "example",
    "federalstate": "example",
    "searchstring": "example",
    "logicaloperator": "example"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/deutschebahn.com/stada/2.2.01/stations",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/deutschebahn.com/stada/2.2.01/stations');
url.searchParams.set('eva', '1');
url.searchParams.set('ril', 'example');
url.searchParams.set('limit', '10');
url.searchParams.set('offset', '0');
url.searchParams.set('category', 'example');
url.searchParams.set('federalstate', 'example');
url.searchParams.set('searchstring', 'example');
url.searchParams.set('logicaloperator', 'example');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/deutschebahn.com/stada/2.2.01/stations")
	q := baseURL.Query()
	q.Set("eva", "1")
	q.Set("ril", "example")
	q.Set("limit", "10")
	q.Set("offset", "0")
	q.Set("category", "example")
	q.Set("federalstate", "example")
	q.Set("searchstring", "example")
	q.Set("logicaloperator", "example")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/deutschebahn.com/stada/2.2.01/stations")
uri.query = URI.encode_www_form({
  "eva" => "1",
  "ril" => "example",
  "limit" => "10",
  "offset" => "0",
  "category" => "example",
  "federalstate" => "example",
  "searchstring" => "example",
  "logicaloperator" => "example"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/deutschebahn.com/stada/2.2.01/stations?" . http_build_query([
    "eva" => "1",
    "ril" => "example",
    "limit" => "10",
    "offset" => "0",
    "category" => "example",
    "federalstate" => "example",
    "searchstring" => "example",
    "logicaloperator" => "example"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET This operation provides the master data for 3-S-Zentralen.

Get a QueryResult object containing SZentralen objects from the database applying to the parameters described below. QueryResult is a container providing the following information about the query result. 1. the total number of hits 2. the maximum number of hits to be returned in that QueryResul

https://api.apis.guru/v2/specs/deutschebahn.com/stada/2.2.01/szentralen?limit=10&offset=0

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/deutschebahn.com/stada/2.2.01/szentralen?limit=10&offset=0"
import requests
params = {
    "limit": "10",
    "offset": "0"
}
response = requests.get(
    "https://api.apis.guru/v2/specs/deutschebahn.com/stada/2.2.01/szentralen",
    params=params,
)
print(response.json())
const url = new URL('https://api.apis.guru/v2/specs/deutschebahn.com/stada/2.2.01/szentralen');
url.searchParams.set('limit', '10');
url.searchParams.set('offset', '0');

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
	"net/url"
)

func main() {
	baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/deutschebahn.com/stada/2.2.01/szentralen")
	q := baseURL.Query()
	q.Set("limit", "10")
	q.Set("offset", "0")
	baseURL.RawQuery = q.Encode()
	targetURL := baseURL.String()
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/deutschebahn.com/stada/2.2.01/szentralen")
uri.query = URI.encode_www_form({
  "limit" => "10",
  "offset" => "0"
})

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/deutschebahn.com/stada/2.2.01/szentralen?" . http_build_query([
    "limit" => "10",
    "offset" => "0"
]);
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET This operation provides the master data for a german railway station selected by its station-id.

Get a QueryResult object containing one station object specified by its id.

https://api.apis.guru/v2/specs/deutschebahn.com/stada/2.2.01/stations/{id}

Hover any highlighted part to learn what it does

curl -X GET "https://api.apis.guru/v2/specs/deutschebahn.com/stada/2.2.01/stations/{id}"
import requests
response = requests.get(
    "https://api.apis.guru/v2/specs/deutschebahn.com/stada/2.2.01/stations/{id}",
)
print(response.json())
const url = 'https://api.apis.guru/v2/specs/deutschebahn.com/stada/2.2.01/stations/{id}';

const response = await fetch(url); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	targetURL := "https://api.apis.guru/v2/specs/deutschebahn.com/stada/2.2.01/stations/{id}"
	req, _ := http.NewRequest("GET", targetURL, nil)

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://api.apis.guru/v2/specs/deutschebahn.com/stada/2.2.01/stations/{id}")

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://api.apis.guru/v2/specs/deutschebahn.com/stada/2.2.01/stations/{id}";
$opts = ["http" => [
    "method" => "GET",
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));

Postman Setup Guide

Get Postman ↗
  1. See official documentation for authentication and setup.

What can you build with Stationsdatenbereitstellung?

Stationsdatenbereitstellung is a Data API. Developers commonly use data APIs for:

  • enriching your app with third-party datasets
  • building data pipelines and ETL workflows
  • querying and searching large datasets
  • powering research, analysis, and reporting tools
  • syncing reference data into your own systems

No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. Stationsdatenbereitstellung is free to use, making it a low-risk choice to experiment with.

New to APIs? Read our beginner's guide

Open documentation ↗