FR | EN

API SNCF

Discover

Discover the API’s endpoints

  • Train
    journeys

    Calculate a multi-train itinerary that goes through multiple train stations.

  • Scheduled
    stops

    Look up scheduled stops
    in each station

  • Timetables

    Consult a line’s scheduled route (and stops)

  • Autofill
    train station names

    Automatically search for stations using a string of characters

Get your authentication key

DEVELOPER
€0 / month
ENTERPRISE
Tailored to your needs
CALLS
90,000 / month
3,000 / day maximum
Custom
Developer resources
Documentation
FAQ
Support
Developer resources
Documentation
FAQ
Priority support
Sign up Contact us

Test the API

Start to make requests as soon as you get your authentication key

How do I use my authentification key ?

  • 1. API Access : https://api.sncf.com/v1
  • 2. Authenticate your Key
    • Copy-paste your key in the field
    • Leave the field blank
    • or insert your key directly into the URL

How do I test the api ?

To obtain id of the city of Paris:

GET : https://api.sncf.com/v1/coverage/sncf/places?q=Paris

To obtain an itinerary from Paris to Lyon (using id obtained from the call above for "from" and "to" parameters) :

GET : https://api.sncf.com/v1/coverage/sncf/journeys?from=admin:fr:75056&to=admin:fr:69123&datetime=20170426T020842