---
title: "Walmart Search Engine Results API"
description: "Scrape Walmart product search results with SerpApi's Walmart Search Engine Results API. Product titles, descriptions, prices, IDs and more."
url: https://serpapi.com/walmart-search-api
site: "SerpApi – Real-time search engine results API"
signup: https://serpapi.com/users/sign_up
engine: "walmart"
docs:
  pricing: https://serpapi.com/pricing.md
  integrations: https://serpapi.com/integrations.md
---

# Walmart Search Engine Results API

Scrape Walmart product search results with SerpApi's Walmart Search Engine Results API. Product titles, descriptions, prices, IDs and more.

## Example Request

```
GET https://serpapi.com/search?api_key=YOUR_API_KEY&engine=walmart&query=QUERY
```

## API parameters

### Search Query

| Parameter | Required | Description |
|-----------|----------|-------------|
| `query` | **Yes** | Parameter defines 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. |

### Localization

| Parameter | Required | Description |
|-----------|----------|-------------|
| `walmart_domain` | No | Parameter defines the Walmart domain to use. It defaults to `walmart.com`. Head to the [Walmart Stores](https://serpapi.com/walmart-stores) for a full list of supported stores per domain. |

### Advanced parameters

| Parameter | Required | Description |
|-----------|----------|-------------|
| `sort` | No | Parameter defines 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`. |
| `soft_sort` | No | Parameter 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`. |

### Advanced filters

| Parameter | Required | Description |
|-----------|----------|-------------|
| `cat_id` | No | 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`. |
| `facet` | No | Parameter defines items filtering based on their attributes. The structure is a list of `key:value` pairs separated by `||`. The key and value are separated by `:` |
| `store_id` | No | Store ID to filter the products by the specific store only. Head to the [Walmart Stores Locations](https://serpapi.com/walmart-stores) for a full list of supported stores.   It's possible for the product pricing to differ between stores. |
| `min_price` | No | Lower bound of price range query. |
| `max_price` | No | Upper bound of price range query. |
| `spelling` | No | Activate spelling fix. `true` (default) includes spelling fix, `false` searches without spelling fix. |
| `nd_en` | No | Show results with NextDay delivery only. Set to `true` to enable or `false` (default) to disable.   **Note:** not supported for `walmart.com.mx`. |

### Pagination

| Parameter | Required | Description |
|-----------|----------|-------------|
| `page` | No | 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`. |

### SerpApi parameters

| Parameter | Required | Description |
|-----------|----------|-------------|
| `engine` | **Yes** | Set parameter to `walmart` to use the Walmart API engine. |
| `device` | No | Parameter defines 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. |
| `no_cache` | No | Parameter will force SerpApi to fetch the Walmart results even if a cached version is already present. A cache is served only if the query and all parameters are exactly the same. Cache expires after 1h. Cached searches are free, and are not counted towards your searches per month. It can be set to `false` (default) to allow results from the cache, or `true` to disallow results from the cache. `no_cache` and `async` parameters should not be used together. |
| `async` | No | Parameter defines the way you want to submit your search to SerpApi. It can be set to `false` (default) to open an HTTP connection and keep it open until you got your search results, or `true` to just submit your search to SerpApi and retrieve them later. In this case, you'll need to use our [Searches Archive API](https://serpapi.com/search-archive-api) to retrieve your results. `async` and `no_cache` parameters should not be used together. `async` should not be used on accounts with [Ludicrous Speed](https://serpapi.com/plan) enabled. |
| `zero_trace` | No | Enterprise only. Parameter enables [ZeroTrace mode](https://serpapi.com/zero-trace-mode). It can be set to `false` (default) or `true`. Enable this mode to skip storing search parameters, search files, and search metadata on our servers. This may make debugging more difficult. |
| `api_key` | **Yes** | Parameter defines the SerpApi private key to use. |
| `output` | No | Parameter defines the format of the result. It can be set to `json` (default) to get a structured JSON of the results, `html` to get the raw HTML retrieved, or `md` to get a Markdown-formatted version optimized for LLMs and AI agents. |
| `json_restrictor` | No | Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the [JSON Restrictor documentation](https://serpapi.com/json-restrictor) for more details. |
| `include_filters` | No | Include `filters` to the JSON response. Set to `true` to enable or `false` to disable (default). |

## Response Example

Truncated sample response. URLs are illustrative and not accessible.

```json
{
  "search_information": {
    "location": {
      "postal_code": "95829",
      "province_code": "CA",
      "city": "Sacramento",
      "store_id": "3081"
    },
    "time_taken": 0.414,
    "total_results": 1985,
    "query_displayed": "bread",
    "organic_results_state": "Results for exact spelling"
  },
  "organic_results": [
    {
      "us_item_id": "15716765",
      "product_id": "5K530X76O4LD",
      "title": "Bimbo Soft White Bread, 20 oz, White Bread, Bag",
      "thumbnail": "https://i5.walmartimages.com/seo/Bimbo-White-Bread-20-count-White-Bread-20-oz-Bag_cdff182c-e8ff-4...",
      "rating": 4.5,
      "reviews": 4847,
      "seller_id": "F55CDC31AB754BB68FE0B39041159D63",
      "seller_name": "Walmart.com",
      "two_day_shipping": false,
      "free_shipping": false,
      "free_shipping_with_walmart_plus": true,
      "out_of_stock": false,
      "sponsored": true,
      "multiple_options_available": false,
      "muliple_options_available": false,
      "primary_offer": {
        "offer_id": "626FE1B672804490A9F412ABA428C474",
        "offer_price": 1.98,
        "min_price": 0
      },
      "price_per_unit": {
        "unit": "each",
        "amount": "9.9 ¢/oz"
      },
      "product_page_url": "https://www.walmart.com/ip/Bimbo-White-Bread-20-count-White-Bread-20-oz-Bag/15716765?classType=RE...",
      "serpapi_product_page_url": "https://serpapi.com/search.json?device=desktop&engine=walmart_product&product_id=15716765"
    }
  ],
  "pagination": {
    "current": 1,
    "next": "https://www.walmart.com/search?adSlot=WSpread&affinityOverride=store_led&cat_id=0&department=%2F9...",
    "other_pages": {
      "2": "https://www.walmart.com/search?adSlot=WSpread&affinityOverride=store_led&cat_id=0&department=%2F9...",
      "3": "https://www.walmart.com/search?adSlot=WSpread&affinityOverride=store_led&cat_id=0&department=%2F9...",
      "4": "https://www.walmart.com/search?adSlot=WSpread&affinityOverride=store_led&cat_id=0&department=%2F9...",
      "...": "..."
    }
  },
  "serpapi_pagination": {
    "current": 1,
    "next_link": "https://serpapi.com/search.json?cat_id=0&device=desktop&engine=walmart&grid=true&page=2&ps=40&que...",
    "next": "https://serpapi.com/search.json?cat_id=0&device=desktop&engine=walmart&grid=true&page=2&ps=40&que...",
    "other_pages": {
      "2": "https://serpapi.com/search.json?cat_id=0&device=desktop&engine=walmart&grid=true&page=2&ps=40&que...",
      "3": "https://serpapi.com/search.json?cat_id=0&device=desktop&engine=walmart&grid=true&page=3&ps=40&que...",
      "4": "https://serpapi.com/search.json?cat_id=0&device=desktop&engine=walmart&grid=true&page=4&ps=40&que...",
      "...": "..."
    }
  }
}
```

