Trainline Scraper β European Train Routes & Prices
Pricing
from $8.00 / 1,000 result scrapeds
Trainline Scraper β European Train Routes & Prices
Scrape train routes, schedules, operators, and prices from Trainline (thetrainline.com). Covers European rail travel across 40+ countries.
Pricing
from $8.00 / 1,000 result scrapeds
Rating
0.0
(0)
Developer
Actor stats
1
Bookmarked
5
Total users
2
Monthly active users
6 days ago
Last modified
Categories
Share
Trainline Scraper
Scrapes train timetable and route information from Trainline (thetrainline.com). Returns departure/arrival times, duration, price, operator, and number of changes for European rail routes. No login or cookies required.
Why use this actor?
Trainline is Europe's leading train and coach booking platform, covering 270+ rail and coach operators across 45 countries. This scraper extracts timetable data, prices, and operator information -- perfect for travel comparison platforms, commuter tools, and market research into European rail pricing.
How to scrape Trainline data
- Create an Apify account (free tier available)
- Open the Trainline Scraper actor page
- Add one or more train route URLs (e.g.
https://www.thetrainline.com/en/train-times/london-to-paris) - Click "Start" to begin scraping
- Download results as JSON, CSV, or Excel when the run finishes
You can also call the actor via the Apify API or schedule recurring runs for automated timetable monitoring.
Input
| Field | Type | Required | Description |
|---|---|---|---|
startUrls | Array | No | Train times page URLs, e.g. https://www.thetrainline.com/en/train-times/london-to-paris |
maxResults | Integer | No | Maximum routes to return (default: 100) |
proxyConfiguration | Object | No | Proxy settings for large-scale scraping |
Default: scrapes London to Paris route.
Output
Each result contains:
| Field | Type | Example |
|---|---|---|
origin | String | "London" |
destination | String | "Paris" |
departureTime | String | "07:01" |
arrivalTime | String | "10:17" |
duration | String | "2h 16m" |
price | Number | 49.00 |
currency | String | "EUR" |
operator | String | "Eurostar" |
changes | Number | 0 |
url | String | Full route page URL |
scrapedAt | String | ISO 8601 timestamp |
Example output
{"origin":"London","destination":"Paris","departureTime":"07:01","arrivalTime":"10:17","duration":"2h 16m","price":49.00,"currency":"EUR","operator":"Eurostar","changes":0,"url":"https://www.thetrainline.com/en/train-times/london-to-paris","scrapedAt":"2026-03-16T10:00:00.000Z"}
Use cases
- Price monitoring -- Track train ticket prices over time to find the cheapest days to travel
- Travel comparison -- Feed Trainline data into your travel comparison platform
- Commuter tools -- Build timetable applications for specific routes
- Market research -- Analyze pricing patterns across European rail operators
- Deal alerts -- Get notified when prices drop on specific routes
Popular routes
London to Paris, London to Amsterdam, Paris to Brussels, Berlin to Munich, Barcelona to Madrid, Amsterdam to Berlin, Rome to Florence, Zurich to Milan.
Data sources
The scraper tries three extraction strategies in order:
- JSON-LD
ItemListwith TrainTrip items - HTML timetable rows (departure time, arrival time, duration columns)
- Embedded
__NEXT_DATA__JSON with journey objects
It also discovers links to related routes on the page and can follow them.
Integrations
Connect Trainline Scraper results to your existing tools:
- Google Sheets -- Automatic export after every run
- Slack / Email -- Get notified when ticket prices drop
- Webhooks -- Push timetable data to your own API endpoint
- Zapier / Make -- Connect to 5,000+ apps without code
Cost estimate
HTTP-based scraper, no browser needed. Roughly $0.20 per 100 routes.
Limitations
- Trainline's results pages are heavily JavaScript-rendered. The HTTP scraper captures static timetable data from
/train-times/pages, but real-time search results may require a browser-based approach. - Route names are parsed from the URL slug (e.g.
/london-to-paris). - Data is scraped from the public website and may change without notice.
Need this data on a schedule, or a custom version?
We run this scraper as a managed service for businesses: scheduled runs, deduplication, delta detection, and delivery to your inbox, Google Sheets, or API β maintenance included. We can also build a custom version with your exact fields and filters, or combine multiple sources into one feed.
See studioamba.dev/services or email hello@studioamba.dev for a free data sample. We maintain 300+ European web scrapers and answer within one business day.
