Trainline Scraper for Rail Fares, Times and Operators

Our Trainline scraper reads each route as Trainline lays it out - Advance, Off-Peak and Anytime fares, journey times, changes and operators - for UK and European trips.

Plans from €169 a month · Free project assessment · Reply within 1 business day

CSV · Excel · JSON · XML · FTP · SFTP · Amazon S3 · Google Cloud

thetrainline.com
Trainline Scraper for Rail Fares, Times and Operators
thetrainline.comwhat you get
Typical fields for travel sites
propertycitycheck_inroom_typepriceavailablerating
Delivery

API, JSON feed or CSV, XLSX and JSON files

Schedule

One-time, monthly, weekly, daily or 3 times a day

How we scrape Trainline for you

  1. You send

    Trainline pages, filters, fields and a schedule

  2. We run the scrapers

    Built, monitored and repaired by our team

  3. You receive the data

    API, JSON feed or CSV, XLSX and JSON files

You send the journeys that matter: origin and destination pairs, travel dates or a rolling window such as the next eight weeks, outbound only or return, the passenger profile and any railcard. We build the crawler, run the searches and repair it when Trainline changes its pages. Every fare comes from a search with stations and dates; no ticket is booked and no passenger details are entered.

Search results load with scripts, so rendering, pacing, proxy rotation and CAPTCHA handling are part of the service. Runs are one-off or scheduled - daily for fare tracking, weekly for timetable checks - and each delivery comes with field documentation.

Trainline data we extract

Trainline gives every journey a route page under train-times, named after the two places, and a search that lists the individual trains for a date. We read both and keep the search date on every row, because the same seat costs a different amount next week.

  • Route summarydeparture and arrival stations (London Euston and Manchester Piccadilly, Paris Gare du Nord and Amsterdam Centraal), distance in miles and kilometres, fastest and average journey time, trains per day, whether direct trains run, first train and last train.
  • Servicesdeparts, arrives, duration and the number of changes for each train on the searched date, with the operator running it.
  • Faresthe ticket types Trainline lists for a journey: Advance, Off-Peak, Super Off-Peak, Anytime, Return, Open Return and Flexible, each with its price and the note on what the price covers, such as one-way, adult and excluding the booking fee.
  • ClassesStandard, Standard Premium and First Class on UK routes; on European routes the carrier's own names, for example Eurostar Standard, Plus and Premier.
  • Discountsthe railcard applied to a search, GroupSave fares for groups of three to nine, and split tickets where Trainline offers them.
  • Operatorsthe train and bus operators listed for a route, from Avanti West Coast on London to Manchester to a mix of rail and coach companies between Paris and Amsterdam.
  • Journey reviewsthe passenger score and review count where a route page shows them; reviewer names are left out.

Each row also carries the travel date, currency and the route URL, so the file joins cleanly to your own station or corridor list.

Trainline data we extract
Trainline price tracker and fare history

Trainline price tracker and fare history

A single extract tells you today's fare. A schedule tells you how it got there. Advance tickets go on sale weeks ahead with limited availability, and Trainline notes that most UK train companies raise prices as the departure date approaches, so the fare for a fixed train moves before it leaves. Running the same journeys every day against fixed travel dates turns the price column into a price history per train and ticket type, showing when Advance stepped up and what was left on the day of travel.

Coverage can also go wider than your list. Trainline links popular journeys, station pages and train company pages, each pointing to the routes and classes an operator runs, so we can start from an operator or a city and collect every route page behind it. On routes where coach companies run next to the trains, the route page lists them among the operators, and we keep coach options as separate rows with their operator. For commuter studies the same crawler can read season tickets offered on a route.

About Trainline and its route pages

Source
thetrainline.com
Category
travel sites
Delivery
API, JSON feed, CSV, XLSX
Plans
From €169 a month
Get a quote

Trainline is run by Trainline.com Limited, registered in England and Wales with its office in London, and sells train and coach tickets for travel in the UK and across Europe. It is a retailer rather than an operator: one search returns trains from different companies side by side, which is why its pages are a convenient place to compare a corridor.

The site is organised in a few layers that matter for data. UK trains have train times, live train times, a journey planner, season tickets, group tickets and split tickets. European trains are grouped by country - Italy, Spain, Germany, France, Belgium - and by train company. Route pages follow one template: a summary table, a sample timetable, ticket options, classes, onboard services and station notes, and on many UK routes a passenger rating.

Trainline also runs language versions - English for the UK and the US, German, French, Italian, Spanish, Dutch, Portuguese, Danish, Norwegian and Swedish - and lets a visitor switch between currencies including GBP, EUR, CHF, USD and SEK. That explains searches about Trainline showing prices in dollars: the currency is a setting, and we record it with every price on European routes.

25Developers
500+Customers
1.5BPages extracted
15,000+Hours saved for our clients

Trainline scraping plans and pricing

Airplane

€199one-time

Setup fee included

100,000
One-time
Up to 5 days
7 days

Helicopter

€169/ mo

Setup fee €499

250,000
Monthly
Up to 5 days
14 days

Glasses

€229/ mo

Setup fee €499

1,000,000
Weekly
Up to 5 days
30 days

Microscope popular

€349/ mo

Setup fee €499

2,000,000
Daily
Same day
60 days

DNA

€549/ mo

Setup fee €799

3,000,000
3 times daily
Same day
90 days

Delivery: CSV, JSON or XLSX files, our API or a JSON feed. MCP server on request.

Full plan details

Why scrape Trainline fares and timetables

Rail fares in Britain and on European corridors depend on ticket type, time of day and how early you buy. Trainline puts those variables on one page per route, which makes it a practical source for anyone who has to price a journey before it is taken.

  • Travel managementcompanies that set a rail policy compare Advance and Anytime fares on their own commuter and client routes, and see how much earlier booking saves in practice.
  • Rail versus air and carTrainline route pages compare train, car and plane; with fares and journey times per corridor, a travel or sustainability team can decide where rail replaces a flight.
  • Coach and rail competitioncoach companies and rail operators watch rail prices and frequency on the corridors they serve.
  • Tourism and mobility researchtrains per day, first and last train and the number of changes describe how well a city is connected, route by route.
  • Fare release analysisdaily snapshots show when Advance quotas sell out ahead of holidays and events.

About ScrapeIt

ScrapeIt is a managed web scraping service: we build, run and maintain the crawlers, and you receive the dataset. Transport pricing is a large part of our travel work - fares that exist only after a search with places and dates, change daily and differ by ticket type. For Trainline we agree the routes and dates with you, start with a free assessment and a sample, then deliver to your schedule. Plans start from EUR 169 a month, or EUR 199 for a one-time extract.

FAQ

Still unsure? Write to info@scrapeit.io

Do you offer a Trainline API for fares and train times?

Yes. The ScrapeIt Trainline API returns route, departure and arrival time, changes, operator, ticket type and fare as JSON from an endpoint we host, refreshed on the schedule you set. The same rows also come as CSV or XLSX files, a JSON feed, or a load into your database.

Is it legal to scrape Trainline?

Yes. Route pages, timetables and the fares returned for a search with stations and dates are public on Trainline, open to any visitor without an account. We collect only publicly available data - everything a visitor can see on Trainline - and we collect it legally. No ticket is booked and no passenger details are entered.

Do Trainline prices change, and do they go up on the day?

They do. Advance fares have limited availability and tend to get dearer as the departure date approaches, so on the day of travel the cheapest Advance fares are often gone and Off-Peak or Anytime is what remains - the fare Trainline's own savings footnote compares Advance with. A daily run on fixed travel dates records each step.

Can the data cover European routes and other currencies?

Yes. Trainline sells rail and coach journeys across Europe, and its route pages list each carrier with its own class names, such as Eurostar Standard, Plus and Premier. We collect the price in the currency you choose - GBP by default, EUR or another of the currencies Trainline offers - and store that currency with every fare.

Which Trainline ticket prices can you collect, including railcard fares?

Every ticket type a search returns: Advance, Off-Peak, Super Off-Peak, Anytime, return and flexible fares, by class. If you name a railcard, we run the search with it applied, so you see the discounted fare next to the full one; Trainline states that National Railcards take a third off eligible tickets.

How it works

  1. 1

    Make a request

    You share your needs, expectations, and desired timeframe. We'll suggest the best solution based on your request and budget.

  2. 2

    We configure the crawlers

    Our specialists configure the crawlers and extract a sample dataset for your review before proceeding with the full-scale extraction.

  3. 3

    Collect and deliver

    Once you approve the sample, we launch the project and start full data collection. We gather, filter, and structure the data for easy use, delivering it on time in your preferred format.

  4. 4

    Maintain and support

    Our team manages ongoing processes, monitors website changes, and supports all data extraction cycles. We can also help integrate data into your systems or create dashboards to simplify analysis.

Request a quote

Tell us which sites, which fields and how often. A couple of lines is enough to start.

  • We reply within 1 business day
  • A sample dataset before the full run
  • We sign an NDA on request
  • Delivery by API, JSON feed or files
Which sites, which fields, how often. A couple of lines is enough.

This form is protected by Google reCAPTCHA, which loads when you start filling it in; the Google Privacy Policy and Terms of Service apply. If you prefer not to use it, email us at info@scrapeit.io. Privacy & Cookie Policy

We reply within 1 business day. No obligation.

Trainline data from €169/month. Free project assessment, reply within 1 business day.