Transport for Switzerland

API

Official Open Data API for Swiss Public Transport

Visit Website

Overview

The Transport for Switzerland API provides official open data for Swiss public transport systems, including schedules, routes, stop details, and real-time updates (delays, cancellations). It features RESTful endpoints with JSON responses, enabling developers to integrate journey planning, stop monitoring, and route visualization into apps or services. Use cases include commuter tools, tourist travel apps, logistics solutions, and transit analytics platforms. Backed by Swiss Federal Railways and regional providers, it ensures reliable access to standardized, up-to-date transport data.

Example Integration (JavaScript)

script.js JS

fetch('https://opentransportdata.swiss/en/')
  .then(res => res.json())
  .then(data => console.log(data))
  .catch(err => console.error(err));

Key Features

  • RESTful API
  • JSON Responses
  • Real-time Updates
  • Multi-modal Transport Data
  • Official Open Data Source

Frequently Asked Questions

? Is Transport for Switzerland API free to use?

Yes, it is free for both non-commercial and commercial use, though registration for an API key is mandatory.

? Does it require an API Key?

Yes, users need to register on the official website to obtain an API key for accessing the API endpoints.

? What is the response format?

The API primarily returns data in JSON format, which is compatible with most development frameworks and tools.

Top Alternatives

SBB Mobile API Search Google
DB Open Data API (Germany) Search Google
RATP Open Data (France) Search Google

People Also Ask about Transport for Switzerland

Transport for Switzerland vs SBB Mobile APITransport for Switzerland vs DB Open Data API (Germany)Transport for Switzerland vs RATP Open Data (France) Transport for Switzerland 2025 review

Tool Info

Pricing Free
Category Transportation
Platform Public API

Pros

  • Official & Reliable Data
  • Covers All Swiss Transit Modes
  • Comprehensive Scheduling & Real-Time Info

Cons

  • Requires API Key Registration
  • Possible Rate Limits
  • Documentation Available in Multiple Languages

More Transportation Tools