Skip to main content
SNCF logo
  • Category: developer tools
  • Auth: API_KEY
  • Composio-managed OAuth available? N/A
  • Tools: 9
  • Triggers: 0
  • Slug: SNCF
  • Version: 00000000_00

Tools

Slug: SNCF_FIND_NEARBY_PLACESFind SNCF stations, stops, or points of interest near a geographic coordinate.

Input Parameters

integer
Maximum results in this page.
number
required
WGS84 latitude from -90 to 90.
number
required
WGS84 longitude from -180 to 180.
string
Coverage region; use ‘sncf’ for the SNCF passenger network.
string ("stop_area" | "stop_point" | "poi")
Single nearby object type; stop_area represents passenger stations.
integer
Positive search radius in metres.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: SNCF_GET_SERVICE_STATUSGet SNCF network service disruptions and affected lines, stations, or vehicle journeys for a time window. Returns one page; pass next_cursor back to continue.

Input Parameters

integer
Affected-object expansion depth from 0 to 3.
integer
Reports per page.
string
Beginning of the disruption window in compact YYYYMMDDTHHMMSS format.
string
End of the disruption window in compact YYYYMMDDTHHMMSS format.
string
Coverage region; use ‘sncf’ for the SNCF passenger network.
string
Opaque continuation returned by a previous call; omit for the first page.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: SNCF_GET_STATION_BOARDGet upcoming departures or arrivals for an SNCF station, including scheduled and realtime times and disruption context.

Input Parameters

integer
Maximum station-board entries to request.
string
Coverage region; use ‘sncf’ for the SNCF passenger network.
string ("departures" | "arrivals")
Whether to return trains leaving or reaching the station.
string
required
A stop_area station ID returned by SNCF_SEARCH_PLACES.
string
Start of the local time window in compact YYYYMMDDTHHMMSS format.
string ("realtime" | "base_schedule")
Use realtime for live running information or base_schedule for planned times.
string ("all" | "forward" | "backward")
Optional direction grouping filter.
integer
Time window in seconds.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: SNCF_GET_TRANSPORT_OBJECTGet details for one SNCF network, line, route, station, stop, mode, company, or vehicle journey by canonical ID.

Input Parameters

integer
Related-object expansion depth from 0 to 3.
string
required
Canonical ID returned by SNCF search or list tools.
string
Coverage region; use ‘sncf’ for the SNCF passenger network.
string ("networks" | "lines" | "routes" | "stop_points" | "stop_areas" | "commercial_modes" | "physical_modes" | "companies" | "vehicle_journeys")
required
Whitelisted collection containing the object.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: SNCF_LIST_COVERAGEGet the SNCF transport-data coverage region and its current production horizon.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: SNCF_LIST_TRANSPORT_OBJECTSBrowse one supported SNCF transport-object collection, such as lines, networks, routes, stations, or vehicle journeys.

Input Parameters

integer
Related-object expansion depth from 0 to 3.
integer
Items per page.
string
Coverage region; use ‘sncf’ for the SNCF passenger network.
string ("networks" | "lines" | "routes" | "stop_points" | "stop_areas" | "commercial_modes" | "physical_modes" | "companies" | "vehicle_journeys")
required
Whitelisted collection to browse; stop_areas are passenger stations.
string
Opaque continuation returned by a previous call; omit for the first page.
string ("realtime" | "base_schedule")
Optional schedule source, mainly useful for vehicle_journeys.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: SNCF_PLAN_JOURNEYPlan SNCF train journeys between two station/place IDs or coordinates for a requested departure or arrival time.

Input Parameters

string
Local journey time in compact YYYYMMDDTHHMMSS format, interpreted in the region timezone.
string
required
Destination place ID from SNCF_SEARCH_PLACES, or WGS84 ‘longitude;latitude’.
string
Coverage region; use ‘sncf’ for the SNCF passenger network.
string
required
Origin place ID from SNCF_SEARCH_PLACES, or WGS84 ‘longitude;latitude’.
boolean
Request wheelchair-accessible journey constraints when true.
integer
Maximum journey options to request (1-20).
integer
Optional maximum number of transfers (0-10).
string ("standard" | "slow_walker" | "fast_walker" | "luggage" | "wheelchair")
Traveler profile used for walking and transfer calculations.
string ("realtime" | "base_schedule")
Use realtime for current operations or base_schedule for the published timetable.
string ("departure" | "arrival")
Whether datetime is the desired departure or arrival time.
integer
Optional maximum total journey duration in seconds (60-172800).

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: SNCF_SEARCH_PLACESFind SNCF stations, addresses, administrative areas, or points of interest by name and return IDs usable for journeys and station boards.

Input Parameters

string
Optional WGS84 ‘longitude;latitude’ used only to rank results by proximity.
integer
Related-object expansion depth from 0 to 3.
integer
Maximum number of autocomplete results to request.
string
required
Place or station name to search for, such as ‘Paris Gare de Lyon’.
string
Coverage region; use ‘sncf’ for the SNCF passenger network.
string ("stop_area" | "address" | "administrative_region" | "poi")
Single result type to return; stop_area is the best choice for train stations.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not
Slug: SNCF_SEARCH_TRANSPORT_OBJECTSSearch SNCF networks, modes, lines, routes, stations, or stop points by name and return canonical transport-object IDs.

Input Parameters

integer
Related-object expansion depth from 0 to 3.
string
required
Name or code to autocomplete.
string
Coverage region; use ‘sncf’ for the SNCF passenger network.
string ("network" | "commercial_mode" | "line" | "route" | "stop_area" | "stop_point")
Optional single transport-object type to return.

Output

string
required
Data from the action execution
string
Error if any occurred during the execution of the action
boolean
required
Whether or not the action execution was successful or not