SBB Scraper
studio-amba/sbb-scraper
Scrape Swiss Federal Railways (SBB) train connections, timetables, and schedules. Search by station name and date. Returns departure times, arrival times, duration, train types, platforms, and transfer details. No login or cookies required.
What data can you extract?
- Product details
- Pricing
- Data export
- JSON output
Output fields
Each result is a JSON object with these fields.
- origin
- destination
- departureTime
- arrivalTime
- duration
- durationMinutes
- trainType
- trainNumber
- platform
- arrivalPlatform
- transfers
- carrier
- sections
- departurePlatformChanged
- departureDelay
- arrivalDelay
- url
- scrapedAt
How to use
- Go to the actor page on Apify
- Click "Try for free" to open the actor in Apify Console
- Configure your input (search terms, URLs, or categories)
- Run the actor and download your data as JSON, CSV, or Excel
Input example
Paste this into the actor input on Apify Console, or send it as the body of an API run call.
{
"fromStation": "Zurich HB",
"toStation": "Bern",
"proxyConfiguration": {
"useApifyProxy": true,
"apifyProxyGroups": [
"RESIDENTIAL"
],
"apifyProxyCountry": "CH"
}
} Use via API
curl "https://api.apify.com/v2/acts/studio-amba~sbb-scraper/runs" \
-X POST \
-H "Authorization: Bearer YOUR_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"fromStation":"Zurich HB","toStation":"Bern","proxyConfiguration":{"useApifyProxy":true,"apifyProxyGroups":["RESIDENTIAL"],"apifyProxyCountry":"CH"}}' Need this data delivered on a schedule?
We run Sbb extraction as a managed service: scheduled runs, deduplication, delta detection, and delivery straight to your inbox, Google Sheets, or API. No setup on your side, maintenance included. We can also build a custom version of this scraper for your exact fields and filters.