Sand AISand AI MAGI-2MAGI-2 現已登上 SandBase:支援原生音訊的 1080p 影片立即試用

Walmart Search

API 文件
https://api.sandbase.ai/v1/api/walmart/search

Search Walmart products by keyword with price, rating, reviews, seller and fulfillment badges, plus sorting, price filters and pagination.

價格
$0.015美元/次呼叫
方法
POST
回應
非同步 JSON
參數
1 個必填 · 14 個選填

Playground

輸入
The search query. You can use anything that you would use in a regular Walmart search. Either a `query` or a `cat_id` parameter is required.
Value is used to get the items on a specific page. (e.g., `1` (default) is the first page of results, `2` is the 2nd page of results, `3` is the 3rd page of results, etc.). Maximum `page` value is `100`.
Sorting. (e.g. `price_low`, `price_high`, `best_seller`, `best_match`, `rating_high`, `new`). **Note:** `best_seller`, `rating_high`, and `new` are not supported for `walmart.com.mx`.
Items filtering based on their attributes. The structure is a list of `key:value` pairs separated by `||`. The key and value are separated by `:`
Show results with NextDay delivery only. Set to `true` to enable or `false` (default) to disable. **Note:** not supported for `walmart.com.mx`.
Category on Walmart Search. (e.g. `0` (default) is all departments, `976759_976787` is 'Cookies', etc.). Either a `query` or a `cat_id` parameter is required. **Note:** not supported for `walmart.com.mx`.
The device to use to get the results. It can be set to `desktop` (default) to use a regular browser, `tablet` to use a tablet browser (currently using iPads), or `mobile` to use a mobile browser.
Activate spelling fix. `true` (default) includes spelling fix, `false` searches without spelling fix.
Store ID to filter the products by the specific store only. Head to the Walmart Stores Locations for a full list of supported stores. It's possible for the product pricing to differ between stores.
Upper bound of price range query.
Lower bound of price range query.
Enables sort by relevance. Walmart is by default showing results sorted by relevance and using the `sort` option. Set to `false` to disable sort by Relevance. **Note:** not supported for `walmart.com.mx`.
The Walmart domain to use. It defaults to `walmart.com`. Head to the Walmart Stores for a full list of supported stores per domain.
Include `filters` to the JSON response. Set to `true` to enable or `false` to disable (default).
The fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
輸出就緒

您的輸出會顯示在這裡

完成輸入後,點擊執行。

API README

Walmart Search

Returns one page of Walmart search results for a keyword. Each result has the title, price, rating, review count, seller and shipping flags. The only required input is query, such as laptop.

Use cases

  • Track the price and was_price discount of laptops from different sellers.
  • Compare ratings and review counts across products for a keyword.
  • Build a list of product IDs to feed into product page or review lookups.
  • Check which sellers appear for a search term and whether results are sponsored.

Request

curl -X POST "https://api.sandbase.ai/v1/api/walmart/search" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "laptop"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
query['string', 'number', 'boolean']YesThe search query. You can use anything that you would use in a regular Walmart search. Either a query or a cat_id parameter is required.
cat_id['string', 'number', 'boolean']NoCategory on Walmart Search. (e.g. 0 (default) is all departments, 976759_976787 is 'Cookies', etc.). Either a query or a cat_id parameter is required. Note: not supported for walmart.com.mx.
device['string', 'number', 'boolean']NoThe device to use to get the results. It can be set to desktop (default) to use a regular browser, tablet to use a tablet browser (currently using iPads), or mobile to use a mobile browser.
facet['string', 'number', 'boolean']NoItems filtering based on their attributes. The structure is a list of key:value pairs separated by //. The key and value are separated by :
include_filtersstringNoInclude filters to the JSON response. Set to true to enable or false to disable (default).
json_restrictor['string', 'number', 'boolean']NoThe fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
max_price['string', 'number', 'boolean']NoUpper bound of price range query.
min_price['string', 'number', 'boolean']NoLower bound of price range query.
nd_enstringNoShow results with NextDay delivery only. Set to true to enable or false (default) to disable. Note: not supported for walmart.com.mx.
page['string', 'number', 'boolean']NoValue is used to get the items on a specific page. (e.g., 1 (default) is the first page of results, 2 is the 2nd page of results, 3 is the 3rd page of results, etc.). Maximum page value is 100.
soft_sort['string', 'number', 'boolean']NoEnables sort by relevance. Walmart is by default showing results sorted by relevance and using the sort option. Set to false to disable sort by Relevance. Note: not supported for walmart.com.mx.
sort['string', 'number', 'boolean']NoSorting. (e.g. price_low, price_high, best_seller, best_match, rating_high, new). Note: best_seller, rating_high, and new are not supported for walmart.com.mx.
spellingstringNoActivate spelling fix. true (default) includes spelling fix, false searches without spelling fix.
store_id['string', 'number', 'boolean']NoStore ID to filter the products by the specific store only. Head to the Walmart Stores Locations for a full list of supported stores. It's possible for the product pricing to differ between stores.
walmart_domain['string', 'number', 'boolean']NoThe Walmart domain to use. It defaults to walmart.com. Head to the Walmart Stores for a full list of supported stores per domain.

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "organic_results": [
    {
      "free_shipping": false,
      "free_shipping_with_walmart_plus": false,
      "muliple_options_available": false,
      "multiple_options_available": false,
      "out_of_stock": false,
      "price_per_unit": {
        "currency": "USD",
        "unit": "each"
      },
      "primary_offer": {
        "currency": "USD",
        "offer_id": "44B94199498A3672AA257F39DA66AA0F",
        "offer_price": 197,
        "was_price": 219
      },
      "product_id": "1V55QUSDTIGB",
      "product_page_url": "https://www.walmart.com/ip/ASUS-Chromebook-CX15-Laptop-15-6-FHD-NanoEdge-Display…",
      "product_type": "Laptop Computers",
      "rating": 4.3,
      "reviews": 1941
    }
  ],
  "pagination": {
    "current": 1,
    "next": "https://www.walmart.com/search?adSlot=WSpread&affinityOverride=default&cat_id=0&…",
    "other_pages": {
      "10": "https://www.walmart.com/search?adSlot=WSpread&affinityOverride=default&cat_id=0&…",
      "11": "https://www.walmart.com/search?adSlot=WSpread&affinityOverride=default&cat_id=0&…",
      "12": "https://www.walmart.com/search?adSlot=WSpread&affinityOverride=default&cat_id=0&…",
      "13": "https://www.walmart.com/search?adSlot=WSpread&affinityOverride=default&cat_id=0&…",
      "2": "https://www.walmart.com/search?adSlot=WSpread&affinityOverride=default&cat_id=0&…",
      "3": "https://www.walmart.com/search?adSlot=WSpread&affinityOverride=default&cat_id=0&…",
      "4": "https://www.walmart.com/search?adSlot=WSpread&affinityOverride=default&cat_id=0&…",
      "5": "https://www.walmart.com/search?adSlot=WSpread&affinityOverride=default&cat_id=0&…",
      "6": "https://www.walmart.com/search?adSlot=WSpread&affinityOverride=default&cat_id=0&…",
      "7": "https://www.walmart.com/search?adSlot=WSpread&affinityOverride=default&cat_id=0&…",
      "8": "https://www.walmart.com/search?adSlot=WSpread&affinityOverride=default&cat_id=0&…",
      "9": "https://www.walmart.com/search?adSlot=WSpread&affinityOverride=default&cat_id=0&…"
    }
  },
  "search_information": {
    "location": {
      "city": "Orlando",
      "postal_code": "32837",
      "province_code": "FL",
      "store_id": "2881"
    },
    "organic_results_state": "Results for exact spelling",
    "query_displayed": "laptop",
    "time_taken": 0.995,
    "total_results": 25259
  },
  "search_metadata": {
    "cached": false,
    "created_at": "2026-11-03 07:45:08 UTC",
    "id": "6ae99104951d73c01c846a84",
    "processed_at": "2026-11-03 07:45:08 UTC",
    "status": "Success",
    "total_time_taken": 4.24,
    "walmart_url": "https://www.walmart.com/search?query=laptop"
  },
  "search_parameters": {
    "device": "desktop",
    "engine": "walmart",
    "query": "laptop",
    "walmart_domain": "walmart.com"
  },
  "serpapi_pagination": {
    "current": 1,
    "next": {
      "endpoint": "/walmart/search",
      "queryParams": {
        "cat_id": "0",
        "device": "desktop",
        "page": "2",
        "query": "laptop",
        "sort": "best_match",
        "spelling": "true",
        "walmart_domain": "walmart.com"
      }
    },
    "next_link": {
      "endpoint": "/walmart/search",
      "queryParams": {
        "cat_id": "0",
        "device": "desktop",
        "page": "2",
        "query": "laptop",
        "sort": "best_match",
        "spelling": "true",
        "walmart_domain": "walmart.com"
      }
    },
    "other_pages": {
      "10": {
        "endpoint": "/walmart/search",
        "queryParams": {
          "cat_id": "0",
          "device": "desktop",
          "page": "10",
          "query": "laptop",
          "sort": "best_match",
          "spelling": "true",
          "walmart_domain": "walmart.com"
        }
      },
      "11": {
        "endpoint": "/walmart/search",
        "queryParams": {
          "cat_id": "0",
          "device": "desktop",
          "page": "11",
          "query": "laptop",
          "sort": "best_match",
          "spelling": "true",
          "walmart_domain": "walmart.com"
        }
      },
      "12": {
        "endpoint": "/walmart/search",
        "queryParams": {
          "cat_id": "0",
          "device": "desktop",
          "page": "12",
          "query": "laptop",
          "sort": "best_match",
          "spelling": "true",
          "walmart_domain": "walmart.com"
        }
      },
      "13": {
        "endpoint": "/walmart/search",
        "queryParams": {
          "cat_id": "0",
          "device": "desktop",
          "page": "13",
          "query": "laptop",
          "sort": "best_match",
          "spelling": "true",
          "walmart_domain": "walmart.com"
        }
      },
      "2": {
        "endpoint": "/walmart/search",
        "queryParams": {
          "cat_id": "0",
          "device": "desktop",
          "page": "2",
          "query": "laptop",
          "sort": "best_match",
          "spelling": "true",
          "walmart_domain": "walmart.com"
        }
      },
      "3": {
        "endpoint": "/walmart/search",
        "queryParams": {
          "cat_id": "0",
          "device": "desktop",
          "page": "3",
          "query": "laptop",
          "sort": "best_match",
          "spelling": "true",
          "walmart_domain": "walmart.com"
        }
      },
      "4": {
        "endpoint": "/walmart/search",
        "queryParams": {
          "cat_id": "0",
          "device": "desktop",
          "page": "4",
          "query": "laptop",
          "sort": "best_match",
          "spelling": "true",
          "walmart_domain": "walmart.com"
        }
      },
      "5": {
        "endpoint": "/walmart/search",
        "queryParams": {
          "cat_id": "0",
          "device": "desktop",
          "page": "5",
          "query": "laptop",
          "sort": "best_match",
          "spelling": "true",
          "walmart_domain": "walmart.com"
        }
      },
      "6": {
        "endpoint": "/walmart/search",
        "queryParams": {
          "cat_id": "0",
          "device": "desktop",
          "page": "6",
          "query": "laptop",
          "sort": "best_match",
          "spelling": "true",
          "walmart_domain": "walmart.com"
        }
      },
      "7": {
        "endpoint": "/walmart/search",
        "queryParams": {
          "cat_id": "0",
          "device": "desktop",
          "page": "7",
          "query": "laptop",
          "sort": "best_match",
          "spelling": "true",
          "walmart_domain": "walmart.com"
        }
      },
      "8": {
        "endpoint": "/walmart/search",
        "queryParams": {
          "cat_id": "0",
          "device": "desktop",
          "page": "8",
          "query": "laptop",
          "sort": "best_match",
          "spelling": "true",
          "walmart_domain": "walmart.com"
        }
      },
      "9": {
        "endpoint": "/walmart/search",
        "queryParams": {
          "cat_id": "0",
          "device": "desktop",
          "page": "9",
          "query": "laptop",
          "sort": "best_match",
          "spelling": "true",
          "walmart_domain": "walmart.com"
        }
      }
    }
  }
}

Response fields

FieldMeaning
organic_results[].titleProduct title as shown in the search result.
organic_results[].primary_offer.offer_price / organic_results[].primary_offer.was_priceCurrent price and previous price of the main offer. was_price only appears when the item is discounted.
organic_results[].primary_offer.currencyCurrency code of the offer, such as USD.
organic_results[].rating / organic_results[].reviewsAverage rating and number of reviews for the product.
organic_results[].seller_name / organic_results[].seller_idName and ID of the seller that holds the main offer.
organic_results[].us_item_idWalmart item ID. It matches the product_id value in serpapi_product_page_url.queryParams.
organic_results[].sponsoredtrue when the result is a paid placement.
organic_results[].free_shipping / organic_results[].two_day_shipping / organic_results[].out_of_stockFlags for free shipping, two-day shipping and stock status.
search_information.total_resultsNumber of results Walmart reports for the query.
serpapi_pagination.nextEndpoint and query parameters for the next page of results.

Notes

  • Set page to move through results. The response lists page links such as 2 and 3 under serpapi_pagination.other_pages. The maximum page value is 100.
  • Use organic_results[].serpapi_product_page_url.queryParams.product_id (the same value as us_item_id) to look up one product with Walmart Product Page.
  • Use the same item ID with Walmart Product Reviews to read reviews.
  • The product_id field at the top of each result is a different value from us_item_id. Use us_item_id for follow-up calls.

Pricing

$0.015 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

探索更多

相關 APIs

所有 APIs
API價格回應
Walmart每次呼叫 $0.015非同步 JSON
Walmart每次呼叫 $0.001 起JSON
Walmart每次呼叫 $0.015非同步 JSON
Walmart每次呼叫 $0.01非同步 JSON
Walmart每次呼叫 $0.01JSON

指南:Best Walmart API in 2026: Pricing Compared

問題

常見問題

我要如何使用 Walmart Search API?

使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/walmart/search。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。

Walmart Search API 的費用是多少?

每次 $0.015,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。

Walmart Search API 接受哪些參數?

必要:query (string | number | boolean)。 選填:page (string | number | boolean), sort (string | number | boolean), facet (string | number | boolean), nd_en (any), cat_id (string | number | boolean) 和 device (string | number | boolean),以及另外 8 個。 本頁的 Parameters 表格與 Playground 會列出每個欄位。

Walmart Search API 會回傳什麼?

JSON 結果。此端點為非同步執行,因此回應會告訴您如何取得完成的結果。 本頁的 README 包含範例回應。

我需要 Walmart 開發者帳號或 API 金鑰嗎?

不需要。Walmart Search 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 Walmart API 存取權。