跳至主要內容

入門

快速入門

三個步驟連接代理並取得即時等候時間。試用不需金鑰:不使用金鑰每天可呼叫 100 次。

  1. 連接 Waity

    MCP 用戶端會取得三個工具:find_waits、get_wait 與 get_history。REST API 不需設定,基礎 URL 為 https://api.waity.ai。

    {
      "mcpServers": {
        "waity": {
          "url": "https://api.waity.ai/mcp"
        }
      }
    }
    
  2. 詢問等候時間

    在 MCP 用戶端中,用平常的話提問:「El Paso 的過境口岸現在要等多久?」使用 REST 時,以地點名稱、城市或位置呼叫 GET /v1/places。

    curl "https://api.waity.ai/v1/places?q=El+Paso&category=border&view=minimal"
    
  3. 解讀回應

    原樣轉述 summary,先向使用者讀出 warnings,並顯示 attribution 各行。

    200回應

    {
      "query": { "q": "El Paso", "category": ["border"], "view": "minimal", … },
      "coverage": "live",
      "places": [
        {
          "place": { "id": "pl_…", "name": "Ysleta Standard", "category": "border", … },
          "summary": "About 7 min, posted by CBP, updated 9 min ago.",
          "now": { "status": "live", "usable": true, "value": 7, "unit": "min", … },
          "links": { "details": "https://api.waity.ai/v1/places/pl_…?view=full", … }
        }
      ],
      "notes": [ … ],
    

    每天 100 次不夠用?免費金鑰每天 1,000 次:請見金鑰與方案。

後續步驟

必要 Cookie 讓網站正常運作,選用的分析 Cookie 協助我們改善網站。詳見隱私權政策與條款。