Google AI Overview 爬虫
scraper.overview 可捕获全面的 Google AI Overview 响应,包括丰富的商品数据、引用、广告和网络来源,帮助您分析不同地区的搜索结果。
请求示例
curl '{api_host}/api/v2/scraper/execute' \
--header 'Content-Type: application/json' \
--header 'x-api-token: {you_api_key}' \
--data '{
"actor": "scraper.overview",
"input": {
"prompt": "Recommended attractions in New York",
"country": "US"
},
"webhook": {
"url": "http://www.youwebhook.com"
}
}'请求体参数
| 参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
prompt | string | 是 | 发送至 Google AI Overview 的提示词。 |
country | string | 是 | 国家或地区。 |
响应字段
数据字段 Source: AI Overview 内部的商品
| type | product_position | description |
|---|---|---|
| product | recommended | 推荐商品 |
| product | inline_link | 内链商品 |
| product | reference | 参考商品 |
| ads product | null | 广告商品 |
数据字段 Products: Google 赞助商品
数据字段 Ads: Google 广告 (SERP)
| 参数 | 类型 | 是否必填 | 描述 |
|---|---|---|---|
content | string | 是 | Markdown 格式的回复正文。 |
rawtext | string | 是 | 原始回复数据。 |
metadata | object | 是 | 元数据信息。 |
metadata.rawUrl | string | 是 | 网页 URL。 |
is_overview_shopping | boolean | 是 | 是否包含嵌入的购物数据。 |
products | array | 否 | 商品数据。 |
products.delivery | string | 否 | 配送服务。 |
products.discount | string | 否 | 折扣信息。 |
products.img | string | 否 | 商品图片 URL。 |
products.orig_price | string | 否 | 原价。 |
products.rating | string | 否 | 评分。 |
products.review_count | string | 否 | 评论数量。 |
products.seller | string | 否 | 卖家。 |
products.url | string | 否 | 商品详情页 URL。 |
products.stores | array | 否 | 店铺信息。 |
products.stores.delivery_fee | string | 否 | 配送费。 |
products.stores.extensions | array | 否 | 附加服务。 |
products.stores.link | string | 否 | 商品跳转链接。 |
products.stores.name | string | 否 | 店铺名称。 |
products.stores.price | string | 否 | 售价。 |
products.ratings | string | 否 | 评分。 |
products.tag | string | 否 | 标签。 |
products.title | string | 否 | 商品标题。 |
products.total_price | string | 否 | 总价。 |
source | array | 否 | 引用来源。 |
source.favicon | string | 否 | 网站图标。 |
source.snippet | string | 否 | 引用文章摘要。 |
source.thumbnail | string | 否 | 引用文章封面图。 |
source.title | string | 否 | 引用标题。 |
source.type | string | 否 | 来源类型。 |
source.url | string | 否 | 引用原始 URL。 |
source.website_name | string | 否 | 网站名称。 |
source.html_index | int | 否 | 表示推荐商品购物卡在 Markdown 内容中的位置。 |
source.stores | array | 否 | 店铺信息。 |
source.stores.delivery_fee | string | 否 | 配送费。 |
source.stores.extensions | array | 否 | 附加服务。 |
source.stores.link | string | 否 | 商品跳转链接。 |
source.stores.name | string | 否 | 店铺名称。 |
source.stores.price | string | 否 | 售价。 |
web_source | array | 否 | 网络搜索来源。 |
web_source.favicon | string | 否 | 网站图标。 |
web_source.snippet | string | 否 | 引用文章摘要。 |
web_source.thumbnail | string | 否 | 引用文章封面图。 |
web_source.title | string | 否 | 引用标题。 |
web_source.url | string | 否 | 引用原始 URL。 |
web_source.website_name | string | 否 | 网站名称。 |
web_source.stores | array | 否 | 店铺信息。 |
web_source.stores.delivery_fee | string | 否 | 配送费。 |
web_source.stores.extensions | array | 否 | 附加服务。 |
web_source.stores.link | string | 否 | 商品跳转链接。 |
web_source.stores.name | string | 否 | 店铺名称。 |
web_source.stores.price | string | 否 | 售价。 |
ads | array | 否 | 广告。 |
ads.section_title | string | 否 | 区块标题。 |
ads.type | string | 否 | 类型。 |
ads.title | string | 否 | 标题。 |
ads.url | string | 否 | 网页 URL。 |
ads.google_ad_url | string | 否 | 广告链接。 |
ads.display_url | string | 否 | 显示 URL。 |
ads.advertiser | string | 否 | 广告主。 |
ads.description | string | 否 | 描述。 |
ads.tracking_token | string | 否 | 追踪令牌。 |
ads.slot | string | 否 | 广告位编号。 |
ads.price | string | 否 | 价格。 |
ads.orig_price | string | 否 | 原价。 |
ads.seller | string | 否 | 卖家。 |
ads.rating | string | 否 | 评分。 |
ads.review_count | string | 否 | 评论数量。 |
ads.img | string | 否 | 商品图片 URL。 |
ads.site_links | array | 否 | 网站链接。 |
ads.site_links.title | string | 否 | 标题。 |
ads.site_links.url | string | 否 | 网页 URL。 |
ads.site_links.google_ad_url | string | 否 | 广告链接。 |