API · /swisstransit-api

Swiss Transit API

healthy 4,141 Subscribers

Switzerland's public-transport timetable as an API, powered by the official Swiss open transport service (transport.opendata.ch, built on the search.ch timetable). One of the densest and most punctual transit networks in the world — trains (SBB/CFF/FFS), trams, city and postbuses, boats, funiculars and cable cars — in a single clean API. Find stops, stations and addresses by name with their identifier and coordinates; plan a complete door-to-door journey between any two places with optional via stop, date and time and the option to search by arrival time, getting each connection's departure and arrival times and platforms, total duration in minutes, the number of transfers, the transport products used (for example IC 8 or S 8) and the full leg-by-leg breakdown including any walking sections; and read a station's live departure or arrival board with the line, destination, time, platform and any real-time delay. Ideal for journey-planner and mobility apps, travel tools, logistics and tourism in Switzerland. Place names accept stop names or station ids from the locations endpoint, and times include live delays where available. Data from transport.opendata.ch (Swiss open transport data); covers Switzerland and immediate cross-border connections.

api.oanor.com/swisstransit-api
Get an API key Try in playground → Contact provider

Machine-readable spec so AI agents can integrate this API.

/api/swisstransit-api/openapi.json
/api/swisstransit-api/llms.txt

Discovery: GET /api/index.json lists every API.

Swiss Transit API — live data on the oanor API marketplace

API health

healthy
Uptime
100.00%
Server probes · 24h
Avg latency
337 ms
Server probes · 24h
Subscribers
4,141
active
Total calls
76
last 7 days
status Full status page → · 12 probes/24h

Pricing

Pick a tier — billed monthly, cancel anytime.

Free

Free

  • 595 calls / month
  • 2 requests / second
  • Hard cap (429 above quota, no overage)
  • 595 calls/month
  • 2 req/sec
  • Locations, journeys & boards
  • No credit card
Sign in to subscribe

Starter

€7.10 /month

  • 21,600 calls / month
  • 6 requests / second
  • Hard cap (429 above quota, no overage)
  • 21.6k calls/month
  • 6 req/sec
  • Journey planning
  • Email support
Sign in to subscribe

Pro

€21.50 /month

  • 91,200 calls / month
  • 15 requests / second
  • Hard cap (429 above quota, no overage)
  • 91.2k calls/month
  • 15 req/sec
  • Mobility & travel apps
  • Priority support
Sign in to subscribe

Mega

€59.50 /month

  • 388,000 calls / month
  • 40 requests / second
  • Hard cap (429 above quota, no overage)
  • 388k calls/month
  • 40 req/sec
  • High-volume routing
  • Dedicated SLA
Sign in to subscribe

Built by

Related APIs

Other APIs with overlapping tags.

Swiss National Bank (SNB) FX & Rates API — oanor API marketplace

Swiss National Bank (SNB) FX & Rates API

Live official Swiss monetary data, served straight from the Swiss National Bank's open data portal — no key, nothing cached. The Swiss franc is one of the world's premier safe-haven and reserve currencies, and this exposes the SNB's own published numbers as clean JSON. The rates endpoint returns the SNB foreign-exchange fixing — the monthly-average value in francs of around 25 world currencies (the euro fixed near 0.92 francs in mid-2026), each normalised to the franc value of a single unit. The currency endpoint returns one currency's franc rate with its recent history. The policy-rate endpoint returns the SNB policy rate, the headline interest rate the Swiss National Bank sets to steer the economy, with its history. The saron endpoint returns SARON, the Swiss Average Rate Overnight — the franc benchmark that replaced CHF LIBOR and underpins Swiss financial contracts — with its recent path. Everything is the central bank's own published data, live, nothing stored; figures are monthly. This is the Swiss franc rates-and-FX layer for any forex, treasury, payments or macro app exposed to Switzerland. Distinct from the ECB, Fed, Bank of Canada, Norges Bank, Bank of England, Brazil, Poland and Czech central-bank APIs — this is the franc, the SNB policy rate and SARON. 5 endpoints, no key on our side.

api.oanor.com/snb-api

Transport for London API — oanor API marketplace

Transport for London API

London public transport as an API, powered by the official Transport for London Unified API. Get live line status for the Tube and every other mode (DLR, Overground, Elizabeth line, trams, buses, river bus) with severity and disruption reasons, search any station or stop by name to get its NaPTAN id, modes, lines and coordinates, pull live arrival predictions for a stop (which line, to where, in how many minutes, from which platform), check a single line in detail with its current disruptions, and plan a door-to-door journey between two places with full leg-by-leg directions and durations. Stops and journey endpoints accept a place name, a NaPTAN id or lat,lon. Perfect for commuter and travel apps, station departure boards, status widgets, Slack/Discord bots and trip planners. No accounts, no upstream key.

api.oanor.com/tfl-api

Frequently asked questions

Quick answers about pricing, quotas, and integration.

How do I get an API key for Swiss Transit API?
Sign up for free at oanor.com, generate an API key from the developer dashboard, and call Swiss Transit API with the x-oanor-key header. No credit card needed for the free tier.
What's the rate limit for Swiss Transit API?
Free tier allows 1 request per second. Paid plans scale up to 50 requests per second on the Mega tier. Hard limits return HTTP 429 above the quota — no surprise overage charges.
How much does Swiss Transit API cost?
Swiss Transit API has a free tier with 100 calls / month. Paid plans start at €7.10 / month with higher quotas and faster rate limits.
Can I cancel my subscription anytime?
Yes. Plans are billed monthly and you can cancel anytime from your billing dashboard. No long-term contracts and no cancellation fee.
Is Swiss Transit API GDPR-compliant?
All requests to Swiss Transit API go through our EU-based gateway. Your upstream API key never leaves our server and no personal data is shared with the upstream provider beyond the request you send.

Pick an endpoint from the list on the left to see its details and try it.

Code snippets

Sign up to get an API key, then call any path under your slug.

curl https://api.oanor.com/swisstransit-api/SOME_PATH \
  -H "x-oanor-key: oanor_test_..."
const res = await fetch("https://api.oanor.com/swisstransit-api/SOME_PATH", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
const data = await res.json();
$ch = curl_init("https://api.oanor.com/swisstransit-api/SOME_PATH");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
$response = curl_exec($ch);
import requests
r = requests.get(
    "https://api.oanor.com/swisstransit-api/SOME_PATH",
    headers={"x-oanor-key": "oanor_test_..."},
)
print(r.json())

Ratings

Sign in to rate.

No reviews yet.

Discussion

Ask questions, share usage tips, get answers from the provider and other developers. Public — anyone can read.

Sign in to start a thread or reply.

Sign in

New thread

/ 4000

📌 Pinned 🔒 Locked

·

· ·

/ 4000

🔒 This thread is locked — no new replies.

  • No threads yet — start the discussion.

Support

Private 1:1 support with the provider — billing questions, integration issues, account problems. Only you and the provider team can see these threads.

Sign in to open a support ticket.

Sign in

Open new ticket

Describe what you need help with. The provider team gets an email and replies on the ticket page.

  • No tickets yet for this API.

Subscription active — calls can start immediately.

Send your first request —

Subscription active — copy a snippet and fire off your first call.