Jentic OSThe workplace. An in-house AI platform for every employeeJentic OneSafe access. Agents reach your systems without holding keysJentic AIRThe foundation. Gets your existing platforms ready for AI
Pricing

GET STARTED

API DirectoryBrowse 10,000+ APIs ready for AI agent integrationDocumentationGuides and API reference

TOOLS

API ScoringCheck your AI readiness using our scorecardArazzo UIVisualize Arazzo workflows as interactive documentationArazzo EditorBuild and edit multi-step API workflows visually

COMMUNITY

GitHubOpen source projects and examplesOpen StandardsBuilt on open specs. Never locked in.
All ResourcesEverything in one placeBlogLatest articles and insightsTech Talk NewsletterAPIs, AI agents, architecture and strategyWebinarsLive sessions and on-demand recordingsReports & WhitepapersOriginal research on enterprise AI
About UsOur mission and teamCareersJoin our teamContactGet in touch
Try it now
Jentic OSJentic OneJentic AIR
Pricing
API DirectoryDocumentationAPI ScoringArazzo UIArazzo EditorGitHubOpen Standards
All ResourcesBlogTech Talk NewsletterWebinarsReports & Whitepapers
About UsCareersContact
Try it now
JenticJentic
Products
  • Jentic OS
  • Jentic One
  • Jentic AIR
For Developers
  • API Directory
  • Documentation
  • GitHub
Company
  • About Jentic
  • Careers
  • Contact Us
  • Trust Centre
ISO/IEC 27001:2022 certification badge issued by Prescient SecurityISO/IEC 27001:2022 certification badge issued by Prescient Security

Information Security Management System

Certified to ISO/IEC 27001:2022 by Prescient Security

AICPA SOC for Service Organizations logoAICPA SOC for Service Organizations logo

SOC 2® Type 1 report

Audited by Prescient Assurance

Terms & Conditions•Privacy Policy•
© 2026 Jentic Technology Ltd. All rights reserved.
2 Grattan Court East, Dublin, D02 VX86, Ireland
Switch to light modeSwitch to dark mode
APIs / Maps Geolocation / DB Fahrplan API
DB Fahrplan API logo

DB Fahrplan API

42
AI ReadinessFoundational (D-)42/100
See full scorecard
Community OpenAPI document · agent-readyMaps GeolocationRouting DirectionsapiKey4 EndpointsREST

Know of an official OpenAPI document? Contribute it →

For Agents

Resolve German rail station names, pull live departure and arrival boards, and fetch journey detail records from Deutsche Bahn's timetable API.

Use for: Find the next train from Berlin Hbf to Munich Hbf, Look up the Deutsche Bahn stop ID for 'Frankfurt Hbf', Show me arrivals at Cologne main station for the next hour, Get the route detail for an ICE train

Not supported: Does not handle ticket purchase, fare calculation, or seat reservation - use for German rail station resolution, live departure/arrival boards, and journey detail lookups only.

The DB Fahrplan API is Deutsche Bahn's open timetable interface for the German rail network and connecting European services. The four endpoints cover the canonical journey-planning flow: resolve a station name to a stop ID, retrieve a board of upcoming departures or arrivals at that stop, and pull the detail view for a specific journey. Authentication is a single authKey query parameter. Travel apps, expense tools, and AI travel agents use it to surface live train timetables without operating a dedicated rail-data feed.

Jentic One on GithubView OpenAPI Document

Install Jentic One Beta

Connect the DB Fahrplan API to your agent

Jentic One is a self-hosted execution layer for AI agents. It lets your agent call the DB Fahrplan API, or any other public or private API you need. You set the rules, the agent never sees your credentials, and every call is logged.

Two steps, two machines. Install the instance in a safe environment, then register your agent from wherever it runs.

1

Step 1: Jentic One Host machine

# On the machine that will host your Jentic One instance:
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fdbfahrplanapi%2Fdbfahrplan" | sh
2

Step 2: Agent machine

# On the machine where your agent runs (keep this separate from the instance):
curl -fsSL "https://jentic.com/install.sh?src=apis&api=%2Fapis%2Fdbfahrplanapi%2Fdbfahrplan" | sh
jentic register       # connects your agent to your Jentic One instance

Jentic One is in public beta. The setup above keeps your agent separate from the instance, which is what you want before using real credentials: an agent running as the same OS user as Jentic One can read its stored keys directly. Just evaluating? A single local install is fine to start. See the secure deployment guide for the tiers.

Capabilities

What an agent can do with DB Fahrplan API.

Resolve a station name to a stop ID via GET /location.name

Retrieve upcoming departures at a stop via GET /departureBoard

Retrieve upcoming arrivals at a stop via GET /arrivalBoard

Pull the full journey detail for a train via GET /journeyDetail

Drive travel apps, expense tools, and rail dashboards with live German rail data

Power AI travel agents that need to confirm specific train times for a German journey

Use Cases

Patterns agents use DB Fahrplan API for, with concrete tasks.

★ Travel App Train Lookup

Travel and ticketing apps call DB Fahrplan to surface live train times for users planning journeys across Germany. The flow starts with GET /location.name to convert a station name into a stop ID, then GET /departureBoard to render a board of next trains. Most apps integrate this in a couple of days.

Resolve 'Berlin Hauptbahnhof' to a stop ID via GET /location.name, then call GET /departureBoard for the next 60 minutes and return the next 5 trains

Expense Reconciliation

Travel-expense platforms use GET /journeyDetail to pull canonical Deutsche Bahn route detail (origin, destination, departure time, train number) and reconcile employee-submitted train tickets against the actual scheduled service. This catches typos and date errors before reimbursement and keeps audit logs accurate.

Given an ICE train number and date, call GET /journeyDetail to confirm origin, destination, and departure time match a submitted expense

Station Display Board

Public information displays in offices, hotels, and retail premises near major German stations call GET /departureBoard and GET /arrivalBoard on a polling schedule to surface a live train board for visitors. The simple authKey query parameter keeps the integration trivial to deploy on signage hardware.

Poll GET /departureBoard for stop ID 8011160 (Berlin Hbf) every 60 seconds and render the next 12 trains

AI Travel Agent

AI travel agents booking or advising on German rail journeys call DB Fahrplan through Jentic to confirm specific train times, validate platform numbers, and resolve station names mentioned in user messages. Jentic isolates the authKey in its vault, so the agent only handles stop IDs and timestamps.

Given the user query 'next ICE from Berlin to Munich', resolve both stations via GET /location.name, then return the next direct ICE departure with platform and arrival time

Key Endpoints

4 endpoints — the db fahrplan api is deutsche bahn's open timetable interface for the german rail network and connecting european services.

METHOD

PATH

DESCRIPTION

GET

/location.name

Resolve a station name to a Deutsche Bahn stop ID

GET

/departureBoard

Live upcoming departures at a stop

GET

/arrivalBoard

Live upcoming arrivals at a stop

GET

/journeyDetail

Detail for a specific train journey

GET

/location.name

Resolve a station name to a Deutsche Bahn stop ID

GET

/departureBoard

Live upcoming departures at a stop

GET

/arrivalBoard

Live upcoming arrivals at a stop

GET

/journeyDetail

Detail for a specific train journey

Jentic AI Readiness Score

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

D

DB Fahrplan API

- Foundational (D-)
42/100
100
Foundational Compliance
56
Developer Experience & Jentic Compatibility
31
AI-Readiness & Agent Experience
94
Agent Usability
15
Security
100
AI Discoverability
Powered by JenticScoring Framework 1.0.0 | Scoring Engine 0.4.0
Show dimension breakdown
100

Foundational Compliance

Base layer of spec validity and structural soundness.

Grade: A+Signals: 4
99%

Lint Results

Aggregated quality score from linter diagnostics, weighted by severity.

100%

Resolution Completeness

Percentage of `$ref` references that resolve successfully.

100%

Specification Validity

Checks whether the API description parses successfully and conforms to its declared specification (e.g., OpenAPI).

100%

Structural Integrity

Structural correctness score based on schema issues using logarithmic dampening.

56

Developer Experience & Jentic Compatibility

Clarity, completeness, and ingestion readiness for developers and tooling.

Grade: CSignals: 4
0%

Example Density

How richly the API is illustrated with examples.

100%

Example Validity

Percentage of examples that conform to their schemas.

25%

Response Coverage

Percentage of operations with complete response definitions (success, client error, server error).

100%

Tooling Readiness

Health of API ingestion, bundling, and resolution within Jentic pipelines.

31

AI-Readiness & Agent Experience

Semantic breadth, depth, and agent comprehension for AI systems.

Grade: FSignals: 4
22%

Description Coverage

Coverage of descriptions across API elements.

0%

Error Standardization

Coverage of RFC 9457 Problem Details for error responses.

100%

OperationId Quality

Coverage, uniqueness, and casing consistency of operationIds for AI inference.

0%

Summary Coverage

Coverage of summaries across operations/tags/info.

94

Agent Usability

Functional utility, complexity comfort, and AI orchestration readiness.

Grade: A+Signals: 1
94%

Complexity Comfort

Agent comfort level based on API operational and structural complexity.

15

Security

Trust, risk posture, and security compliance.

Grade: FSignals: 1
15%

Authentication Strength

Average quality of security schemes based on authentication method strength (weakest link for OAuth2).

100

AI Discoverability

Findability, semantic richness, and reasoning readiness.

Grade: A+Signals: 1
100%

Descriptive Richness

Clarity and depth of descriptions across API elements.

View full reportHow the score is calculatedMore about the dimensions

Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

Score your own APIScoring CLI agent skill
npx @jentic/api-scorecard-cli score <openapi-url>

Why Jentic?

What agents get from Jentic-routed access to this vendor.

Setup

Wiring the DB Fahrplan API by hand means learning that its authKey rides as a query parameter, then chaining the station name resolution to the departure or arrival board yourself while keeping the key out of logged URLs. Through Jentic you install once, import the DB Fahrplan API from the API Directory, store the authKey once, and your agent calls it.

Permission scoping

DB Fahrplan carries the station and query in the request parameters rather than as a resource id in the URL path, so limit the agent to the operations it needs, such as resolving a station name and reading a departure board. Every operation here is a read-only GET, so no write or booking path is reachable.

Credential isolation

Your DB Fahrplan authKey is stored once, encrypted, by your own Jentic One instance and injected as the query parameter at execution time. It never enters the agent's prompt, logs, or the request URLs recorded in logs.

Intent-based discovery

Agents search Jentic by intent such as 'find the next train from a German station' or 'resolve a station name', and Jentic returns the matching DB Fahrplan operations with their input schemas so the agent runs the resolve-then-board flow without browsing the DB Open Data portal.

Related APIs

Alternatives and complements available in the Jentic catalogue.

Alternative

Transport for London

→

TfL exposes live London transport data with a similar arrivals/departures shape but for London modes.

Choose TfL for London transport data; choose DB Fahrplan for German national rail.

Alternative

Transit

→

Transit aggregates real-time public transport data across many cities globally.

Choose Transit for cross-city transit aggregation; choose DB Fahrplan when you need authoritative German rail timetable data direct from the operator.

Complementary

HERE Maps

→

HERE provides geocoding and routing for the legs around a train journey (taxi, walk, drive).

Use HERE for the door-to-station legs of a trip; use DB Fahrplan for the rail segment in between.

FAQs

Specific to using DB Fahrplan API through Jentic.

What authentication does the DB Fahrplan API use?

DB Fahrplan uses an API key passed as the authKey query parameter on every request. Through Jentic, the authKey is stored encrypted in your Jentic One instance, so AI travel agents never handle the raw secret in URLs.

Can I get live German train times with the DB Fahrplan API?

Yes. GET /departureBoard and GET /arrivalBoard return live upcoming departures and arrivals at a Deutsche Bahn stop. Resolve the stop ID first via GET /location.name.

What are the rate limits for the DB Fahrplan API?

Deutsche Bahn does not publish hard per-key rate limits in this spec; the open API portal asks integrators to be considerate with polling cadence. For high-frequency display boards, contact DB Open Data for a partnership-grade key.

How do I look up the next train between two stations through Jentic?

Search Jentic for 'find departures from a German rail station', load the GET /departureBoard operation, and execute it with the resolved stop ID. Resolve the station name to an ID first via GET /location.name. Jentic injects the authKey automatically.

Does the DB Fahrplan API include ticket prices or booking?

No. This is a timetable and journey detail surface only - for fares, ticket purchase, and seat reservation, use a separate Deutsche Bahn product such as the bahn.de buchung flow.

Does the DB Fahrplan API cover services outside Germany?

It covers the German rail network and integrated cross-border services (e.g. ICE to Switzerland, France, Austria) where Deutsche Bahn carries the timetable. Pure foreign-operator services are not covered.

Can I limit what my agent is allowed to do with the DB Fahrplan API?

Yes. Jentic One is self-hosted, so you run your own instance and your own rules decide which DB Fahrplan operations the agent may call and which credentials it may use. You can allow only the operations a task needs, such as resolving a station name with GET /location.name and reading a board with GET /departureBoard or GET /arrivalBoard, while withholding GET /journeyDetail. Every DB Fahrplan operation is a read-only GET with the station and query carried as request parameters rather than as a path id, so no write or booking path is reachable in the first place.

GET STARTED

Start building with DB Fahrplan API

Explore with Jentic One
View OpenAPI Document