API Hop 文档
Google Shopping 接口参考
搜索 Google Shopping 商品,查询筛选条件、商品详情和商家报价。
并发上限
AI 与 Data 分别共享账户级并发槽位,默认 5 AI / 2 Data,订阅套餐可调整上限。接口单独配置仍受分类总上限约束。达到任一上限返回 HTTP 429;异步任务执行结束前占用槽位。
GET /v1/google-shopping/search GET /v1/google-shopping/light GET /v1/google-shopping/filters GET /v1/google-shopping/product GET /v1/google-shopping/immersive-product 搜索 Google Shopping 商品,查询筛选条件、商品详情和商家报价。
认证与计费
默认每次成功请求 $0.0003(300 credits)。 使用 API Hop API Key。可用性取决于已启用网关和密钥权限。每次成功请求的价格以当前目录和账户显示为准,账户专属价格优先。成功的空结果也计费,失败请求释放预占额度。超时为 60 秒,不自动重试或翻页,结算失败不会重复调用上游。
Authorization: Bearer YOUR_API_KEYGoogle Shopping: 搜索商品
GET https://api.apihop.ai/v1/google-shopping/search
请求参数
| 字段 | 类型 | 约束 | 示例 |
|---|---|---|---|
query | string | 搜索词; query: optional | coffee grinder |
country | string | 国家或站点代码 (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | 语言; language: optional | - |
page | integer | 页码(从 1 开始); page: optional; min: 1; max: 1000 | 1 |
device | string | 设备; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | 不归档响应产物; zero_trace: optional | true |
location | string | 搜索起点; location: optional | - |
latitude | number | 纬度; latitude: optional; min: -90; max: 90 | -90 |
longitude | number | 经度; longitude: optional; min: -180; max: 180 | -180 |
safe | string | 平台原生筛选条件 (safe); safe: optional; active, off | active |
uule | string | 平台原生筛选条件 (uule); uule: optional; UTF-8 bytes: 4096 | - |
google_domain | string | 平台区域域名 (google_domain); google_domain: optional | - |
start | integer | 结果偏移量; start: optional; min: 0; max: 1000 | 0 |
shoprs | string | 平台原生筛选条件 (shoprs); shoprs: optional; UTF-8 bytes: 16384 | - |
min_price | number | 最低价格 (min_price); min_price: optional; min: 0; max: 1000000000 | 0 |
max_price | number | 最高价格 (max_price); max_price: optional; min: 0; max: 1000000000 | 0 |
sort_by | string | 排序; sort_by: optional; 1, 2 | 1 |
free_shipping | boolean | 免运费筛选 (free_shipping); free_shipping: optional | true |
on_sale | boolean | 促销商品筛选 (on_sale); on_sale: optional | true |
small_business | boolean | 小型商家筛选 (small_business); small_business: optional | true |
校验规则
仅接受查询参数,不接受请求体。拒绝未知、重复、空值或无效参数。仅支持 JSON 响应,不自动翻页或重试。下列规则中 AND 表示同时提供,OR 表示任一,XOR 表示二选一,NOT 表示不能提供,=> 表示需要。
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/latitude => longitude; longitude => latitudeNOT (page AND start)min_price <= max_pricequery OR shoprs: requireduule => NOT location AND NOT latitude AND NOT longitude
示例
curl --get "https://api.apihop.ai/v1/google-shopping/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee grinder"Google Shopping: 轻量商品搜索
GET https://api.apihop.ai/v1/google-shopping/light
请求参数
| 字段 | 类型 | 约束 | 示例 |
|---|---|---|---|
query | string | 搜索词; query: optional | coffee grinder |
country | string | 国家或站点代码 (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | 语言; language: optional | - |
page | integer | 页码(从 1 开始); page: optional; min: 1; max: 1000 | 1 |
device | string | 设备; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | 不归档响应产物; zero_trace: optional | true |
location | string | 搜索起点; location: optional | - |
latitude | number | 纬度; latitude: optional; min: -90; max: 90 | -90 |
longitude | number | 经度; longitude: optional; min: -180; max: 180 | -180 |
safe | string | 平台原生筛选条件 (safe); safe: optional; active, off | active |
uule | string | 平台原生筛选条件 (uule); uule: optional; UTF-8 bytes: 4096 | - |
google_domain | string | 平台区域域名 (google_domain); google_domain: optional | - |
start | integer | 结果偏移量; start: optional; min: 0; max: 1000 | 0 |
shoprs | string | 平台原生筛选条件 (shoprs); shoprs: optional; UTF-8 bytes: 16384 | - |
min_price | number | 最低价格 (min_price); min_price: optional; min: 0; max: 1000000000 | 0 |
max_price | number | 最高价格 (max_price); max_price: optional; min: 0; max: 1000000000 | 0 |
sort_by | string | 排序; sort_by: optional; 1, 2 | 1 |
free_shipping | boolean | 免运费筛选 (free_shipping); free_shipping: optional | true |
on_sale | boolean | 促销商品筛选 (on_sale); on_sale: optional | true |
small_business | boolean | 小型商家筛选 (small_business); small_business: optional | true |
校验规则
仅接受查询参数,不接受请求体。拒绝未知、重复、空值或无效参数。仅支持 JSON 响应,不自动翻页或重试。下列规则中 AND 表示同时提供,OR 表示任一,XOR 表示二选一,NOT 表示不能提供,=> 表示需要。
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/latitude => longitude; longitude => latitudeNOT (page AND start)min_price <= max_pricequery OR shoprs: requireduule => NOT location AND NOT latitude AND NOT longitude
示例
curl --get "https://api.apihop.ai/v1/google-shopping/light" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee grinder"Google Shopping: 查询商品筛选条件
GET https://api.apihop.ai/v1/google-shopping/filters
请求参数
| 字段 | 类型 | 约束 | 示例 |
|---|---|---|---|
query | string | 搜索词; query: REQUIRED | coffee grinder |
country | string | 国家或站点代码 (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | 语言; language: optional | - |
location | string | 搜索起点; location: optional | - |
latitude | number | 纬度; latitude: optional; min: -90; max: 90 | -90 |
longitude | number | 经度; longitude: optional; min: -180; max: 180 | -180 |
uule | string | 平台原生筛选条件 (uule); uule: optional; UTF-8 bytes: 4096 | - |
google_domain | string | 平台区域域名 (google_domain); google_domain: optional | - |
shoprs | string | 平台原生筛选条件 (shoprs); shoprs: optional; UTF-8 bytes: 16384 | - |
device | string | 设备; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | 不归档响应产物; zero_trace: optional | true |
校验规则
仅接受查询参数,不接受请求体。拒绝未知、重复、空值或无效参数。仅支持 JSON 响应,不自动翻页或重试。下列规则中 AND 表示同时提供,OR 表示任一,XOR 表示二选一,NOT 表示不能提供,=> 表示需要。
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/latitude => longitude; longitude => latitudeuule => NOT location AND NOT latitude AND NOT longitude
示例
curl --get "https://api.apihop.ai/v1/google-shopping/filters" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee grinder"Google Shopping: 查询商品详情
GET https://api.apihop.ai/v1/google-shopping/product
请求参数
| 字段 | 类型 | 约束 | 示例 |
|---|---|---|---|
id | string | 从搜索结果复制的商品或卖家标识 (id); id: optional | 17755277695162489284 |
query | string | 搜索词; query: optional | sony wh-1000xm5 |
country | string | 国家或站点代码 (country); country: optional; ^[A-Za-z]{2}$ | - |
language | string | 语言; language: optional | - |
zero_trace | boolean | 不归档响应产物; zero_trace: optional | true |
page_token | string | 从最新响应复制的商品选择令牌 (page_token); page_token: optional; UTF-8 bytes: 16384 | - |
offer_view | boolean | 其他商家报价选项 (offer_view); offer_view: optional | true |
校验规则
仅接受查询参数,不接受请求体。拒绝未知、重复、空值或无效参数。仅支持 JSON 响应,不自动翻页或重试。下列规则中 AND 表示同时提供,OR 表示任一,XOR 表示二选一,NOT 表示不能提供,=> 表示需要。
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/id XOR page_token: required; page_token => NOT query AND NOT country AND NOT language AND NOT offer_viewid: /^[0-9]{1,30}$/Tokens: copy the exact token from a fresh response; do not invent or reuse expired tokens
示例
curl --get "https://api.apihop.ai/v1/google-shopping/product" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=17755277695162489284" \
--data-urlencode "query=sony wh-1000xm5"Google Shopping: 查询沉浸式商品详情
GET https://api.apihop.ai/v1/google-shopping/immersive-product
请求参数
| 字段 | 类型 | 约束 | 示例 |
|---|---|---|---|
page_token | string | 从最新响应复制的商品选择令牌 (page_token); page_token: REQUIRED; UTF-8 bytes: 16384 | gprod1.eyJ2IjoxLCJpZCI6IjE3NzU1Mjc3Njk1MTYyNDg5Mjg0IiwicSI6InNvbnkgd2gtMTAwMHhtNSIsImdsIjoidXMiLCJobCI6ImVuIn0 |
more_stores | boolean | 展开商店报价 (more_stores); more_stores: optional | true |
next_page_token | string | 下一页令牌; next_page_token: optional; UTF-8 bytes: 24576 | - |
zero_trace | boolean | 不归档响应产物; zero_trace: optional | true |
校验规则
仅接受查询参数,不接受请求体。拒绝未知、重复、空值或无效参数。仅支持 JSON 响应,不自动翻页或重试。下列规则中 AND 表示同时提供,OR 表示任一,XOR 表示二选一,NOT 表示不能提供,=> 表示需要。
GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supportedstring: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integerlanguage: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/page_token: copy immersive_product_page_token from a fresh search result; next_page_token requires more_stores = trueTokens: copy the exact token from a fresh response; do not invent or reuse expired tokens
示例
curl --get "https://api.apihop.ai/v1/google-shopping/immersive-product" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "page_token=gprod1.eyJ2IjoxLCJpZCI6IjE3NzU1Mjc3Njk1MTYyNDg5Mjg0IiwicSI6InNvbnkgd2gtMTAwMHhtNSIsImdsIjoidXMiLCJobCI6ImVuIn0"响应与错误
保留原生 JSON 响应和数字精度。下方仅为空成功结果示例,不是真实调用。HTTP 400 表示输入无效;401 需要认证;402 余额不足;403 不可用或无权限;405 方法不支持;429 限流;5xx 服务或上游故障。请保留 X-Request-Id 以便排查。
{
"success": true,
"request_id": "example-request",
"data": {
"format": "json",
"content": {
"results": []
}
}
}