Travel
Swiss Federal Railways (SBB)
This API provides departure, delay, and cancellation data from the SBB.
4
Endpoints
—
Status
—
Latency
CODE EXAMPLES
JavaScript (Fetch)
fetch('https://data.sbb.ch/api/explore/v2.1/catalog/datasets/ist-daten-sbb/records?limit=20&refine=verkehrsmittel_text%3A%22IC%22&refine=ankunftsverspatung%3A%22true%22', {
method: 'GET',
headers: {},
})
.then(response => response.json())
.then(data => console.log(data));cURL
curl -X GET 'https://data.sbb.ch/api/explore/v2.1/catalog/datasets/ist-daten-sbb/records?limit=20&refine=verkehrsmittel_text%3A%22IC%22&refine=ankunftsverspatung%3A%22true%22'Swiss Federal Railways (SBB)
0.0%
TRAVEL
This API provides departure, delay, and cancellation data from the SBB.
PERFORMANCE TELEMETRY
RATE LIMITS
API TESTING INTERFACE
READY
SIGN IN TO EXECUTE TEST
Please sign in to test API endpoints
RESPONSE TELEMETRY
Execute API test to view telemetry data