# Swiss Transit Zurich to Bern Scraper

**Use case:** 

Scrape Swiss public transit connections from Zurich to Bern with departure, arrival, platform, duration, transfers, operator, and line. Export to JSON or CSV.

## Input

```json
{
  "mode": "connections",
  "from": "Zurich",
  "to": "Bern",
  "maxItems": 5
}
```

## Output

```json
{
  "recordType": {
    "label": "🧭 Type",
    "format": "text"
  },
  "fromStation": {
    "label": "🚉 From",
    "format": "text"
  },
  "toStation": {
    "label": "🏁 To",
    "format": "text"
  },
  "departure": {
    "label": "🕐 Departure",
    "format": "text"
  },
  "arrival": {
    "label": "🕑 Arrival",
    "format": "text"
  },
  "platform": {
    "label": "🛤 Platform",
    "format": "text"
  },
  "duration": {
    "label": "⏱ Duration",
    "format": "text"
  },
  "transfers": {
    "label": "🔁 Transfers",
    "format": "number"
  },
  "products": {
    "label": "🚆 Products",
    "format": "array"
  },
  "scrapedAt": {
    "label": "🕒 Scraped",
    "format": "date"
  },
  "error": {
    "label": "❌ Error",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [Swiss Transit OpenData Scraper](https://apify.com/parseforge/swiss-transit-opendata-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/parseforge/swiss-transit-opendata-scraper) to learn more, explore other use cases, and run it yourself.