deutsche-bahn

Search Deutsche Bahn train schedules, journeys, and departure boards via db-vendo-client.

650|67|Updated Mar 21, 2026
One-click install
npx skills add https://github.com/borski/travel-hacking-toolkit --skill deutsche-bahn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: deutsche-bahn
Source: https://github.com/borski/travel-hacking-toolkit/tree/main/plugins/travel-hacking-toolkit/skills/deutsche-bahn
Command: npx skills add https://github.com/borski/travel-hacking-toolkit --skill deutsche-bahn

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires db-vendo-client, and includes scripts (resource) components.

What problem does it solve?

Planning rail travel in Germany and neighboring countries requires checking schedules across bahn.de manually. This Skill lets an AI query Deutsche Bahn station data, journey routes, and live departure boards directly from the command line without an API key.

Core Features & Use Cases

  • Station Search: Resolve station names to DB station IDs, including airport stations like Frankfurt (FRA) and Munich (MUC).
  • Journey Planning: Find ICE/IC/regional train routes between any two stations with date, time, and result-count options, including international routes to Amsterdam, Paris, Zürich, and Vienna.
  • Departure Boards: Check upcoming departures with real-time delay information from any German station.
  • Use Case: You land at Frankfurt Airport and need to reach Germersheim. Ask the AI to find the next ICE connection to Mannheim plus the S3 regional transfer, and it returns timed options with transfer counts.

Quick Start

Ask the AI to find train journeys from Frankfurt Airport to Mannheim tomorrow morning using the deutsche-bahn skill.

Frequently Asked Questions about deutsche-bahn

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I search Deutsche Bahn train schedules from the command line?

Run the search_trains.mjs script with the journeys command, passing origin and destination station names or IDs plus optional --date, --time, and --results flags. It uses db-vendo-client to query bahn.de APIs and prints timed route options with transfer counts.

How do I find a Deutsche Bahn station ID by name?

Use the stations command with a search query, such as "Frankfurt Flughafen", to list matching stations with their numeric IDs. The journeys and departures commands also auto-resolve station names to IDs, so IDs are optional.

Does the Deutsche Bahn API require an API key?

No API key is required. The db-vendo-client library wraps bahn.de's internal APIs openly, needing only Node.js 18 or later and an npm install of the skill directory.

Can I get Deutsche Bahn ticket prices through this API?

No, DB does not expose ticket prices via this API. The skill returns schedule and real-time delay data only; for fares you must check bahn.de directly or use a separate service like the Trainline API.

What are the limitations of db-vendo-client train searches?

DB enforces low rate limits, so keep queries to a few per minute. Schedules are published roughly six months ahead, historical data is not retained, and pricing is unavailable.