Journey Planner

starterLive data

Connections between two places with legs, platforms, transfers and delays.

GET/api/v1/transit/swiss/connections

Data source

Query parameters

ParameterDescriptionTry value
from
string required
Origin
to
string required
Destination
via
string
Via station
limit
number
1–6 (default 4)
apikey
string required
Your API key. Can also be sent as the X-API-Key header.demo key used here

Response envelope

Success: { data, meta: { sources, fetchedAt, cached } }. Errors: { error: { code, message } } with HTTP 400, 401, 404, 502, 503 or 504.