API Hop

文件目錄

API Hop 文件

Walmart 介面參考

搜尋 Walmart 商品,查詢商品詳情、賣家報價與評論。

並行上限

AI 與 Data 分別共用帳戶層級的並行名額,預設 5 AI / 2 Data,訂閱方案可調整上限。介面個別設定仍受類別總上限約束。達到任一上限回傳 HTTP 429;非同步任務執行結束前占用名額。

GET /v1/walmart/search
預設並行上限: 2
GET /v1/walmart/product
預設並行上限: 2
GET /v1/walmart/product/sellers
預設並行上限: 2
GET /v1/walmart/reviews
預設並行上限: 2

搜尋 Walmart 商品,查詢商品詳情、賣家報價與評論。

驗證與計費

預設每次成功請求 $0.0003(300 credits)。 使用 API Hop API Key;可用性取決於已啟用閘道與金鑰權限。成功請求價格以目前目錄與帳戶為準,帳戶專屬價格優先。成功的空結果也會計費,失敗會釋放預留額度。逾時為 60 秒,不自動重試或分頁,結算失敗不會重複呼叫上游。

http
Authorization: Bearer YOUR_API_KEY

Walmart: 搜尋商品

GET https://api.apihop.ai/v1/walmart/search

請求參數

欄位類型限制範例
querystring搜尋詞; query: optionalcoffee
pageinteger頁碼(從 1 開始); page: optional; min: 1; max: 1001
devicestring裝置; device: optional; desktop, mobile, tabletdesktop
zero_traceboolean不封存回應產物; zero_trace: optionaltrue
store_idstring平台原生篩選條件 (store_id); store_id: optional; ^[0-9]{1,10}$-
walmart_domainstring平台區域網域 (walmart_domain); walmart_domain: optional; walmart.com, walmart.com.mxwalmart.com
sortstring平台原生排序 (sort); sort: optional; price_low, price_high, best_seller, best_match, rating_high, newprice_low
soft_sortboolean平台原生篩選條件 (soft_sort); soft_sort: optionaltrue
cat_idstring分類識別碼 (cat_id); cat_id: optional; ^[0-9]+(?:_[0-9]+)*$-
facetstring平台原生篩選條件 (facet); facet: optional; UTF-8 bytes: 4096-
min_pricenumber最低價格 (min_price); min_price: optional; min: 0; max: 10000000000
max_pricenumber最高價格 (max_price); max_price: optional; min: 0; max: 10000000000
spellingboolean平台原生篩選條件 (spelling); spelling: optionaltrue
nd_enboolean平台原生篩選條件 (nd_en); nd_en: optionaltrue
include_filtersboolean平台原生篩選條件 (include_filters); include_filters: optionaltrue

驗證規則

僅接受查詢參數,不接受本文。拒絕未知、重複、空白或無效值。僅支援 JSON 回應,不自動分頁或重試。規則中的 AND 表示同時提供,OR 表示任一,XOR 表示二選一,NOT 表示不得提供,=> 表示需要。

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
  • min_price <= max_price
  • query OR cat_id: required

範例

bash
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

請求參數

欄位類型限制範例
idstring從搜尋結果複製的商品或賣家識別碼 (id); id: REQUIRED510561525
devicestring裝置; device: optional; desktop, mobile, tabletdesktop
zero_traceboolean不封存回應產物; zero_trace: optionaltrue
store_idstring平台原生篩選條件 (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 supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
  • id: /^[0-9]{1,30}$/

範例

bash
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

請求參數

欄位類型限制範例
idstring從搜尋結果複製的商品或賣家識別碼 (id); id: REQUIRED10543894
devicestring裝置; device: optional; desktop, mobile, tabletdesktop
zero_traceboolean不封存回應產物; zero_trace: optionaltrue
store_idstring平台原生篩選條件 (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 supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
  • id: /^[0-9]{1,30}$/

範例

bash
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

請求參數

欄位類型限制範例
idstring從搜尋結果複製的商品或賣家識別碼 (id); id: REQUIRED510561525
pageinteger頁碼(從 1 開始); page: optional; min: 1; max: 1001
devicestring裝置; device: optional; desktop, mobile, tabletdesktop
zero_traceboolean不封存回應產物; zero_trace: optionaltrue
ratinginteger星級(逗號分隔); rating: optional; min: 1; max: 51
sortstring平台原生排序 (sort); sort: optional; relevancy, helpful, submission-desc, submission-asc, rating-desc, rating-ascrelevancy

驗證規則

僅接受查詢參數,不接受本文。拒絕未知、重複、空白或無效值。僅支援 JSON 回應,不自動分頁或重試。規則中的 AND 表示同時提供,OR 表示任一,XOR 表示二選一,NOT 表示不得提供,=> 表示需要。

  • GET query only; body = null; response = JSON; html, output, json_restrictor, no_cache: NOT supported
  • string: UTF-8 bytes <= maxLength (default 8192); boolean = true OR false; integer: safe integer
  • language: /^[A-Za-z]{2,3}(?:[-_][A-Za-z]{2,4})?$/
  • id: /^[0-9]{1,30}$/

範例

bash
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。

json
{
  "success": true,
  "request_id": "example-request",
  "data": {
    "format": "json",
    "content": {
      "results": []
    }
  }
}