Google AI 模式抓取器
scraper.aimode 完整还原 Google AI 模式的响应,包括渲染后的 HTML、原始 URL 和详细的引用数据,以便您分析结果在不同地区下的差异。
请求示例
curl 'https://api.scrapeless.com/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",
"shopping": true
},
"webhook": {
"url": "http://www.youwebhook.com"
}
}'请求体参数
| 参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
prompt | string | 是 | 发送给 Google AI 模式的提示词。 |
country | string | 是 | 国家或地区(不支持 JP 和 TW)。 |
shopping | boolean | 否 | 是否获取购物数据。默认为 true。启用后,将在 products 字段中返回产品信息。 |
响应字段
注意: 如果响应包含购物数据(
products字段),该 API 调用将按基础费率的 2 倍计费。这是因为从多个来源提取和处理产品信息需要额外的资源开销。
| 参数 | 类型 | 描述 |
|---|---|---|
result_text | string | 回答正文。 |
result_md | string | Markdown 格式的回答正文。 |
result_html | string | 回答的 HTML 版本。 |
raw_url | string | Google AI 模式的原始 URL。 |
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 | 搜索结果网站名称。 |
products | array | Google AI 模式返回的产品信息。 |
products.thumbnails | array | 产品缩略图 URL 数组。 |
products.title | string | 产品标题。 |
products.url | string | 产品页面 URL。 |
products.brand | string | 产品品牌名称。 |
products.reviews | int | 评论数量。 |
products.rating | string | 平均评分。 |
products.price_range | string | 价格范围,例如 $2,499.99。 |
products.stores | array | 商家报价数组。 |
products.stores.name | string | 商家名称。 |
products.stores.link | string | 商家产品链接。 |
products.stores.title | string | 商家处的产品标题。 |
products.stores.ratings | string | 商家评分,例如 4.3/5。 |
products.stores.extensions | array | 附加信息(库存、配送、退换货)。 |
products.stores.price | string | 商家价格。 |
products.stores.delivery_fee | string | 配送费信息。 |
products.stores.total_price | string | 含费用的总价。 |
products.about_the_product | object | 详细产品信息。 |
products.about_the_product.title | string | 区块标题。 |
products.about_the_product.link | string | 产品页面链接。 |
products.about_the_product.displayed_link | string | 显示的域名。 |
products.about_the_product.features | array | 产品特性/规格。 |
products.about_the_product.features.title | string | 特性名称。 |
products.about_the_product.features.value | string | 特性值。 |
products.about_the_product.description | string | 产品描述。 |
products.variants | array | 产品变体选项。 |
products.variants.title | string | 变体类别标题。 |
products.variants.items | array | 变体选项列表。 |
products.variants.items.name | string | 变体选项名称。 |
products.variants.items.selected | bool | 是否已选中该变体。 |
products.variants.items.availability | bool | 变体可用状态。 |
products.ratings | array | 评分分布数据。 |
products.ratings.stars | int | 星级评分等级(1-5)。 |
products.ratings.amount | int | 该等级的评分数量。 |
products.user_reviews | array | 用户评论数据。 |
products.user_reviews.text | string | 评论文本内容。 |
products.user_reviews.source | string | 评论来源平台。 |
products.user_reviews.rating | int | 用户评分。 |
products.user_reviews.date | string | 评论日期。 |
products.user_reviews.name | string | 评论者姓名。 |
products.user_reviews.title | string | 评论标题。 |