PASAR API

🇨🇭 transport.opendata.ch ~ Swiss transit connections API

← directory
Opendata.chTravel & mobilitytier: openauth: no authpricing: freeverified 2026-07-05

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

Call it

curl 'https://transport.opendata.ch/v1/'

AI prompt

I'm building an app using a free Switzerland API (no auth needed).

API: transport.opendata.ch ~ Swiss transit connections API
Provider: Opendata.ch
Endpoint: GET https://transport.opendata.ch/v1/
It returns JSON (live data).

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 this and build a simple page that displays it nicely. Include basic production safeguards for errors, empty responses, schema changes, caching, and rate limits.

Related Travel & mobility APIs

LTA DataMall ~ Singapore real-time bus, train & traffic dataCarpark Availability (data.gov.sg) ~ live HDB carpark lotsTraffic Images (data.gov.sg) ~ live Singapore road camerasAviationstack Real-Time Flight DataFlightAware AeroAPIBooking.com Demand APIViator Partner APISkyscanner Travel APIKlook Open APIAmadeus Self-Service APIs ~ flight search, booking, hotels & travel data