{"uid":"cap_dYWLxx-gPbIr11VvxHzzu","slug":"swiss-public-transport-journey-planner-ec4f5aa8","name":"Swiss Public Transport Journey Planner","description":"Swiss public transport journey planner between two stops - departure and arrival times, duration, transfers, platforms, delays and each leg's line","url":"https://saylorinnovations.com/api/transport/switzerland/connections?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","required":["from","to"],"properties":{"to":{"type":"string","description":"Arrival stop name"},"from":{"type":"string","description":"Departure stop name"},"limit":{"type":"string","description":"optional 1-8, default 4"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["from","to","connections"],"properties":{"to":{"type":"object","description":"End of the range"},"from":{"type":"object","description":"Start of the range"},"note":{"type":"string","description":"Caveat or context for reading the result"},"count":{"type":"number","description":"Number of items returned"},"source":{"type":"string","description":"Data source the values come from"},"connections":{"type":"array","items":{"type":"object","properties":{"legs":{"type":["array","null"],"description":"Legs of the journey with stations, times and platforms"},"arrival":{"type":["string","null"],"description":"Arrival time (UTC)"},"products":{"type":["array","null"],"description":"Train or bus lines used"},"departure":{"type":["string","null"],"description":"Departure time (UTC)"},"transfers":{"description":"Token transfers found"},"duration_minutes":{"description":"Duration, in minutes"},"departure_platform":{"description":"Departure platform"},"departure_delay_min":{"description":"Departure delay, in minutes"}}},"description":"Journeys with departure and arrival time, duration, transfers and the legs with platforms and products"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_uhGKzFvi7Pdpb5HSIv9X7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up train/bus connections between two Swiss stops, returning departure and arrival times, duration, transfers, platforms, delays, and each leg's line","exampleAgentPrompt":"What are the next few train connections from Zurich HB to Bern today — show me departure times, platforms, any delays, and how many transfers each journey needs?","exampleUseCases":[{"title":"Commuter planning from Zurich to Basel","prompt":"I need to get from Zurich HB to Basel SBB this morning — can you show me the next 4 connections, including departure platforms and whether there are any delays?"},{"title":"Tourist trip from Lucerne to Lugano","prompt":"I'm in Lucerne and want to travel to Lugano — what train connections are available, how long does each take, and how many transfers will I have?"},{"title":"Quick last-minute connection check","prompt":"Is there a direct train from Bern to Geneva right now, or will I need to transfer? Show me the soonest 2 options with arrival times."}],"resultDescription":"A JSON object containing a list of up to 8 journey connections, each with departure and arrival times in UTC, total duration in minutes, number of transfers, departure platform, departure delay in minutes, a list of transport products (train/bus lines) used, and a detailed legs array showing each segment's stations, times, and platforms. Also includes metadata about the departure and arrival stops and a data source note.","failureModes":["Stop name not recognized or misspelled — returns empty connections or an error","No connections found between the two stops (e.g. stops not on the Swiss network)","Limit parameter out of range (must be 1–8) — may default or error","Temporary upstream data source unavailability causing incomplete or stale results","Ambiguous stop names matching multiple locations — results may reflect unexpected station"],"whenToPreferThis":"Choose this endpoint when you need real-time Swiss public transport timetable data including live delays and platform information between any two named Swiss stops. It is ideal for agents helping users plan journeys within Switzerland using SBB or connected Swiss transit networks, particularly when detailed per-leg breakdown (lines, platforms, transfer count) is needed. Prefer it over generic mapping or routing APIs when the user explicitly asks about trains, buses, or public transit in Switzerland.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-28T00:33:07.146Z","isFirstParty":false,"canonicalSlug":"swiss-public-transport-journey-planner-ec4f5aa8"}