# Connect to the Deutsche Bahn ticket price API

**Use case:** 

Connect to the unofficial ticket price API for Deutsche Bahn. Search for connections, find cheap tickets and integrate the data into your application.

## Input

```json
{
  "from": "Berlin Hbf",
  "to": "München Hbf",
  "firstClass": false,
  "bikeCarriage": false,
  "maxTransfers": 10,
  "maxResults": 10
}
```

## Output

```json
{
  "from": {
    "label": "From",
    "format": "string"
  },
  "to": {
    "label": "To",
    "format": "string"
  },
  "departure": {
    "label": "Departure",
    "format": "string"
  },
  "arrival": {
    "label": "Arrival",
    "format": "string"
  },
  "durationMinutes": {
    "label": "Minutes",
    "format": "integer"
  },
  "transfers": {
    "label": "Transfers",
    "format": "integer"
  },
  "priceAmount": {
    "label": "Price",
    "format": "number"
  },
  "priceCurrency": {
    "label": "Currency",
    "format": "string"
  },
  "legs": {
    "label": "Legs",
    "format": "array"
  }
}
```

## About this Actor

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