db-rest/docs
Jannis R 97b1c10d7c
rebuild API docs 📝
opt.{includeRelatedStations,stopovers} are not supported by most HAFAS endpoints anymore.
2022-03-25 18:13:06 +01:00
..
api.md rebuild API docs 📝 2022-03-25 18:13:06 +01:00
getting-started.md enable OpenAPI spec, link to it 📝 2021-02-04 19:24:13 +01:00
readme.md enable OpenAPI spec, link to it 📝 2021-02-04 19:24:13 +01:00

v5.db.transport.rest documentation

v5.db.transport.rest is a REST API for the public transportation system in Germany.

API status

Because it wraps an API of Deutsche Bahn, it includes most of the long-distance and regional traffic, as well as some international trains and local buses. Essentially, it returns whatever data the DB Navigator app shows, including realtime delays and disruptions.

Why use this API?

Realtime Data

This API returns realtime data whenever its upstream, the API for DB's mobile app, provides it.

No API Key

You can just use the API without authentication. There's a rate limit of 100 requests/minute (burst 200 requests/minute) set up.

CORS

This API has CORS enabled, so you can query it from any webpage.

Caching-friendly

This API sends ETag & Cache-Control headers, allowing clients cache responses properly.