Transport for Paris, France API

Beginner's Pick Transportation / No Auth Required Beginner HTTP
Free to Use Varies (check documentation)

Overview

The RATP Open Data API provides access to schedule, stop, and network data for Paris public transport, including the Metro, RER, buses, and trams. No API key is required, so you can start experimenting with Parisian transit data immediately. The API follows the ODS (OpenDataSoft) format, making it straightforward to filter and search datasets.

Beginner Tip

Start by browsing the dataset catalog at data.ratp.fr to find the dataset IDs you need, then use those IDs in API requests to fetch records. The search endpoint lets you filter by keyword so you can quickly locate Metro line schedules or bus stop locations.

Available Data

match scores and results
team standings
player statistics
schedule and fixtures
Use case: Integrate ratp open data api data into web and mobile applications

Example Response

JSON Response
{
  "route": "Line 1",
  "origin": "Station A",
  "destination": "Station B",
  "departure": "08:30",
  "arrival": "09:15",
  "status": "On Time",
  "delays_min": 0
}

Field Reference

nhits Total number of matching records found across all pages for the search query.
datasets List of dataset objects returned by a catalog search, each describing a available RATP dataset.
datasetid Unique identifier for a specific dataset, used to construct record-level API queries.
metas.title Human-readable title of the dataset, such as "Positions géographiques des stations du réseau RATP".
records Array of individual data records from a dataset, such as individual Metro stop entries.
fields Key-value pairs of the actual data for a record, such as stop name, coordinates, and line number.

Implementation Example

Request
const url = "http://data.ratp.fr/api/v1/console/datasets/1.0/search/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

SSL handshake or certificate error Some older endpoint URLs use HTTP rather than HTTPS, which may cause security warnings.
Use the HTTPS version of the API base URL (https://data.ratp.fr) to ensure encrypted communication.
"No records found" for a dataset The dataset ID in the URL is incorrect or the dataset has been renamed.
Use the /search/ endpoint to discover current dataset IDs before querying specific records.
Unexpected HTML response instead of JSON The format=json parameter is missing from the request.
Always include format=json in the query string, as the API defaults to HTML for browser-friendly output.

Metadata Score Breakdown

Estimated from metadata — endpoint not independently tested

This score is estimated from observable metadata — HTTPS support, authentication model, declared CORS, and documentation reachability — because the API requires authentication or exposes no publicly testable endpoint. The five-signal breakdown is only shown for live-tested APIs.

Metadata estimate · endpoint not independently tested

Technical Specifications

Auth No Auth
HTTPS NO
CORS UNKNOWN
Category Transportation
Difficulty Beginner
Verified: 2026-04-04

Similar APIs

View All →