Trainline Scraper — European Train Routes & Prices avatar

Trainline Scraper — European Train Routes & Prices

Pricing

from $8.00 / 1,000 result scrapeds

Go to Apify Store
Trainline Scraper — European Train Routes & Prices

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

Studio Amba

Studio Amba

Maintained by Community

Actor stats

1

Bookmarked

7

Total users

2

Monthly active users

10 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

  1. Create an Apify account (free tier available)
  2. Open the Trainline Scraper actor page
  3. Add one or more train route URLs (e.g. https://www.thetrainline.com/en/train-times/london-to-paris)
  4. Click "Start" to begin scraping
  5. 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

FieldTypeRequiredDescription
startUrlsArrayNoTrain times page URLs, e.g. https://www.thetrainline.com/en/train-times/london-to-paris
maxResultsIntegerNoMaximum routes to return (default: 100)
proxyConfigurationObjectNoProxy settings for large-scale scraping

Default: scrapes London to Paris route.

Output

Each result contains:

FieldTypeExample
originString"London"
destinationString"Paris"
departureTimeString"07:01"
arrivalTimeString"10:17"
durationString"2h 16m"
priceNumber49.00
currencyString"EUR"
operatorString"Eurostar"
changesNumber0
urlStringFull route page URL
scrapedAtStringISO 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

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:

  1. JSON-LD ItemList with TrainTrip items
  2. HTML timetable rows (departure time, arrival time, duration columns)
  3. 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.