SNCF Train Price Scraper — TGV INOUI, OUIGO, TER, Intercités avatar

SNCF Train Price Scraper — TGV INOUI, OUIGO, TER, Intercités

Pricing

from $5.00 / 1,000 results

Go to Apify Store
SNCF Train Price Scraper — TGV INOUI, OUIGO, TER, Intercités

SNCF Train Price Scraper — TGV INOUI, OUIGO, TER, Intercités

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.

Pricing

from $5.00 / 1,000 results

Rating

0.0

(0)

Developer

Adrien

Adrien

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

9 days ago

Last modified

Share

🚄 SNCF Train Price Scraper — TGV INOUI, OUIGO, TER, Intercités

Retrieve French train schedules and official fare brackets for any route in France. Covers TGV INOUI, OUIGO, TER, Intercités, Lyria, and Eurostar via the official SNCF API.

What data do you get?

For each journey found, the scraper returns:

  • Schedule: departure/arrival times, duration, number of transfers
  • Train details: carrier (TGV INOUI, OUIGO, TER...), train number, segments with connections
  • Official fare brackets: min/max price from SNCF Open Data (e.g. €16–€99 for Paris→Lyon)
  • CO2 emissions: grams of CO2 per journey (official SNCF data)
  • Metadata: search date, days before departure, data attribution

⚠️ Note on pricing: The SNCF API provides schedules and official fare ranges, not real-time dynamic ticket prices. The official_min_price_eur and official_max_price_eur fields give you the official tariff brackets for each origin-destination pair.

How to get an SNCF API key

  1. Go to numerique.sncf.com/startup/api
  2. Create a free account
  3. You get 90,000 API calls/month for free
  4. Copy your API key and paste it in the sncfApiKey field

Example input

{
"routes": [
{ "from": "Paris", "to": "Lyon", "date": "2026-04-15" },
{ "from": "Marseille", "to": "Bordeaux" }
],
"sncfApiKey": "YOUR_SNCF_API_KEY",
"maxResults": 10,
"enrichWithOfficialFares": true
}

If date is omitted, tomorrow's date is used automatically.

Example output

{
"departure_station": "Paris - Gare de Lyon - Hall 1 & 2",
"departure_city": "Paris",
"arrival_station": "Lyon Part Dieu",
"arrival_city": "Lyon",
"departure_time": "2026-04-15T10:00:00.000Z",
"arrival_time": "2026-04-15T11:56:00.000Z",
"duration_minutes": 116,
"price_eur": null,
"official_min_price_eur": 16,
"official_max_price_eur": 99,
"carrier": "TGV INOUI",
"train_type": "Train grande vitesse",
"train_number": "6607",
"transport_mode": "train",
"nb_transfers": 0,
"co2_grams": 923,
"segments": [
{
"departure_station": "Paris - Gare de Lyon - Hall 1 & 2",
"arrival_station": "Lyon Part Dieu",
"carrier": "TGV INOUI",
"train_number": "6607",
"duration_minutes": 116
}
],
"source": "sncf",
"search_date": "2026-04-15",
"data_attribution": "Données tarifs et gares : SNCF Open Data (ressources.data.sncf.com) — Licence ODbL"
}

Supported cities

The scraper supports any French city or station served by SNCF. Popular routes are pre-mapped for instant resolution:

Paris, Lyon, Marseille, Bordeaux, Lille, Toulouse, Nantes, Strasbourg, Rennes, Montpellier, Nice, Grenoble, Annecy, Dijon

For other cities, the scraper automatically resolves station names via the SNCF API.

Use cases

  • Travel comparison apps: get train schedules and fare ranges for route planning
  • Business travel tools: find fastest connections between French cities
  • Price monitoring: track official fare brackets over time
  • Data journalism: analyze French rail network coverage and pricing
  • Academic research: CO2 emissions data for transport studies

Data sources & attribution

This scraper uses the official SNCF Navitia API for schedules and the SNCF Open Data portal (ressources.data.sncf.com) for fare brackets and station data, published under the Open Database License (ODbL).

Rate limits

The scraper respects SNCF API rate limits with configurable delays between requests (default: 1 second). The free SNCF API tier allows 90,000 calls/month.