PASAR API
Community-run REST/JSON API (backed by search.ch timetable data) with CORS enabled; fair-use rate limits apply and it is not an official SBB endpoint.
View docs ↗ More Travel & mobility APIs All Switzerland APIscurl --fail-with-body --location --max-time 30 'https://transport.opendata.ch/v1/'
I'm building an app using a public Switzerland API (no private credentials needed). API: transport.opendata.ch ~ Swiss transit connections API Provider: Opendata.ch Endpoint: GET https://transport.opendata.ch/v1/ Response format: JSON Source: Opendata.ch (https://transport.opendata.ch/docs.html) Source type: Official public feed Endpoint type: Direct public JSON endpoint Integration difficulty: Copy-paste ready Last checked: 2026-07-05 Production caveat: Still handle downtime, changing fields, empty responses, and rate limits before shipping user-facing alerts. Help me fetch and display this data. Follow the documented format and handle errors, empty responses, stale coverage, caching and rate limits.