ChatGPT API:回答与引用采集

从消费者使用的 ChatGPT 页面采集回答、引用和搜索数据,以 JSON 形式进行 GEO 衡量。

ChatGPT web search answer comparing wireless earbuds in a table with source links.

响应结构

查看此引擎返回的回答正文、引用来源、搜索词等结构化字段。

  • text, markdown: the captured answer, ready to store alongside your prompt.
  • sources: cited URLs and the source metadata available in that session.
  • searchQueries: searches issued during the answer; an empty list does not mean your submitted prompt was lost.
  • shoppingCards, model: conditional product cards and the model identifier reported by the session.
{
  "task": {
    "taskType": "CHATGPT"
  },
  "response": {
    "sources": [
      {
        "url": "https://www.wired.com/gallery/best-noise-canceling-earbuds/",
        "label": "Best Noise-Canceling Earbuds: Bose, Sony, Apple, and More | WIRED",
        "footnote": false,
        "position": 1,
        "attribution": "WIRED",
        "description": "",
        "datePublished": "March 29, 2026"
      },
      {
        "url": "https://www.tomsguide.com/audio/earbuds/best-noise-canceling-earbuds",
        "label": "Best noise-canceling earbuds in 2026: Tested and reviewed | Tom's Guide",
        "footnote": false,
        "position": 2,
        "attribution": "Tom's Guide",
        "description": "",
        "datePublished": "July 24, 2026"
      },
      {
        "url": "https://www.wired.com/story/best-wireless-earbuds/",
        "label": "Best Wireless Earbuds We’d Buy Right Now (2026): Apple, Sony, Bose, and More | WIRED",
        "footnote": false,
        "position": 3,
        "attribution": "WIRED",
        "description": "",
        "datePublished": "August 10, 2026"
      }
    ],
    "searchQueries": [
      "best wireless earbuds commuting noise cancellation battery life Sony Bose Apple"
    ],
    "text": "For commuting, I’d prioritize strong ANC (trains, buses, traffic) and 6+ hours of playback. These three are top picks: ([WIRED](https://www.wired.com/gallery/best-noise-canceling-earbuds/?utm_source=chatgpt.com))\n\n| Earbuds | Noise cancellation | Battery life (ANC on) |\n|---|---|---|\n| Bose QuietComfort Ultra Earbuds (2nd Gen) | Excellent — among the strongest ANC available | ~6 hrs (24 hrs with case) ([WIRED](https://www.wired.com/gallery/best-noise-canceling-earbuds/?utm_source=chatgpt.com)) |\n| Sony WF-1000XM5 | Excellent — very effective for commute noise | ~8 hrs (24 hrs with case) ([Tom's Guide](https://www.tomsguide.com/audio/earbuds/best-noise-canceling-earbuds?utm_source=chatgpt.com)) |\n| Apple AirPods Pro 3 | Excellent — especially for iPhone users | Up to ~8 hrs (24 hrs with case) ([WIRED](https://www.wired.com/story/best-wireless-earbuds/?utm_source=chatgpt.com)) |\n\n**Recommendation:**  \n- Best pure noise blocking: Bose.  \n- Best overall balance: Sony.  \n- Best if you use iPhone: AirPods Pro 3. ([WIRED](https://www.wired.com/gallery/best-noise-canceling-earbuds/?utm_source=chatgpt.com))\n\nSources: [WIRED noise-canceling earbuds guide](https://www.wired.com/gallery/best-noise-canceling-earbuds/?utm_source=chatgpt.com) · [Tom’s Guide ANC earbuds guide](https://www.tomsguide.com/audio/earbuds/best-noise-canceling-earbuds?utm_source=chatgpt.com) ·",
    "markdown": "For commuting, I’d prioritize strong ANC (trains, buses, traffic) and 6+ hours of playback. These three are top picks: ([WIRED](https://www.wired.com/gallery/best-noise-canceling-earbuds/?utm_source=chatgpt.com))\n\n| Earbuds | Noise cancellation | Battery life (ANC on) |\n|---|---|---|\n| Bose QuietComfort Ultra Earbuds (2nd Gen) | Excellent — among the strongest ANC available | ~6 hrs (24 hrs with case) ([WIRED](https://www.wired.com/gallery/best-noise-canceling-earbuds/?utm_source=chatgpt.com)) |\n| Sony WF-1000XM5 | Excellent — very effective for commute noise | ~8 hrs (24 hrs with case) ([Tom's Guide](https://www.tomsguide.com/audio/earbuds/best-noise-canceling-earbuds?utm_source=chatgpt.com)) |\n| Apple AirPods Pro 3 | Excellent — especially for iPhone users | Up to ~8 hrs (24 hrs with case) ([WIRED](https://www.wired.com/story/best-wireless-earbuds/?utm_source=chatgpt.com)) |\n\n**Recommendation:**  \n- Best pure noise blocking: Bose.  \n- Best overall balance: Sony.  \n- Best if you use iPhone: AirPods Pro 3. ([WIRED](https://www.wired.com/gallery/best-noise-canceling-earbuds/?utm_source=chatgpt.com))\n\nSources: [WIRED noise-canceling earbuds guide](https://www.wired.com/gallery/best-noise-canceling-earbuds/?utm_source=chatgpt.com) · [Tom’s Guide ANC earbuds guide](https://www.tomsguide.com/audio/earbuds/best-noise-canceling-earbuds?utm_source=chatgpt.com) ·",
    "model": "gpt-5-6",
    "shoppingCards": []
  }
}

分析品牌提及和引用

重复运行相同问题,按市场比较品牌提及和引用来源的变化。

使用 API 采集回答

使用 API 密钥提交问题,并保存已完成任务的 response。

curl -X POST https://api.querying.ai/v1/async/task \
  -H "Authorization: Bearer $QUERYING_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "taskType": "CHATGPT",
  "payload": {
    "prompt": "通勤无线耳机推荐",
    "country": "CN"
  }
}'

读取已完成的响应

使用 task.id 获取结果,读取已完成 response 中的引擎专属字段。

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

费用与使用范围

按套餐计算的请求费用
套餐单次1,000 次
Basic≈ $0.00400≈ $4.00
Max≈ $0.00190≈ $1.90

这是使用完月度套餐积分时的换算费用。

已完成请求按引擎消耗积分。失败请求不收费。

解读结果时的限制

回答和可选字段会因每次运行而变化。不要把单次回答当作整个市场的代表。

API 文档

相关功能