Google AI Mode Scraper

scraper.aimode 会镜像 Google AI Mode 的响应,包括渲染后的 HTML、原始 URL 以及详细的引用数据,让你能够审计结果在不同区域之间的差异。

Request Example

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"
    }
  }'

Body Parameters

ParameterTypeRequiredDescription
promptstring是发送给 Google AI Mode 的提示词。
countrystring是国家或地区代码。
shoppingboolean否是否获取购物数据。默认为 true。启用后,响应会在 products 字段中包含额外的商品信息——即每个商品聚合背后的商家报价,例如商店直达 URL、价格、分期付款、库存、配送和退货信息。
locationstring否用于地理定向结果的 Google 规范位置名称(例如 New York,New York,United States)。所有受支持的位置请参见 Google’s geo target list。与 uule 互斥。
uulestring否预编码的 Google UULE 字符串,用于精确的地理定向。当你已有预先构建好的 UULE 值(而非位置名称)时使用此参数。与 location 互斥。
urlstring否Google AI Mode 的完整访问链接。与所有其他参数互斥。 如果填写了此参数,则无需传递所有其他请求参数,即使传递也会被自动忽略。
should_fetch_share_linkboolean否获取分享链接。

Response Fields

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

ParameterTypeDescription
result_textstring回答正文。
result_mdstringMarkdown 格式的回答正文。
result_htmlstring回答的 HTML 版本。
raw_urlstring原始 Google AI Mode URL。
citationsarray引用来源。
citations.snippetstring被引用文章的摘要片段。
citations.thumbnailstring被引用文章的封面图。
citations.titlestring引用标题。
citations.urlstring引用 URL。
citations.website_namestring网站名称。
citations.faviconstring网站的 Favicon。
search_resultarrayGoogle 引用的可选搜索结果。
search_result.snippetstring搜索结果摘要片段。
search_result.thumbnailstring搜索结果封面图。
search_result.titlestring搜索结果标题。
search_result.urlstring搜索结果链接。
search_result.website_namestring搜索结果网站名称。
productsarrayGoogle AI 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分享链接。