App Logo
sncf-connect.com

SNCF Connect unofficial API: search train journeys and fares

Automatically search train journeys and fares on sncf-connect.com. An unofficial SNCF Connect API for train search: SNCF Connect has no public API for journeys and fares, and this returns them as JSON, programmatically. Search trains between two cities or stations on a given date via SNCF Connect. Returns each journey (times, duration, operator, best price) with all of its fare offers (class, fare name, price, flexibility, full conditions) and whether the fare can be cancelled free of charge. No journeys means no tickets are on sale for that date. Runs only via the local browser extension, not the hosted cloud browser.

Input

date required

Outward date YYYY-MM-DD

origin required

Departure city or station, e.g. 'Turin' or 'Paris Gare de Lyon'

destination required

Arrival city or station, e.g. 'Paris'

Output

date required
origin required
journeys required
destination required

FAQ

An unofficial SNCF Connect API for train search: SNCF Connect has no public API for journeys and fares, and this returns them as JSON, programmatically. Search trains between two cities or stations on a given date via SNCF Connect. Returns each journey (times, duration, operator, best price) with all of its fare offers (class, fare name, price, flexibility, full conditions) and whether the fare can be cancelled free of charge. No journeys means no tickets are on sale for that date. Runs only via the local browser extension, not the hosted cloud browser.
Ask an AI agent connected to Reduck to run reduck/sncf-connect.com/search_journeys, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/sncf-connect.com/search_journeys
You do not need one. "SNCF Connect unofficial API: search train journeys and fares" drives the real sncf-connect.com pages in a browser, so it works whether or not sncf-connect.com offers an API for this.
Required: origin, destination, date.
It returns date, origin, journeys, destination.
No. It only uses pages of sncf-connect.com that are reachable without signing in.
It only reads. It looks things up on sncf-connect.com and changes nothing there.
Ask an AI agent connected to Reduck to run reduck/sncf-connect.com/search_journeys, or run it from a terminal with the Reduck CLI: npx @reduck-ai/cli@latest run --script reduck/sncf-connect.com/search_journeys
It is part of Reduck's official curated catalogue.

Start building not clicking