更新日志新功能

现已支持 Bing Copilot

Bing Copilot
关于无线耳机的 Bing Copilot 回答,以及 querying.ai 返回的 JSON

向 Microsoft Copilot 提问,获取回答及其引用来源、Copilot 执行的搜索,以及它展示的商品卡片和地点卡片。

获得的结果

  • text 和 sources:Copilot 的回答及其引用的页面。
  • searchQueries:Copilot 为回答执行的网页搜索。
  • shoppingCards:Copilot 推荐商品时的商品卡片,包含名称、价格和链接。
  • map:询问地点时返回的地点,包含名称、地址和坐标。

工作原理

Copilot 是 Microsoft 的 AI 助手,回答时会开启网页搜索。每个任务都会打开一个全新的 Copilot 对话,提出你的问题,并返回首次访问的用户看到的回答。设置 include.markdown 后还会返回 markdown。

面对购物类问题,Copilot 常常用商品卡片作答,引用的页面较少,因此要结合正文阅读卡片,才能看清它推荐了哪些商品。

应用场景

  • 把 Copilot 加入你在 ChatGPT 和 Gemini 上跟踪的问题集。
  • 比较 Copilot 与其他引擎推荐的商品。

发送请求

在 Authorization 请求头中带上 API 密钥发送请求。

curl -X POST https://api.querying.ai/v1/async/task \
  -H "Authorization: Bearer $QUERYING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "taskType": "BING_COPILOT",
    "payload": {
      "prompt": "Search the web and recommend 3 wireless earbuds for commuting. Compare noise cancellation and battery life in a short table, with source links. Keep the answer under 180 words.",
      "country": "US",
      "include": { "markdown": true }
    }
  }'

请求字段

taskTypestring必填
要运行的引擎,例如 CHATGPT 或 GOOGLE。
payload.promptstring必填
按用户在聊天框中输入的方式写的问题,最多 100,000 个字符。
payload.countrystring
提问所在市场的两位国家代码,例如 US、KR、JP。默认 US。
payload.include.markdownboolean
设为 true 会附带 markdown:保留标题、列表、表格和链接的回答。
webhook.urlstring
你服务器上的 HTTPS 地址。任务完成后立即把结果推送到这里。
idempotencyKeystring
你为请求设定的 ID。每个键在账户内对应一个任务,因此重试发送后仍是同一个任务。

响应

完成的任务如下所示,已截取部分内容。

JSON
{
  "success": true,
  "task": {
    "id": "bb5e4da9-9df3-4cc1-8b99-b16e587f0f6f",
    "taskType": "BING_COPILOT",
    "status": "COMPLETED",
    "createdAt": "2026-09-27T17:03:03.604Z"
  },
  "credits": { "creditsToCharge": 2, "creditsCharged": 2 },
  "response": {
    "markdown": "**Top picks: Sony WF‑1000XM5, AirPods Pro 3, Bose QuietComfort Ultra — all strong for commuting with excellent ANC.**\n\nSony, Apple, and Bose consistently rank highest for noise cancellation and battery life across expert tests. Below are three commuter‑friendly choices with quick comparisons and source links.\n\n### Recommended Earbuds\n- **Sony WF‑1000XM5** — Class‑leading ANC and strong battery life.\n…",
    "sources": [
      {
        "position": 1,
        "url": "https://directronics.com/reviews/best-wireless-earbuds-2026/",
        "label": "Best Wireless Earbuds 2026: Expert Picks After 80+ Hours of Testing | Directronics"
      }
    ],
    "searchQueries": [
      "wireless earbuds commuting",
      "best wireless earbuds commuting noise cancellation long battery life 2026"
    ],
    "shoppingCards": [
      {
        "type": "shoppingProducts",
        "layout": "inline",
        "products": [
          {
            "position": 1,
            "name": "TREBLAB X8 True Wireless Noise Cancelling Earbuds with Bluetooth 5.4",
            "price": { "amount": 29.97, "currencySymbol": "$" },
            "rating": { "value": 4.17, "count": 23 },
            "seller": "Amazon.com"
          }
        ]
      }
    ]
  }
}
task.statusstring
依次为 QUEUED、PROCESSING,最终为附带回答的 COMPLETED 或附带 error 的 FAILED。
credits.creditsChargedinteger
已完成任务扣除的积分。失败的任务为 0。
response.textstring
纯文本形式的回答。
response.markdownstring
保留格式的回答,包括标题、列表、表格和链接。
response.sourcesarray
回答引用的页面,按引擎展示的顺序排列,含 position、url 和 label。
response.searchQueriesarray
引擎为写出回答执行的网页搜索。
response.shoppingCardsarray
与回答一同展示的商品卡片:标题、价格、商店、评分和商品链接。
response.maparray
回答推荐的地点:名称、地址、坐标、评分、类别和地图链接。

获取结果

请求会立即返回 status 为 QUEUED 的任务。用 GET /v1/async/task/{id} 轮询,直到 status 变为 COMPLETED 或 FAILED;或者加上 webhook.url,在服务器上接收同样的 task、credits 和 response。任务结束后,结果保留 24 小时供查询。

curl https://api.querying.ai/v1/async/task/$TASK_ID \
  -H "Authorization: Bearer $QUERYING_API_KEY"

价格

每个完成的 Copilot 任务消耗 2 个积分。

更多更新

接收最新消息

通过邮件接收产品更新。

RSS 订阅