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": []
}
}
}