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 参数
| 参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
prompt | string | 是 | 发送给 Google AI Mode 的 Prompt。 |
country | string | 是 | 国家或地区编码(不支持 JP、TW)。 |
响应字段
| 字段 | 类型 | 描述 |
|---|---|---|
result_text | string | 回答正文。 |
result_html | string | 回答的 HTML 版本。 |
raw_url | string | 原始 Google AI Mode 链接。 |
citations | array | 引用信息。 |
citations.snippet | string | 引用文章摘要。 |
citations.thumbnail | string | 引用文章封面。 |
citations.title | string | 引用标题。 |
citations.url | string | 引用链接。 |
citations.website_name | string | 引用网站名称。 |
citations.favicon | string | 引用网站的 Favicon。 |
search_result | array | Google 返回的搜索结果(可能为空)。 |
search_result.snippet | string | 搜索结果摘要。 |
search_result.thumbnail | string | 搜索结果封面。 |
search_result.title | string | 搜索结果标题。 |
search_result.url | string | 搜索结果链接。 |
search_result.website_name | string | 搜索结果的网站名称。 |