{
  "x402Version": 2,
  "id": 72267,
  "slug": "saylorinnovations-api-transport-switzerland-connections",
  "resource": "https://saylorinnovations.com/api/transport/switzerland/connections",
  "description": "Swiss public transport journey planner between two stops - departure and arrival times, duration, transfers, platforms, delays and each leg's line",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95877",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "from": {
        "type": "object",
        "description": "Start of the range"
      },
      "to": {
        "type": "object",
        "description": "End of the range"
      },
      "count": {
        "type": "number",
        "description": "Number of items returned"
      },
      "connections": {
        "type": "array",
        "description": "Journeys with departure and arrival time, duration, transfers and the legs with platforms and products",
        "items": {
          "type": "object",
          "properties": {
            "departure": {
              "description": "Departure time (UTC)",
              "type": [
                "string",
                "null"
              ]
            },
            "arrival": {
              "description": "Arrival time (UTC)",
              "type": [
                "string",
                "null"
              ]
            },
            "products": {
              "description": "Train or bus lines used",
              "type": [
                "array",
                "null"
              ]
            },
            "legs": {
              "description": "Legs of the journey with stations, times and platforms",
              "type": [
                "array",
                "null"
              ]
            },
            "duration_minutes": {
              "description": "Duration, in minutes"
            },
            "transfers": {
              "description": "Token transfers found"
            },
            "departure_platform": {
              "description": "Departure platform"
            },
            "departure_delay_min": {
              "description": "Departure delay, in minutes"
            }
          }
        }
      },
      "note": {
        "type": "string",
        "description": "Caveat or context for reading the result"
      },
      "source": {
        "type": "string",
        "description": "Data source the values come from"
      }
    },
    "required": [
      "from",
      "to",
      "connections"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "from": "Zurich",
            "limit": "3",
            "to": "Bern"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "from": {
              "name": "Zürich HB",
              "id": "8503000"
            },
            "to": {
              "name": "Bern",
              "id": "8507000"
            },
            "count": 3,
            "connections": [
              {
                "departure": "2026-10-17T07:38:00.000Z",
                "arrival": "2026-10-17T08:56:00.000Z",
                "duration_minutes": 78,
                "transfers": 2,
                "products": [
                  "RE37",
                  "RE12",
                  "IC 61"
                ],
                "departure_platform": "14",
                "departure_delay_min": null,
                "legs": [
                  {
                    "from": "Zürich HB",
                    "to": "Aarau",
                    "departure": "2026-10-17T07:38:00.000Z",
                    "arrival": "2026-10-17T08:05:00.000Z",
                    "line": "RE 37",
                    "towards": "Aarau"
                  },
                  {
                    "from": "Aarau",
                    "to": "Olten",
                    "departure": "2026-10-17T08:13:00.000Z",
                    "arrival": "2026-10-17T08:24:00.000Z",
                    "line": "RE 12",
                    "towards": "Olten"
                  },
                  {
                    "from": "Olten",
                    "to": "Bern",
                    "departure": "2026-10-17T08:29:00.000Z",
                    "arrival": "2026-10-17T08:56:00.000Z",
                    "line": "IC 61",
                    "towards": "Interlaken Ost"
                  }
                ]
              },
              {
                "departure": "2026-10-17T08:01:00.000Z",
                "arrival": "2026-10-17T08:58:00.000Z",
                "duration_minutes": 57,
                "transfers": 0,
                "products": [
                  "IC 8"
                ],
                "departure_platform": "31",
                "departure_delay_min": null,
                "legs": [
                  {
                    "from": "Zürich HB",
                    "to": "Bern",
                    "departure": "2026-10-17T08:01:00.000Z",
                    "arrival": "2026-10-17T08:58:00.000Z",
                    "line": "IC 8",
                    "towards": "Brig"
                  }
                ]
              },
              {
                "departure": "2026-10-17T08:06:00.000Z",
                "arrival": "2026-10-17T09:24:00.000Z",
                "duration_minutes": 78,
                "transfers": 0,
                "products": [
                  "IR 16"
                ],
                "departure_platform": "16",
                "departure_delay_min": null,
                "legs": [
                  {
                    "from": "Zürich HB",
                    "to": "Bern",
                    "departure": "2026-10-17T08:06:00.000Z",
                    "arrival": "2026-10-17T09:24:00.000Z",
                    "line": "IR 16",
                    "towards": "Bern"
                  }
                ]
              }
            ],
            "note": "Times are timetable data with live delay where the operator reports it; duration is in minutes.",
            "source": "transport.opendata.ch (Swiss timetable)"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "string",
                    "description": "Departure stop name"
                  },
                  "limit": {
                    "type": "string",
                    "description": "optional 1-8, default 4"
                  },
                  "to": {
                    "type": "string",
                    "description": "Arrival stop name"
                  }
                },
                "required": [
                  "from",
                  "to"
                ]
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "from": {
                    "type": "object",
                    "description": "Start of the range"
                  },
                  "to": {
                    "type": "object",
                    "description": "End of the range"
                  },
                  "count": {
                    "type": "number",
                    "description": "Number of items returned"
                  },
                  "connections": {
                    "type": "array",
                    "description": "Journeys with departure and arrival time, duration, transfers and the legs with platforms and products",
                    "items": {
                      "type": "object",
                      "properties": {
                        "departure": {
                          "description": "Departure time (UTC)",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "arrival": {
                          "description": "Arrival time (UTC)",
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "products": {
                          "description": "Train or bus lines used",
                          "type": [
                            "array",
                            "null"
                          ]
                        },
                        "legs": {
                          "description": "Legs of the journey with stations, times and platforms",
                          "type": [
                            "array",
                            "null"
                          ]
                        },
                        "duration_minutes": {
                          "description": "Duration, in minutes"
                        },
                        "transfers": {
                          "description": "Token transfers found"
                        },
                        "departure_platform": {
                          "description": "Departure platform"
                        },
                        "departure_delay_min": {
                          "description": "Departure delay, in minutes"
                        }
                      }
                    }
                  },
                  "note": {
                    "type": "string",
                    "description": "Caveat or context for reading the result"
                  },
                  "source": {
                    "type": "string",
                    "description": "Data source the values come from"
                  }
                },
                "required": [
                  "from",
                  "to",
                  "connections"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "train from zurich to bern",
    "swiss public transport",
    "next trains in switzerland",
    "sbb journey times and transfers",
    "switzerland timetable route"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.873Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "from": {
          "type": "string",
          "description": "Departure stop name"
        },
        "limit": {
          "type": "string",
          "description": "optional 1-8, default 4"
        },
        "to": {
          "type": "string",
          "description": "Arrival stop name"
        }
      },
      "required": [
        "from",
        "to"
      ]
    },
    "exampleResponse": {
      "from": {
        "name": "Zürich HB",
        "id": "8503000"
      },
      "to": {
        "name": "Bern",
        "id": "8507000"
      },
      "count": 3,
      "connections": [
        {
          "departure": "2026-10-17T07:38:00.000Z",
          "arrival": "2026-10-17T08:56:00.000Z",
          "duration_minutes": 78,
          "transfers": 2,
          "products": [
            "RE37",
            "RE12",
            "IC 61"
          ],
          "departure_platform": "14",
          "departure_delay_min": null,
          "legs": [
            {
              "from": "Zürich HB",
              "to": "Aarau",
              "departure": "2026-10-17T07:38:00.000Z",
              "arrival": "2026-10-17T08:05:00.000Z",
              "line": "RE 37",
              "towards": "Aarau"
            },
            {
              "from": "Aarau",
              "to": "Olten",
              "departure": "2026-10-17T08:13:00.000Z",
              "arrival": "2026-10-17T08:24:00.000Z",
              "line": "RE 12",
              "towards": "Olten"
            },
            {
              "from": "Olten",
              "to": "Bern",
              "departure": "2026-10-17T08:29:00.000Z",
              "arrival": "2026-10-17T08:56:00.000Z",
              "line": "IC 61",
              "towards": "Interlaken Ost"
            }
          ]
        },
        {
          "departure": "2026-10-17T08:01:00.000Z",
          "arrival": "2026-10-17T08:58:00.000Z",
          "duration_minutes": 57,
          "transfers": 0,
          "products": [
            "IC 8"
          ],
          "departure_platform": "31",
          "departure_delay_min": null,
          "legs": [
            {
              "from": "Zürich HB",
              "to": "Bern",
              "departure": "2026-10-17T08:01:00.000Z",
              "arrival": "2026-10-17T08:58:00.000Z",
              "line": "IC 8",
              "towards": "Brig"
            }
          ]
        },
        {
          "departure": "2026-10-17T08:06:00.000Z",
          "arrival": "2026-10-17T09:24:00.000Z",
          "duration_minutes": 78,
          "transfers": 0,
          "products": [
            "IR 16"
          ],
          "departure_platform": "16",
          "departure_delay_min": null,
          "legs": [
            {
              "from": "Zürich HB",
              "to": "Bern",
              "departure": "2026-10-17T08:06:00.000Z",
              "arrival": "2026-10-17T09:24:00.000Z",
              "line": "IR 16",
              "towards": "Bern"
            }
          ]
        }
      ],
      "note": "Times are timetable data with live delay where the operator reports it; duration is in minutes.",
      "source": "transport.opendata.ch (Swiss timetable)"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "from": "Zurich",
              "limit": "3",
              "to": "Bern"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "from": {
                "name": "Zürich HB",
                "id": "8503000"
              },
              "to": {
                "name": "Bern",
                "id": "8507000"
              },
              "count": 3,
              "connections": [
                {
                  "departure": "2026-10-17T07:38:00.000Z",
                  "arrival": "2026-10-17T08:56:00.000Z",
                  "duration_minutes": 78,
                  "transfers": 2,
                  "products": [
                    "RE37",
                    "RE12",
                    "IC 61"
                  ],
                  "departure_platform": "14",
                  "departure_delay_min": null,
                  "legs": [
                    {
                      "from": "Zürich HB",
                      "to": "Aarau",
                      "departure": "2026-10-17T07:38:00.000Z",
                      "arrival": "2026-10-17T08:05:00.000Z",
                      "line": "RE 37",
                      "towards": "Aarau"
                    },
                    {
                      "from": "Aarau",
                      "to": "Olten",
                      "departure": "2026-10-17T08:13:00.000Z",
                      "arrival": "2026-10-17T08:24:00.000Z",
                      "line": "RE 12",
                      "towards": "Olten"
                    },
                    {
                      "from": "Olten",
                      "to": "Bern",
                      "departure": "2026-10-17T08:29:00.000Z",
                      "arrival": "2026-10-17T08:56:00.000Z",
                      "line": "IC 61",
                      "towards": "Interlaken Ost"
                    }
                  ]
                },
                {
                  "departure": "2026-10-17T08:01:00.000Z",
                  "arrival": "2026-10-17T08:58:00.000Z",
                  "duration_minutes": 57,
                  "transfers": 0,
                  "products": [
                    "IC 8"
                  ],
                  "departure_platform": "31",
                  "departure_delay_min": null,
                  "legs": [
                    {
                      "from": "Zürich HB",
                      "to": "Bern",
                      "departure": "2026-10-17T08:01:00.000Z",
                      "arrival": "2026-10-17T08:58:00.000Z",
                      "line": "IC 8",
                      "towards": "Brig"
                    }
                  ]
                },
                {
                  "departure": "2026-10-17T08:06:00.000Z",
                  "arrival": "2026-10-17T09:24:00.000Z",
                  "duration_minutes": 78,
                  "transfers": 0,
                  "products": [
                    "IR 16"
                  ],
                  "departure_platform": "16",
                  "departure_delay_min": null,
                  "legs": [
                    {
                      "from": "Zürich HB",
                      "to": "Bern",
                      "departure": "2026-10-17T08:06:00.000Z",
                      "arrival": "2026-10-17T09:24:00.000Z",
                      "line": "IR 16",
                      "towards": "Bern"
                    }
                  ]
                }
              ],
              "note": "Times are timetable data with live delay where the operator reports it; duration is in minutes.",
              "source": "transport.opendata.ch (Swiss timetable)"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "from": {
                      "type": "string",
                      "description": "Departure stop name"
                    },
                    "limit": {
                      "type": "string",
                      "description": "optional 1-8, default 4"
                    },
                    "to": {
                      "type": "string",
                      "description": "Arrival stop name"
                    }
                  },
                  "required": [
                    "from",
                    "to"
                  ]
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "from": {
                      "type": "object",
                      "description": "Start of the range"
                    },
                    "to": {
                      "type": "object",
                      "description": "End of the range"
                    },
                    "count": {
                      "type": "number",
                      "description": "Number of items returned"
                    },
                    "connections": {
                      "type": "array",
                      "description": "Journeys with departure and arrival time, duration, transfers and the legs with platforms and products",
                      "items": {
                        "type": "object",
                        "properties": {
                          "departure": {
                            "description": "Departure time (UTC)",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "arrival": {
                            "description": "Arrival time (UTC)",
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "products": {
                            "description": "Train or bus lines used",
                            "type": [
                              "array",
                              "null"
                            ]
                          },
                          "legs": {
                            "description": "Legs of the journey with stations, times and platforms",
                            "type": [
                              "array",
                              "null"
                            ]
                          },
                          "duration_minutes": {
                            "description": "Duration, in minutes"
                          },
                          "transfers": {
                            "description": "Token transfers found"
                          },
                          "departure_platform": {
                            "description": "Departure platform"
                          },
                          "departure_delay_min": {
                            "description": "Departure delay, in minutes"
                          }
                        }
                      }
                    },
                    "note": {
                      "type": "string",
                      "description": "Caveat or context for reading the result"
                    },
                    "source": {
                      "type": "string",
                      "description": "Data source the values come from"
                    }
                  },
                  "required": [
                    "from",
                    "to",
                    "connections"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/transport/switzerland/connections?from=Zurich&to=Bern&limit=3",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "from": {},
    "to": {},
    "count": 0,
    "connections": [
      {
        "departure": "string",
        "arrival": "string",
        "products": [
          "value"
        ],
        "legs": [
          "value"
        ],
        "duration_minutes": null,
        "transfers": null,
        "departure_platform": null,
        "departure_delay_min": null
      }
    ],
    "note": "string",
    "source": "string"
  }
}