跳到主要内容

入门

快速开始

三步连接智能体并获取实时等待时间。试用无需密钥:不使用密钥每天可调用 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 帮助我们改进网站。详见隐私政策和条款。