Deutsche Bahn Scraper for Fares, Connections and Occupancy

On bahn.de one ICE departure can carry a Super Sparpreis, a Sparpreis and a Flexpreis at once. Our Deutsche Bahn scraper records each fare with its connection.

Plans from €169 a month · Free project assessment · Reply within 1 business day

CSV · Excel · JSON · XML · FTP · SFTP · Amazon S3 · Google Cloud

bahn.de
Deutsche Bahn Scraper for Fares, Connections and Occupancy
bahn.dewhat you get
Typical fields for travel sites
propertycitycheck_inroom_typepriceavailablerating
Delivery

API, JSON feed or CSV, XLSX and JSON files

Schedule

One-time, monthly, weekly, daily or 3 times a day

Scrape Deutsche Bahn as a Managed Service

  1. You send

    Deutsche Bahn pages, filters, fields and a schedule

  2. We run the scrapers

    Built, monitored and repaired by our team

  3. You receive the data

    API, JSON feed or CSV, XLSX and JSON files

Send us the route list - station pairs written as bahn.de writes them, such as Frankfurt(Main)Hbf to Berlin Hbf - with the travel dates or lead times, the class, the traveller type and the BahnCard discount each search should carry. We build the crawler, run it and repair it whenever bahn.de reworks its booking pages; anti-bot handling, pacing, proxy rotation and rendering are part of the service. Every run stops at the Angebote (offers) step: nothing is booked and no Kundendaten (passenger details) are typed in. German labels arrive as English columns with the original wording kept beside them. Runs are one-off or scheduled daily, weekly or on demand, and each project opens with a free assessment and a sample on one of your routes.

Deutsche Bahn Data: Connections, Fares and Train Details

Our Deutsche Bahn scraper reads a search the way bahn.de lays it out: a list of connections for one origin, destination, date and time, then the offers of the connection you open. Each row is one connection, or one fare on one connection, stamped with the moment it was read.

  • Connectionorigin and destination station, departure and arrival time, travel time, the number of changes (Umstiege) and the legs in order, each with its train product and train number: ICE, ICE Sprinter, IC (Intercity), EC (Eurocity) and ECE, or on a regional train RE, RB, IRE and S-Bahn.
  • Platform and timetable notesdeparture and arrival platform (Gleis) where the timetable gives one, the note fährt nicht täglich (does not run daily) with its Verkehrstage (running days), airport stops and Flügelzüge, trains that split on the way.
  • FaresSuper Sparpreis, Sparpreis and Flexpreis with the euro amount in first class and second class, the Young (under 27) and Senioren (from 65) variants when the search is priced for them, whether the City-Ticket for local transport at either end is included, and the cancellation wording of each offer.
  • Train bindingZugbindung, the rule that ties a saver fare to the booked ICE, IC or EC. The Flexpreis has none, and a chain symbol marks connections where DB has lifted it.
  • On boardBordrestaurant or Bordbistro, a bike coach or bike compartment, a diamond for trains where a reservation is recommended, and a crossed-out seat where none can be booked.
  • Occupancythe Auslastung icons on long-distance trains, from one grey figure for a quiet train to three crossed-out red figures for a train that is no longer sold.
  • Search contextdate and time searched, class, traveller type, BahnCard discount and the filters used, such as Nur Direktverbindungen (direct only) or Nur D-Ticket-Verbindungen (connections the Deutschland-Ticket covers).

The search context travels with every row, which is what makes a fare read last week comparable with one read today.

Deutsche Bahn Data: Connections, Fares and Train Details
Deutsche Bahn Price Tracker and Delay History

Deutsche Bahn Price Tracker and Delay History

One search is a snapshot. bahn.de sells its saver fares je nach Verfügbarkeit (subject to availability), so their value lies in watching them move.

  • Fare curvesthe same connections priced at fixed lead times show when the Super Sparpreis goes, how far the Sparpreis climbs and when only the Flexpreis is left. That price history is the core of a Deutsche Bahn price tracker.
  • Best price by daywith Unsere Bestpreise anzeigen (show our best prices) switched on, bahn.de groups a day into time windows, shows the lowest price it can find in each and marks the best price of the day in green. Read across a range of dates, that becomes a fare calendar for the route. The view is not offered for same-day travel, so today is read from the ordinary list.
  • Delays and disruptionon the travel day bahn.de gives real-time forecasts to the minute, suggests alternative connections and flags irregularities such as construction sections. Repeated reads of the same trains turn that into delay figures by line, hour and weekday.
  • Occupancy over timesuccessive Auslastung readings show which trains fill up first and how early.
  • Product pricesthe price list of the BahnCard range, from the Probe BahnCard trials to the Jugend and Senioren cards, and the Deutschland-Ticket monthly price, read from their offer pages.

Notices from the Verkehrsmeldungen (traffic reports) and Baustellen (engineering works) sections linked in the bahn.de header can run beside the fare table.

About bahn.de and How Its Fares Work

Source
bahn.de
Category
travel sites
Delivery
API, JSON feed, CSV, XLSX
Plans
From €169 a month
Get a quote

bahn.de is the booking site of Deutsche Bahn, Germany's national railway, and it speaks German first. The header separates Privatreisen (private travel) from Geschäftsreisen (business travel), and the main menu holds Tickets & Angebote, Info & Services and Meine Reisen (my trips). A booking passes through five steps - Hinfahrt (outward journey), Angebote, Kundendaten, Zahlung (payment) and Prüfen (review) - and everything a buyer of rail data needs sits in the first two.

The network has two layers with different pricing. Fernverkehr, the long-distance ICE, IC and EC trains, is sold by offer: Super Sparpreis and Sparpreis are cheaper and tied to one train, while the Flexpreis is valid on any train of the booked route and day. Regional trains - RE, RB and S-Bahn - are where the Deutschland-Ticket applies, a monthly subscription that does not cover long-distance trains, and the search can be narrowed to the connections it covers.

Discounts sit on top. The BahnCard 25 and BahnCard 50 take a share off both the Sparpreis and the Flexpreis, the BahnCard 50 cutting deeper into the Flexpreis than into the saver fares, while the Young and Senioren fares follow the traveller's age. Because the price on screen depends on class, age group and card, a fare dataset is only as useful as the search profile stored with it.

25Developers
500+Customers
1.5BPages extracted
15,000+Hours saved for our clients

Deutsche Bahn scraping plans and pricing

Airplane

€199one-time

Setup fee included

100,000
One-time
Up to 5 days
7 days

Helicopter

€169/ mo

Setup fee €499

250,000
Monthly
Up to 5 days
14 days

Glasses

€229/ mo

Setup fee €499

1,000,000
Weekly
Up to 5 days
30 days

Microscope popular

€349/ mo

Setup fee €499

2,000,000
Daily
Same day
60 days

DNA

€549/ mo

Setup fee €799

3,000,000
3 times daily
Same day
90 days

Delivery: CSV, JSON or XLSX files, our API or a JSON feed. MCP server on request.

Full plan details

Why Collect Deutsche Bahn Fares and Connections

bahn.de is where Deutsche Bahn shows its long-distance fares and timetables to every traveller, so the uses follow its fields.

  • Corridor pricingCoach companies, airlines and car-sharing services on routes such as Berlin-Munich or Hamburg-Frankfurt price against the Sparpreis a traveller sees for the same day and hour.
  • Booking-window researchFare curves by lead time show how early a saver fare has to be bought ahead of school holidays, trade fairs and long weekends.
  • Travel budgetsTour operators and corporate travel teams plan trips from the Flexpreis and Sparpreis in both classes, with and without a BahnCard, and see where the City-Ticket for local transport is included.
  • Capacity and reliabilityOccupancy levels and travel-day delays by train and weekday feed transport research, consulting and reporting on punctuality.
  • Regional accessDirect and Deutschland-Ticket connections between smaller towns show where a trip needs a long-distance leg and where a regional train does the job.

About ScrapeIt

ScrapeIt is a managed web scraping service: we build, run and repair the crawlers and deliver the data. On rail booking sites such as bahn.de that means searches with routes and dates only, stopped before any passenger details, and field documentation for every column we hand over. Plans start from EUR 169 a month, or EUR 199 for a one-time extract. Order a sample on a route of your choice before committing to a schedule.

FAQ

Still unsure? Write to info@scrapeit.io

Do you offer a Deutsche Bahn API for fares and connections?

Yes. The ScrapeIt Deutsche Bahn API returns departure and arrival times, changes, train numbers, Sparpreis and Flexpreis amounts by class and the Auslastung level as JSON from an endpoint we host, refreshed on the schedule you set. The same data also comes as CSV or Excel files, a JSON feed or a load into your database.

Is it legal to scrape Deutsche Bahn?

Yes. Connections, fares, occupancy icons and real-time forecasts appear on bahn.de for anyone who runs a search, without an account. We collect only publicly available data - everything a visitor can see on Deutsche Bahn - and we collect it legally. Searches carry routes and dates only: nothing is booked and no passenger data is entered.

How often do Deutsche Bahn prices change, and how often should they be scraped?

Saver fares move with demand: bahn.de sells the Sparpreis subject to availability, so the cheapest offer left on a connection can step from Super Sparpreis to Sparpreis to Flexpreis as departure nears. For pricing work a daily run per route and travel date is the usual start, tightened to several runs a day in the last week. Every reading keeps its timestamp, so the curve comes from your own runs.

Can you build a Deutsche Bahn delay dataset?

Yes, from repeated reads on the travel day. bahn.de shows minute-level forecasts for a connection, flags irregularities such as construction sections, offers alternative connections and marks where train binding has been lifted. Reading the same trains at intervals and keeping every value gives a delay record by train, line, station and hour that a single snapshot cannot provide.

Which trains and offers does a Deutsche Bahn dataset cover?

Every product bahn.de lists in a search: ICE and ICE Sprinter, IC, EC and ECE on long-distance routes, and RE, RB, IRE and S-Bahn on regional ones. Fares cover Super Sparpreis, Sparpreis and Flexpreis in both classes, with the Young and Senioren variants and BahnCard discounts whenever the search profile asks for them.

How it works

  1. 1

    Make a request

    You share your needs, expectations, and desired timeframe. We'll suggest the best solution based on your request and budget.

  2. 2

    We configure the crawlers

    Our specialists configure the crawlers and extract a sample dataset for your review before proceeding with the full-scale extraction.

  3. 3

    Collect and deliver

    Once you approve the sample, we launch the project and start full data collection. We gather, filter, and structure the data for easy use, delivering it on time in your preferred format.

  4. 4

    Maintain and support

    Our team manages ongoing processes, monitors website changes, and supports all data extraction cycles. We can also help integrate data into your systems or create dashboards to simplify analysis.

Request a quote

Tell us which sites, which fields and how often. A couple of lines is enough to start.

  • We reply within 1 business day
  • A sample dataset before the full run
  • We sign an NDA on request
  • Delivery by API, JSON feed or files
Which sites, which fields, how often. A couple of lines is enough.

This form is protected by Google reCAPTCHA, which loads when you start filling it in. If you prefer not to use it, email us at info@scrapeit.io. Privacy & Cookie Policy

We reply within 1 business day. No obligation.

Deutsche Bahn data from €169/month. Free project assessment, reply within 1 business day.