SNCF Scraper - French Train Schedules & Prices avatar

SNCF Scraper - French Train Schedules & Prices

Pricing

Pay per usage

Go to Apify Store
SNCF Scraper - French Train Schedules & Prices

SNCF Scraper - French Train Schedules & Prices

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.

Pricing

Pay per usage

Rating

0.0

(0)

Developer

Studio Amba

Studio Amba

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

3 days ago

Last modified

Categories

Share

How to scrape SNCF data

SNCF Scraper extracts train schedules, ticket prices, availability, and journey details from SNCF Connect — the official booking platform of France's national railway operator. With 40 million monthly visits, SNCF Connect is the primary source for French domestic and European train travel data.

This Actor uses Playwright to navigate the SNCF Connect search interface, extract TGV INOUI, TER, Intercites, and OUIGO train results, and return structured data ready for analysis, price monitoring, or integration with your travel platform. No login or cookies required.

Why use SNCF Scraper?

  • Price monitoring — Track ticket prices across routes and dates to find the best deals or monitor fare trends over time.
  • Travel research — Compare routes, durations, and train types (TGV, TER, OUIGO) for any French destination.
  • Market intelligence — Collect structured pricing data for competitive analysis in the travel industry.
  • Availability tracking — Monitor seat availability for popular routes and get alerts when seats open up.
  • Carbon footprint analysis — Extract CO2 emission data for eco-conscious travel planning.
  • API access — Get SNCF train data via Apify API, webhooks, or scheduled runs. Integrate with Zapier, Make, Google Sheets, or your own applications.

What data can you extract from SNCF Connect?

FieldDescription
originDeparture station or city
destinationArrival station or city
departureTimeDeparture time (HH:mm)
arrivalTimeArrival time (HH:mm)
durationTotal travel time (e.g., 1h 56min)
trainTypeService type (TGV INOUI, TER, OUIGO, Intercites)
priceTicket price in EUR
currencyCurrency code (EUR)
travelClassSeat class (1st, 2nd)
availableSeatsAvailability status
carrierOperating company (SNCF, Trenitalia, etc.)
co2EmissionCarbon footprint per journey
changesNumber of transfers
urlSource URL
scrapedAtTimestamp of extraction

How to use SNCF Scraper

  1. Go to the SNCF Scraper input page.
  2. Enter your origin city (e.g., Paris) and destination city (e.g., Lyon).
  3. Optionally set a departure date in YYYY-MM-DD format. If left empty, defaults to 14 days from today.
  4. Set the number of passengers (default: 1).
  5. Configure max results to limit the number of train results returned.
  6. Click Start and wait for the run to complete.
  7. Download your data from the Dataset tab in JSON, CSV, Excel, or HTML format.

Input parameters

ParameterTypeDefaultDescription
originstringParisDeparture city name
destinationstringLyonArrival city name
departureDatestring14 days from todayTravel date (YYYY-MM-DD)
passengersinteger1Number of adult passengers (1-9)
maxResultsinteger50Maximum results to return
proxyConfigurationobjectResidential FRProxy settings (residential recommended)

Example input

{
"origin": "Paris",
"destination": "Marseille",
"departureDate": "2026-07-15",
"passengers": 2,
"maxResults": 30
}

Output example

{
"origin": "Paris",
"destination": "Lyon",
"departureTime": "07:23",
"arrivalTime": "09:19",
"duration": "1h 56min",
"trainType": "TGV INOUI",
"price": 29.0,
"currency": "EUR",
"travelClass": "2nd",
"availableSeats": "Available",
"carrier": "SNCF",
"co2Emission": "2.4 kg",
"changes": 0,
"url": "https://www.sncf-connect.com/app/home/search",
"scrapedAt": "2026-06-09T10:30:00.000Z"
}

How much does it cost to scrape SNCF Connect?

A typical run searching one route returns 10-30 train results and costs approximately $0.10-0.25 in Apify platform credits, depending on proxy usage and whether results load quickly. The Actor uses Playwright (browser-based) which consumes more compute than HTTP-only scrapers, but this is necessary because SNCF Connect is a React single-page application.

To keep costs down:

  • Set maxResults to only what you need.
  • Use a specific date rather than leaving it to default.
  • Schedule runs during off-peak hours for faster loading.

Supported routes

SNCF Connect covers all French domestic rail routes and many European connections:

  • High-speed (TGV INOUI) — Paris-Lyon, Paris-Marseille, Paris-Bordeaux, Paris-Strasbourg, Paris-Lille, Paris-Nantes, Paris-Rennes, Paris-Montpellier, and more.
  • Budget (OUIGO) — Low-cost TGV services on major routes.
  • Regional (TER) — Local and regional connections across all French regions.
  • Intercites — Medium-distance routes not served by TGV.
  • International — Paris-Brussels, Paris-London (Eurostar), Paris-Geneva, Paris-Milan, and other cross-border services.

Tips for best results

  • Use residential proxies — SNCF Connect uses DataDome anti-bot protection. Residential proxies with FR country code provide the best success rate.
  • Set realistic dates — SNCF typically shows results for dates up to 3-4 months in advance. Past dates or dates too far in the future will return no results.
  • French city names work best — While the Actor handles English city names, using French names (e.g., "Marseille" instead of "Marseilles") improves autocomplete matching.
  • Run during business hours (CET) — SNCF Connect tends to respond faster during European daytime hours.

Integrations

Connect SNCF Scraper to your workflow with:

  • Apify API — Call programmatically from any language.
  • Webhooks — Get notified when a run completes.
  • Scheduled runs — Monitor prices daily or weekly.
  • Zapier / Make — No-code integration with 5000+ apps.
  • Google Sheets — Export results directly to a spreadsheet.

FAQ

This Actor extracts publicly available train schedule and pricing information that any visitor can see on sncf-connect.com. No login, authentication, or account is required. Always ensure your use case complies with applicable laws and SNCF Connect's terms of service.

Why did my run return zero results?

SNCF Connect uses DataDome anti-bot protection which may block requests. Make sure you are using residential proxies with FR country code. Also verify that your origin and destination city names are valid and your departure date is in the future.

Can I scrape multiple routes in one run?

Currently the Actor searches one route per run. To scrape multiple routes, trigger separate runs with different origin/destination combinations using the Apify API or scheduler.

How often is pricing data updated?

SNCF updates prices dynamically based on demand. For accurate price tracking, schedule runs at consistent times (e.g., daily at 8:00 AM CET).

Support and feedback

If you encounter issues or have feature requests, please open an issue in the Issues tab. For custom scraping solutions, reach out via the Actor's page on the Apify Store.