Skip to content
Maua.Culturewire

SNCF

French trains: stations, departures, journeys and disruptions

Data and analyticsCatalog1 tool · 0 triggers

Managed auth

Authentication

Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.

  • API key

    Your users enter

    • SNCF API tokenSecretRequired

    Where to find them

    1. Open the SNCF developer token page (button below) and request the free token with your email.
    2. Copy it here as is. Free access allows 5,000 requests per day and 150,000 per month. The API is Navitia's and everything is under the sncf “coverage” (/coverage/sncf/…).

    Get credentials (opens in a new tab)

Tools (1)

  • SNCF API requestSNCF_SEND_REQUEST

    Authenticated call to the SNCF API (https://api.sncf.com/v1). Any endpoint of the API is allowed. Dates use the format YYYYMMDDTHHMMSS. Examples: GET /coverage/sncf/places?q=Paris+Gare+de+Lyon (searches stations and places and returns their ids), GET /coverage/sncf/journeys?from={origin_id}&to={destination_id}&datetime=20261020T080000&count=3 (journeys), GET /coverage/sncf/stop_areas/{station_id}/departures?from_datetime=20261020T080000&count=10 (departures; also /arrivals), GET /coverage/sncf/disruptions?count=10 (disruptions), GET /coverage/sncf/lines?count=10 (lines). Pagination: count and start_page.

    Required scopes

    No scopes required

    Input

    SNCF API request input
    NameTypeDescription
    methodstringHTTP methodOne of: GET, POST, PUT, PATCH, DELETEDefault: "GET"
    pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link)
    queryobjectQuery string parameters
    bodyunknownJSON body
    formobjectBody as application/x-www-form-urlencoded instead of JSON
    body_base64stringBinary body, base64 (at most 960000 characters)
    content_typestringContent-Type of body_base64
    headersobjectExtra headers such as Accept. Authentication is added automatically.