API Hop 文件
Walmart 介面參考
搜尋 Walmart 商品,查詢商品詳情、賣家報價與評論。
並行上限
AI 與 Data 分別共用帳戶層級的並行名額,預設 5 AI / 2 Data,訂閱方案可調整上限。介面個別設定仍受類別總上限約束。達到任一上限回傳 HTTP 429;非同步任務執行結束前占用名額。
GET /v1/walmart/search GET /v1/walmart/product GET /v1/walmart/product/sellers GET /v1/walmart/reviews 搜尋 Walmart 商品,查詢商品詳情、賣家報價與評論。
驗證與計費
預設每次成功請求 $0.0003(300 credits)。 使用 API Hop API Key;可用性取決於已啟用閘道與金鑰權限。成功請求價格以目前目錄與帳戶為準,帳戶專屬價格優先。成功的空結果也會計費,失敗會釋放預留額度。逾時為 60 秒,不自動重試或分頁,結算失敗不會重複呼叫上游。
Authorization: Bearer YOUR_API_KEYWalmart: 搜尋商品
GET https://api.apihop.ai/v1/walmart/search
請求參數
| 欄位 | 類型 | 限制 | 範例 |
|---|---|---|---|
query | string | 搜尋詞; query: optional | coffee |
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 |
store_id | string | 平台原生篩選條件 (store_id); store_id: optional; ^[0-9]{1,10}$ | - |
walmart_domain | string | 平台區域網域 (walmart_domain); walmart_domain: optional; walmart.com, walmart.com.mx | walmart.com |
sort | string | 平台原生排序 (sort); sort: optional; price_low, price_high, best_seller, best_match, rating_high, new | price_low |
soft_sort | boolean | 平台原生篩選條件 (soft_sort); soft_sort: optional | true |
cat_id | string | 分類識別碼 (cat_id); cat_id: optional; ^[0-9]+(?:_[0-9]+)*$ | - |
facet | string | 平台原生篩選條件 (facet); facet: optional; UTF-8 bytes: 4096 | - |
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 |
spelling | boolean | 平台原生篩選條件 (spelling); spelling: optional | true |
nd_en | boolean | 平台原生篩選條件 (nd_en); nd_en: optional | true |
include_filters | boolean | 平台原生篩選條件 (include_filters); include_filters: 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})?$/min_price <= max_pricequery OR cat_id: required
範例
curl --get "https://api.apihop.ai/v1/walmart/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "query=coffee"Walmart: 查詢商品詳情
GET https://api.apihop.ai/v1/walmart/product
請求參數
| 欄位 | 類型 | 限制 | 範例 |
|---|---|---|---|
id | string | 從搜尋結果複製的商品或賣家識別碼 (id); id: REQUIRED | 510561525 |
device | string | 裝置; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | 不封存回應產物; zero_trace: optional | true |
store_id | string | 平台原生篩選條件 (store_id); store_id: optional; ^[0-9]{1,10}$ | - |
驗證規則
僅接受查詢參數,不接受本文。拒絕未知、重複、空白或無效值。僅支援 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/walmart/product" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=510561525"Walmart: 查詢賣家報價
GET https://api.apihop.ai/v1/walmart/product/sellers
請求參數
| 欄位 | 類型 | 限制 | 範例 |
|---|---|---|---|
id | string | 從搜尋結果複製的商品或賣家識別碼 (id); id: REQUIRED | 10543894 |
device | string | 裝置; device: optional; desktop, mobile, tablet | desktop |
zero_trace | boolean | 不封存回應產物; zero_trace: optional | true |
store_id | string | 平台原生篩選條件 (store_id); store_id: REQUIRED; ^[1-9][0-9]{0,9}$ | 100 |
驗證規則
僅接受查詢參數,不接受本文。拒絕未知、重複、空白或無效值。僅支援 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/walmart/product/sellers" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=10543894" \
--data-urlencode "store_id=100"Walmart: 查詢評論
GET https://api.apihop.ai/v1/walmart/reviews
請求參數
| 欄位 | 類型 | 限制 | 範例 |
|---|---|---|---|
id | string | 從搜尋結果複製的商品或賣家識別碼 (id); id: REQUIRED | 510561525 |
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 |
rating | integer | 星級(逗號分隔); rating: optional; min: 1; max: 5 | 1 |
sort | string | 平台原生排序 (sort); sort: optional; relevancy, helpful, submission-desc, submission-asc, rating-desc, rating-asc | relevancy |
驗證規則
僅接受查詢參數,不接受本文。拒絕未知、重複、空白或無效值。僅支援 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/walmart/reviews" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "id=510561525"回應與錯誤
保留原生 JSON 與數字精確度。以下是空成功結果範例。HTTP 400 輸入無效;401 需驗證;402 餘額不足;403 無權限或未開放;405 方法不支援;429 限流;5xx 服務錯誤。請保留 X-Request-Id。
{
"success": true,
"request_id": "example-request",
"data": {
"format": "json",
"content": {
"results": []
}
}
}