Railway Transport for France

API

Public API for France’s SNCF Railway Transport Data

Visit Website

Overview

The Railway Transport for France API (powered by SNCF) provides real-time and static data for France’s national rail network. Key endpoints include train schedules, station details (locations, facilities), route information (departure/arrival times, stops), and service disruptions. Responses are formatted in JSON for seamless integration. Use cases include building travel planning apps, journey trackers, or integrating rail data into navigation tools to help users plan trips, check real-time updates, or find nearby stations across France.

Example Integration (JavaScript)

script.js JS

fetch('https://www.digital.sncf.com/startup/api')
  .then(res => res.json())
  .then(data => console.log(data))
  .catch(err => console.error(err));

Key Features

  • RESTful Architecture
  • JSON Response Format
  • Real-time Train Schedules
  • Station & Route Details
  • Service Disruption Alerts

Frequently Asked Questions

? Is the Railway Transport for France API free to use?

It offers a freemium model—free access with limited requests, and paid tiers for higher usage volumes.

? Does it require an API Key?

Yes, you need to register on the SNCF Digital portal to obtain an API key for authentication.

? What is the response format?

All responses are in JSON format, which is widely supported and easy to parse in most programming languages.

Top Alternatives

RATP Open Data API Search Google
Eurostar API Search Google

People Also Ask about Railway Transport for France

Railway Transport for France vs RATP Open Data APIRailway Transport for France vs Eurostar API Railway Transport for France 2025 review

Tool Info

Pricing Freemium
Category Transportation
Platform Public API

Pros

  • Official SNCF Data Source
  • Comprehensive French Rail Coverage
  • Real-time Updates Available
  • Easy Integration with Apps

Cons

  • Requires API Key Registration
  • Rate Limits on Free Tier
  • Documentation Primarily in French
  • Limited to France’s Network

More Transportation Tools