# Deutsche Bahn Frankfurt to Hamburg Trains Scraper

**Use case:** 

Track Deutsche Bahn trains from Frankfurt to Hamburg with times, duration, transfers and live fares.

## Input

```json
{
  "maxItems": 50,
  "withDetails": true,
  "fromStation": "Frankfurt(Main)Hbf",
  "toStation": "Hamburg Hbf",
  "date": "2026-07-15",
  "time": "08:00",
  "searchType": "ABFAHRT",
  "travelClass": "KLASSE_2",
  "onlyFastConnections": true,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountryCode": "DE"
  }
}
```

## Output

```json
{
  "from": {
    "label": "From",
    "format": "text"
  },
  "to": {
    "label": "To",
    "format": "text"
  },
  "departure": {
    "label": "Departure",
    "format": "text"
  },
  "arrival": {
    "label": "Arrival",
    "format": "text"
  },
  "durationMinutes": {
    "label": "Duration (min)",
    "format": "number"
  },
  "transfers": {
    "label": "Transfers",
    "format": "number"
  },
  "trainTypes": {
    "label": "Train Types",
    "format": "array"
  },
  "trains": {
    "label": "Trains",
    "format": "array"
  },
  "price": {
    "label": "Price",
    "format": "number"
  },
  "currency": {
    "label": "Currency",
    "format": "text"
  },
  "priceClass": {
    "label": "Class",
    "format": "text"
  },
  "fares": {
    "label": "Fares",
    "format": "array"
  },
  "cheapestFareName": {
    "label": "Cheapest Fare",
    "format": "text"
  },
  "legs": {
    "label": "Legs",
    "format": "array"
  },
  "notices": {
    "label": "Notices",
    "format": "array"
  },
  "fromExtId": {
    "label": "From ID",
    "format": "text"
  },
  "toExtId": {
    "label": "To ID",
    "format": "text"
  },
  "tripId": {
    "label": "Trip ID",
    "format": "text"
  },
  "searchDate": {
    "label": "Search Date",
    "format": "text"
  },
  "observedAt": {
    "label": "Scraped",
    "format": "date"
  },
  "error": {
    "label": "Error",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [Deutsche Bahn Train Connections & Prices Scraper](https://apify.com/scrapers_lat/deutsche-bahn-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/scrapers_lat/deutsche-bahn-scraper) to learn more, explore other use cases, and run it yourself.