Google AI Overview Scraper

scraper.overview 可捕获全面的 Google AI Overview 响应,包括丰富的产品数据、引用、广告和网页来源,帮助你分析不同地区的搜索结果。

请求示例

curl 'https://api.scrapeless.com/api/v2/scraper/request' \
--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",
        "shopping": true
    },
    "webhook": {
        "url": "http://www.youwebhook.com"
    }
}'

请求体参数

ParameterTypeRequiredDescription
promptstring是发送给 Google AI Overview 的提示词。
countrystring是国家或地区代码。
shoppingboolean否是否获取购物数据。默认为 true。启用后,响应会在 products 字段中包含额外的产品信息——每个产品聚类背后的商家报价,例如直达店铺 URL、价格、分期付款、库存、配送和退货等。
locationstring否用于地理定位结果的 Google 规范位置名称(例如 New York,New York,United States)。所有支持的位置请参见 Google 的地理目标列表。与 uule 互斥。
uulestring否预编码的 Google UULE 字符串,用于精确地理定位。当你已有预先构建的 UULE 值而非位置名称时使用。与 location 互斥。
should_fetch_share_linkboolean否获取分享链接。

响应字段

注意: 当启用 shopping 且响应返回这些额外产品信息时,该 API 调用将按 基础费率的 2 倍 计费。这是由于从多个来源提取和处理产品信息所需的额外资源开销。

💡 当未触发 overview 模式时,content 和 rawtext 字段都将为空字符串。

💡 要触发 overview 模式,你可以尝试调整提示词,或确保提示词中的关键词被 Google Overview 覆盖。

数据字段 Source: AI overview 内的产品

typeproduct_positiondescription
productrecommended推荐产品
productinline_link内联链接产品
productreference引用产品
ads productnull广告产品

数据字段 Products: Google 站内赞助产品

数据字段 Ads: Google Ads(Serp)

ParameterTypeDescription
contentstringMarkdown 格式的答案正文。仅在触发 overview 模式时填充;否则为空字符串。
rawtextstring原始答案数据。仅在触发 overview 模式时填充;否则为空字符串。
metadataobject元数据信息。
metadata.rawUrlstring网页 URL。
is_overview_shoppingboolean是否包含嵌入的购物数据。
productsarray产品数据。
products.deliverystring配送服务。
products.discountstring折扣信息。
products.imgstring产品图片 URL。
products.orig_pricestring原价。
products.ratingstring评分。
products.review_countstring评论数量。
products.sellerstring卖家。
products.urlstring产品详情页 URL。
products.storesarray店铺信息。
products.stores.delivery_feestring配送费。
products.stores.extensionsarray附加服务。
products.stores.linkstring产品跳转链接。
products.stores.namestring店铺名称。
products.stores.pricestring售价。
products.ratingsstring评分。
products.tagstring标签。
products.titlestring产品标题。
products.total_pricestring总价。
sourcearray引用来源。
source.faviconstring网站图标。
source.snippetstring引用文章摘要。
source.thumbnailstring引用文章封面图。
source.titlestring引用标题。
source.typestring来源类型。
source.urlstring引用原始 URL。
source.website_namestring网站名称。
source.html_indexint表示推荐产品购物卡片在 Markdown 内容中的位置。
source.storesarray店铺信息。
source.stores.delivery_feestring配送费。
source.stores.extensionsarray附加服务。
source.stores.linkstring产品跳转链接。
source.stores.namestring店铺名称。
source.stores.pricestring售价。
web_sourcearray网页搜索来源。
web_source.faviconstring网站图标。
web_source.snippetstring引用文章摘要。
web_source.thumbnailstring引用文章封面图。
web_source.titlestring引用标题。
web_source.urlstring引用原始 URL。
web_source.website_namestring网站名称。
web_source.storesarray店铺信息。
web_source.stores.delivery_feestring配送费。
web_source.stores.extensionsarray附加服务。
web_source.stores.linkstring产品跳转链接。
web_source.stores.namestring店铺名称。
web_source.stores.pricestring售价。
adsarray广告。
ads.section_titlestring版块标题。
ads.typestring类型。
ads.titlestring标题。
ads.urlstring网页 URL。
ads.google_ad_urlstring广告链接。
ads.display_urlstring显示 URL。
ads.advertiserstring广告主。
ads.descriptionstring描述。
ads.tracking_tokenstring追踪令牌。
ads.slotstring广告位编号。
ads.pricestring价格。
ads.orig_pricestring原价。
ads.sellerstring卖家。
ads.ratingstring评分。
ads.review_countstring评论数量。
ads.imgstring产品图片 URL。
ads.site_linksarray网站链接。
ads.site_links.titlestring标题。
ads.site_links.urlstring网页 URL。
ads.site_links.google_ad_urlstring广告链接。
productsarrayGoogle Overview Mode 返回的产品信息。
products.thumbnailsarray产品缩略图 URL 数组。
products.titlestring产品标题。
products.urlstring产品页面 URL。
products.brandstring产品品牌名称。
products.reviewsint评论数量。
products.ratingstring平均评分。
products.price_rangestring价格区间,例如 $2,499.99。
products.storesarray店铺报价数组。
products.stores.namestring店铺名称。
products.stores.linkstring店铺产品链接。
products.stores.titlestring店铺中的产品标题。
products.stores.ratingsstring店铺评分,例如 4.3/5。
products.stores.extensionsarray附加信息(库存、配送、退货)。
products.stores.pricestring店铺价格。
products.stores.delivery_feestring配送费信息。
products.stores.total_pricestring含费用总价。
products.about_the_productobject详细产品信息。
products.about_the_product.titlestring版块标题。
products.about_the_product.linkstring产品页面链接。
products.about_the_product.displayed_linkstring显示的域名。
products.about_the_product.featuresarray产品特性/规格。
products.about_the_product.features.titlestring特性名称。
products.about_the_product.features.valuestring特性值。
products.about_the_product.descriptionstring产品描述。
products.variantsarray产品变体选项。
products.variants.titlestring变体类别标题。
products.variants.itemsarray变体选项列表。
products.variants.items.namestring变体选项名称。
products.variants.items.selectedbool是否选中该变体。
products.variants.items.availabilitybool变体可用状态。
products.ratingsarray评分分布数据。
products.ratings.starsint星级评分等级(1-5)。
products.ratings.amountint该等级的评分数量。
products.user_reviewsarray用户评论数据。
products.user_reviews.textstring评论文本内容。
products.user_reviews.sourcestring评论来源平台。
products.user_reviews.ratingint用户评分。
products.user_reviews.datestring评论日期。
products.user_reviews.namestring评论者名称。
products.user_reviews.titlestring评论标题。
share_urlstring分享链接。