Google AI Mode 抓取器

scraper.aimode 可同步 Google AI Mode 的回答,包括渲染后的 HTML、原始链接以及引用信息,帮助你分析不同市场的输出差异。

请求示例

curl '{api_host}/api/v2/scraper/request' \
  --header 'Content-Type: application/json' \
  --header 'x-api-token: {you_api_key}' \
  --data '{
    "actor": "scraper.aimode",
    "input": {
      "prompt": "Recommended attractions in New York",
      "country": "US"
    },
    "webhook": {
      "url": "http://www.youwebhook.com"
    }
  }'

Body 参数

参数类型是否必填描述
promptstring发送给 Google AI Mode 的 Prompt。
countrystring国家或地区编码(不支持 JP、TW)。

响应字段

字段类型描述
result_textstring回答正文。
result_htmlstring回答的 HTML 版本。
raw_urlstring原始 Google AI Mode 链接。
citationsarray引用信息。
citations.snippetstring引用文章摘要。
citations.thumbnailstring引用文章封面。
citations.titlestring引用标题。
citations.urlstring引用链接。
citations.website_namestring引用网站名称。
citations.faviconstring引用网站的 Favicon。
search_resultarrayGoogle 返回的搜索结果(可能为空)。
search_result.snippetstring搜索结果摘要。
search_result.thumbnailstring搜索结果封面。
search_result.titlestring搜索结果标题。
search_result.urlstring搜索结果链接。
search_result.website_namestring搜索结果的网站名称。