API Hop 文档
Home Depot 接口参考
搜索 Home Depot 商品,查询商品详情和评论。
并发上限
AI 与 Data 分别共享账户级并发槽位,默认 5 AI / 2 Data,订阅套餐可调整上限。接口单独配置仍受分类总上限约束。达到任一上限返回 HTTP 429;异步任务执行结束前占用槽位。
GET /v1/home-depot/search GET /v1/home-depot/product GET /v1/home-depot/reviews 搜索 Home Depot 商品,查询商品详情和评论。
认证与计费
默认每次成功请求 $0.0003(300 credits)。 使用 API Hop API Key。可用性取决于已启用网关和密钥权限。每次成功请求的价格以当前目录和账户显示为准,账户专属价格优先。成功的空结果也计费,失败请求释放预占额度。超时为 60 秒,不自动重试或翻页,结算失败不会重复调用上游。
Authorization: Bearer YOUR_API_KEYHome Depot: 搜索商品
GET https://api.apihop.ai/v1/home-depot/search
请求参数
| 字段 | 类型 | 约束 | 示例 |
|---|---|---|---|
query | string | 搜索词; query: REQUIRED | coffee |
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 |
country | string | 国家或站点代码 (country); country: optional; us, ca; ^[A-Za-z]{2}$ | us |
store | string | 平台原生筛选条件 (store); country=ca; 默认值: 7140; store: optional; ^[0-9]{1,6}$ | - |
sort | string | 平台原生排序 (sort); sort: optional; price-asc, price-desc, reviewAvgRating, relevance | price-asc |
filter | string | 平台原生筛选条件 (filter); filter: optional; ^[A-Za-z0-9]+(-[A-Za-z0-9]+){0,49}$ | - |
minmax | string | 范围(最小值或最小值,最大值) (minmax); 示例: price:[100 TO 500], price:[100 TO *]; minmax: optional; UTF-8 bytes: 200 | - |
pagesize | integer | 每页结果数量 (pagesize); pagesize: optional; min: 1; max: 40 | 1 |
delivery_zip | string | 配送邮编 (delivery_zip); delivery_zip: optional; ^[0-9]{5}$ | - |
store_id | string | 平台原生筛选条件 (store_id); store_id: optional; ^[0-9]{1,4}$ | - |
hd_sort | string | 平台原生排序 (hd_sort); hd_sort: optional; top_sellers, price_low_to_high, price_high_to_low, top_rated, best_match | top_sellers |
hd_filter_tokens | string | 平台原生筛选条件 (hd_filter_tokens); hd_filter_tokens: optional; UTF-8 bytes: 1000; ^[a-z0-9]+(,[a-z0-9]+){0,49}$ | - |
ps | integer | 每页结果数量 (ps); ps: optional; min: 1; max: 24 | 1 |
nao | integer | 平台原生筛选条件 (nao); nao: optional; min: 0; max: 720 | 0 |
lowerbound | integer | 最低价格 (lowerbound); lowerbound: optional; min: 0; max: 2147483647 | 0 |
upperbound | integer | 最高价格 (upperbound); upperbound: optional; min: 1; max: 2147483647 | 1 |
校验规则
仅接受查询参数,不接受请求体。拒绝未知、重复、空值或无效参数。仅支持 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})?$/lowerbound <= upperboundpage > 1 => NOT nao AND NOT startcountry = ca => NOT delivery_zip AND NOT store_id AND NOT hd_sort AND NOT hd_filter_tokens AND NOT ps AND NOT nao AND NOT lowerbound AND NOT upperboundcountry = us (default) => NOT store AND NOT sort AND NOT filter AND NOT minmax AND NOT pagesize
示例
curl --get "https://api.apihop.ai/v1/home-depot/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee"Home Depot: 查询商品详情
GET https://api.apihop.ai/v1/home-depot/product
请求参数
| 字段 | 类型 | 约束 | 示例 |
|---|---|---|---|
id | string | 从搜索结果复制的商品或卖家标识 (id); id: REQUIRED | 336764862 |
device | string | 设备; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | 不归档响应产物; zero_trace: optional | true |
delivery_zip | string | 配送邮编 (delivery_zip); delivery_zip: optional; ^[0-9]{5}$ | - |
store_id | string | 平台原生筛选条件 (store_id); store_id: optional; ^[0-9]{1,4}$ | - |
校验规则
仅接受查询参数,不接受请求体。拒绝未知、重复、空值或无效参数。仅支持 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: /^[0-9]{1,30}$/
示例
curl --get "https://api.apihop.ai/v1/home-depot/product" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=336764862"Home Depot: 查询评论
GET https://api.apihop.ai/v1/home-depot/reviews
请求参数
| 字段 | 类型 | 约束 | 示例 |
|---|---|---|---|
id | string | 从搜索结果复制的商品或卖家标识 (id); id: REQUIRED | 336764862 |
page | integer | 页码(从 1 开始); page: optional; min: 1; max: 100 | 1 |
device | string | 设备; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | 不归档响应产物; zero_trace: optional | true |
term | string | 平台原生筛选条件 (term); term: optional; UTF-8 bytes: 1000 | - |
rating | string | 星级(逗号分隔); rating: optional; ^[1-5](,[1-5]){0,4}$ | - |
sort_by | string | 排序; sort_by: optional; photoreview, mosthelpfull, oldest, newest, highestrating, lowestrating | photoreview |
verified_purchases | boolean | 平台原生筛选条件 (verified_purchases); verified_purchases: optional | true |
start | integer | 结果偏移量; start: optional; min: 1; max: 100001 | 1 |
pagesize | integer | 每页结果数量 (pagesize); pagesize: optional; min: 1; max: 100 | 1 |
校验规则
仅接受查询参数,不接受请求体。拒绝未知、重复、空值或无效参数。仅支持 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})?$/NOT (page AND start)page > 1 => NOT nao AND NOT startid: /^[0-9]{1,30}$/
示例
curl --get "https://api.apihop.ai/v1/home-depot/reviews" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=336764862"响应与错误
保留原生 JSON 响应和数字精度。下方仅为空成功结果示例,不是真实调用。HTTP 400 表示输入无效;401 需要认证;402 余额不足;403 不可用或无权限;405 方法不支持;429 限流;5xx 服务或上游故障。请保留 X-Request-Id 以便排查。
{
"success": true,
"request_id": "example-request",
"data": {
"format": "json",
"content": {
"results": []
}
}
}