{"api":{"id":"api_66adc83857eb07a5cf0aeac0","slug":"swiss-public-transport","name":"Swiss Train & Transit Connections API","description":"Train, bus and tram connections between two places in Switzerland: departure and arrival times, duration, transfers, train and line names, platform, delay, crowding level and the legs of each journey.","kind":"ready_made","visibility":"public","domain":"transport.opendata.ch","source_url":"https://transport.opendata.ch/","category":"travel","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":13,"created_at":"2026-12-06T04:06:22.112Z","updated_at":"2026-12-06T04:06:22.112Z","runnable":true},"version":"1.0","contract_hash":"eb8f6b3518b2e44040ed03bce05d1d63f9f3831770caa3a3446d3a10876600af","fields":[{"name":"id","type":"string","description":"Made from the two station ids and the departure time; unique for a connection.","required":true,"coverage":1,"example":"8503000-8507000-1796530080"},{"name":"from_station","type":"string","description":"Name of the departure station.","required":false,"coverage":1,"example":"Zürich HB"},{"name":"to_station","type":"string","description":"Name of the arrival station.","required":false,"coverage":1,"example":"Bern"},{"name":"departure_at","type":"datetime","description":"Departure time (UTC).","required":false,"coverage":1,"example":"2026-12-06T04:08:00.000Z"},{"name":"arrival_at","type":"datetime","description":"Arrival time (UTC).","required":false,"coverage":1,"example":"2026-12-06T05:26:00.000Z"},{"name":"duration_min","type":"integer","description":"Total travel time in minutes.","required":false,"coverage":1,"example":78},{"name":"transfers","type":"integer","description":"Number of changes.","required":false,"coverage":1,"example":2},{"name":"products","type":"array","description":"Trains and lines used, such as IC 61 or S23.","required":false,"coverage":1,"example":["IR 37","S23"]},{"name":"platform","type":"string","description":"Departure platform.","required":false,"coverage":1,"example":"14"},{"name":"delay_min","type":"integer","description":"Current departure delay in minutes.","required":false,"coverage":1,"example":0},{"name":"capacity_1st","type":"integer","description":"Expected crowding in first class, 1 low to 3 high.","required":false,"coverage":1,"example":1},{"name":"capacity_2nd","type":"integer","description":"Expected crowding in second class, 1 low to 3 high.","required":false,"coverage":1,"example":1},{"name":"sections","type":"array","description":"One text per leg: line, from and to stations and times (Swiss local time), or Walk.","required":false,"coverage":1,"example":["IR 37: Zürich HB 05:08 -> Aarau 05:35","S 23: Aarau 05:40 -> Olten 05:53"]}],"inputs":[{"name":"from","type":"string","description":"Departure station or place, such as Zurich or Bern Bahnhof.","example":"Zurich","required":true},{"name":"to","type":"string","description":"Arrival station or place.","example":"Bern","required":true},{"name":"date","type":"string","description":"Travel day as YYYY-MM-DD. Today when left empty.","example":"2026-12-07"},{"name":"time","type":"string","description":"Earliest departure time as HH:MM, Swiss local time. Now when left empty.","example":"08:00"}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"arrival_at":{"description":"Arrival time (UTC).","format":"date-time","type":"string"},"capacity_1st":{"description":"Expected crowding in first class, 1 low to 3 high.","type":"integer"},"capacity_2nd":{"description":"Expected crowding in second class, 1 low to 3 high.","type":"integer"},"delay_min":{"description":"Current departure delay in minutes.","type":"integer"},"departure_at":{"description":"Departure time (UTC).","format":"date-time","type":"string"},"duration_min":{"description":"Total travel time in minutes.","type":"integer"},"from_station":{"description":"Name of the departure station.","type":"string"},"id":{"description":"Made from the two station ids and the departure time; unique for a connection.","type":"string"},"platform":{"description":"Departure platform.","type":"string"},"products":{"description":"Trains and lines used, such as IC 61 or S23.","type":"array"},"sections":{"description":"One text per leg: line, from and to stations and times (Swiss local time), or Walk.","type":"array"},"to_station":{"description":"Name of the arrival station.","type":"string"},"transfers":{"description":"Number of changes.","type":"integer"}},"required":["id"],"title":"Swiss Train & Transit Connections API","type":"object"},"samples":[{"id":"8503000-8507000-1796530080","from_station":"Zürich HB","to_station":"Bern","departure_at":"2026-12-06T04:08:00.000Z","arrival_at":"2026-12-06T05:26:00.000Z","duration_min":78,"transfers":2,"products":["IR 37","S23","IC 61"],"platform":"14","delay_min":0,"capacity_1st":1,"capacity_2nd":1,"sections":["IR 37: Zürich HB 05:08 -> Aarau 05:35","S 23: Aarau 05:40 -> Olten 05:53","IC 61: Olten 05:58 -> Bern 06:26"]},{"id":"8503000-8507000-1796530740","from_station":"Zürich HB","to_station":"Bern","departure_at":"2026-12-06T04:19:00.000Z","arrival_at":"2026-12-06T05:28:00.000Z","duration_min":69,"transfers":0,"products":["IC 1"],"platform":"13","delay_min":0,"capacity_1st":1,"capacity_2nd":1,"sections":["IC 1: Zürich HB 05:19 -> Bern 06:28"]},{"id":"8503000-8507000-1796533320","from_station":"Zürich HB","to_station":"Bern","departure_at":"2026-12-06T05:02:00.000Z","arrival_at":"2026-12-06T05:58:00.000Z","duration_min":56,"transfers":0,"products":["IC 8"],"platform":"8","delay_min":0,"capacity_1st":1,"capacity_2nd":1,"sections":["IC 8: Zürich HB 06:02 -> Bern 06:58"]}],"validation":{"checked_at":"2026-12-06T04:06:22.092Z","field_coverage":{"arrival_at":1,"capacity_1st":1,"capacity_2nd":1,"delay_min":1,"departure_at":1,"duration_min":1,"from_station":1,"id":1,"platform":1,"products":1,"sections":1,"to_station":1,"transfers":1},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T04:06:22.112Z","activated_at":"2026-12-06T04:06:22.112Z","active":true,"contract_hash":"eb8f6b3518b2e44040ed03bce05d1d63f9f3831770caa3a3446d3a10876600af","fields_count":13}]}