Overview
The CTS (Compagnie des Transports Strasbourgeois) API provides real-time transit data for the Strasbourg, France public transport network including trams and buses. You need an API key from CTS to access live arrival predictions and vehicle positions. It is ideal for developers building local transit apps for the Strasbourg region.
Beginner Tip
Request an API key directly from CTS via their developer portal at https://api.cts-strasbourg.eu/. The API follows SIRI-Lite standards, so queries use XML-like parameters — use the Swagger UI in the docs to understand the request format before writing code.
Available Data
The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.
Example Response
Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.
{
"route": "Line 1",
"origin": "Station A",
"destination": "Station B",
"departure": "08:30",
"arrival": "09:15",
"status": "On Time",
"delays_min": 0
} Field Reference
MonitoringRef The stop reference identifier used to query real-time arrivals. MonitoredVehicleJourney.LineRef The line identifier for the vehicle journey (e.g., tram line A or bus line 10). MonitoredVehicleJourney.DestinationName The final destination displayed on the vehicle for this journey. MonitoredCall.ExpectedArrivalTime Real-time predicted arrival time at the monitored stop in ISO 8601 format. MonitoredCall.AimedArrivalTime Scheduled (timetabled) arrival time at the stop, for comparison with the real-time prediction. Implementation Example
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
const url = "https://api.cts-strasbourg.eu/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
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
Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.
Metadata Score Breakdown
Estimated from metadata — endpoint not independently tested
Metadata estimate · endpoint not independently tested
Technical Specifications
Related Tags
Similar APIs
View All →AIS Hub
AIS Hub aggregates real-time Automatic Identification System data from a global network of shore-based receivers to track marine vessels.
AZ511
AZ511 is the official Arizona Department of Transportation traffic data API providing real-time road conditions, incidents, and camera information for Arizona highways.
Bay Area Rapid Transit
⭐ Beginner's PickThe BART API provides real-time train arrival predictions, station information, and service advisories for the Bay Area Rapid Transit system in the San Francisco Bay Area.
Boston MBTA Transit
⭐ Beginner's PickThe Boston MBTA Transit API gives you real-time data for the Massachusetts Bay Transportation Authority, including train, bus, and ferry arrivals.
Transport for Sweden
Transport for Sweden (Trafiklab) is a developer platform providing access to public transport data across all of Sweden.