VOOZH about

URL: https://apify.com/studio-amba/trainline-scraper

⇱ Trainline Scraper API - European Train Routes & Prices Β· Apify


πŸ‘ 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

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

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

  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

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:

  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.

You might also like

Rome2Rio Scraper | Multi-Modal Travel Routes

parseforge/rome2rio-scraper

Get travel routes between any two cities from Rome2Rio with flight, train, bus, ferry, and car options including duration, price, frequency, operators, and segment details. Power travel apps, itinerary tools, ground transport research, and transit data pipelines worldwide.

SNCF Train Ticket and Connection Scraper

jindrich.bar/sncf-train-ticket-scraper

Scrape live SNCF train connections, schedules, ticket prices, transfers, delays, and fares across France and Europe. Extract structured SNCF timetable data for travel apps, price monitoring, analytics, and AI agents.

πŸ‘ User avatar

JindΕ™ich BΓ€r

4

5.0

SNCF Train Price Scraper β€” TGV INOUI, OUIGO, TER, IntercitΓ©s

dr1ms/sncf-train-price-scraper

Scrape French train schedules and official price ranges from SNCF. Returns structured JSON with journeys, durations, segments, CO2 emissions, and official fare brackets. Covers TGV INOUI, OUIGO, TER, and IntercitΓ©s.

JustETF - ETF Extractor (ISIN, TER, Returns, Holdings, Risk)

giovannibiancia/justetf---etf-extractor-isin-ter-returns-holdings-risk

Extract comprehensive ETF and fund data from JustETF. Get ISIN, TER, returns (1M to MAX), top holdings, sector/country allocation, volatility, Sharpe ratio, max drawdown, and yearly performance. Perfect for portfolio analysis and financial research. Supports 2,800+ European UCITS ETFs.

πŸ‘ User avatar

Giovanni Bianciardi

22

Doctolib

anchor/Doctolib

Scraping Doctolib is now super easy and cheap! Extract phones, names, contact, timings, image and addresses of medics, doctors, hospitals... Best part : you can even customize what info to extract from Doctolib!

Irish Rail Scraper - Train Fares & Schedules

studio-amba/irish-rail-scraper

Scrape train schedules, fares, and real-time data from Irish Rail (irishrail.ie). Extract Intercity, DART, Commuter, and Enterprise routes across Ireland. No login required.

SNCF Scraper - French Train Schedules & Prices

studio-amba/sncf-scraper

Scrape train schedules, prices, and availability from SNCF Connect (sncf-connect.com). Extract TGV, TER, and Intercites routes across France and Europe. No login required.

IRCTC Train Data Scraper

scrapingshark/irctc-train-data-scraper

The IRCTC Train Data Scraper is an actor designed to automate the extraction of real-time train-related data from the Indian Railway Catering and Tourism Corporation (IRCTC) website. It fetches information such as trains between stations, seat availability, fare details, train routes and more.

32

Trip.com Scraper

one-api/trip-com-scraper

Scrape Trip.com hotels, train routes, and attractions worldwide. Hotels: autocomplete a city, search by location / coordinates / Trip.com URL, get full hotel details by ID or URL. Trains: search routes between cities + per-train details. Attractions: search things-to-do by city + per-POI details.