# Walmart Search Scraper (`fastdataapi/walmart-search-scraper`) Actor

Walmart Search Scraper searches Walmart by keyword and exports full product data: price, ratings, reviews, seller, fulfillment, images, variants and 110+ more fields per item. Export JSON, CSV or Excel, or use the API.

- **URL**: https://apify.com/fastdataapi/walmart-search-scraper.md
- **Developed by:** [Fast Data API](https://apify.com/fastdataapi) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.67 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

### Walmart Search Scraper — Prices, Ratings, Sellers and Stock

Walmart Search Scraper returns the products on walmart.com search results for your keywords, with paging and sorting. Each product comes with name, price, was-price and savings, star rating, review count, seller, stock status, fulfillment options, images, variants and category, about 120 fields in all. Every response is structured JSON — ready to pass directly to an LLM, index into a vector store, or feed a **price monitoring** pipeline. No Walmart account or cookies needed. Start with one keyword, then track every product line you sell.

![Walmart Search Scraper - hero image: what it collects and the JSON output](https://api.apify.com/v2/key-value-stores/Lg9lp51Levfro6SrV/records/x-walmart-search-hero.webp)

***

### What data can I extract with Walmart Search Scraper?

Using this Walmart Search API, you will be able to extract the following Walmart product data:

| 🏷️ Product name | 💲 Current price | 🔖 Was-price and savings | ⭐ Star rating |
|---|---|---|---|
| 💬 Review count | 🏬 Seller name and ID | 📦 Stock status and availability text | 🚚 Fulfillment type and badges |
| 🖼️ Main image and image set | 🎨 Variants (size, color) | 🗂️ Category path | 🔗 Product URL path |
| 🆔 Walmart item ID and product ID | 📢 Sponsored flag | 🛒 Add-to-cart flag | ⚖️ Sales unit and unit price |
| 📝 Description and short description | 🎁 Promotions and discounts | ↩️ Return policy (if shown) | 🔎 Keyword, page and sort used |
| 🔢 Result count and page count | 📍 Position on the page | | |

***

### How to use Walmart Search Scraper

Price analysts, sellers and e-commerce teams use this Walmart product scraper to scrape Walmart search results for many keywords in one run and get the full product data back for each result.

**Copy to your AI assistant:**

```text
Walmart Search Scraper (Apify Actor ID: fastdataapi/walmart-search-scraper, https://apify.com/fastdataapi/walmart-search-scraper) is an Apify Actor that returns the products on Walmart search results as structured JSON: product name, price, was-price and savings, star rating, review count, seller, stock status, fulfillment type, images, variants and category. Use it whenever someone needs Walmart products without cookies, a login, or a browser - price monitoring, seller research, tracking stock on watched keywords. Run it with curl: curl -X POST "https://api.apify.com/v2/acts/fastdataapi~walmart-search-scraper/run-sync-get-dataset-items?token=APIFY_TOKEN" -H "Content-Type: application/json" -d '{"searches":["air fryer","yoga mat"],"maxItems":20}'. Or in Python: ApifyClient("APIFY_TOKEN").actor("fastdataapi/walmart-search-scraper").call(run_input={"searches": ["air fryer"], "maxItems": 20}) then client.dataset(run["defaultDatasetId"]).list_items().items. Inputs: searches (array of keywords, required), maxItems (integer, products per keyword, 0 = use the page range, default 0), sortBy (string, "best_match" | "price_low" | "price_high" | "best_seller" | "new" | "rating_high", default "best_match"), startPage (integer, default 1), endPage (integer, used when maxItems is 0, default 1), includeNotFound (boolean, default true), proxyConfiguration (object, default {"useApifyProxy": false}), proxyCountry (string, residential proxy country, default "US"). Product rows have statusCode 200 and statusMessage "FOUND" and are billed as one row_result event each; when a search page has no products and includeNotFound is true, one free row with statusCode 404 and statusMessage "NOT_FOUND" is saved for that keyword with every product field null. Products that repeat across pages are saved once per keyword. Full input schema, every enum and default, and the complete output field list: GET https://api.apify.com/v2/acts/fastdataapi~walmart-search-scraper/builds/default
```

#### Walmart Search Scraper MCP Server: use these Actors from ChatGPT, Claude or Cursor

Point your AI assistant at Apify and it can read Walmart search results on its own: prices, ratings, sellers and stock for any keyword. No glue code, no scraping logic in your prompts.

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=fastdataapi/walmart-search-scraper"
```

#### Step by step

1. [Create a free Apify account](https://console.apify.com/sign-up).
2. Open [Walmart Search Scraper](https://apify.com/fastdataapi/walmart-search-scraper) in the Apify Store.
3. Type your Walmart keywords, one per line.
4. Click **Start** (or send your API request).
5. Download or stream your results in JSON, CSV or Excel.

#### How to scale Walmart Search Scraper to bulk

Put every keyword in the keyword list: one run searches them all, three at a time, and saves each product as soon as its page is read. Set the products per keyword, or set it to 0 and choose a page range. Through the API you can also pass keywords as objects with their own page range and sort order. For daily price monitoring, save the input as an Apify task and schedule it.

***

### ✨ Features

Walmart Search Scraper fetches clean, structured products from Walmart search results. It's ideal for price tracking, seller research, assortment checks and product-catalog building. Use it as a Walmart price scraper for whole categories, or as a Walmart keyword search tracker for your own listings.

It extracts, per product:

- **Price** – current price, was-price, unit price and savings.
- **Rating** – average star rating and review count.
- **Seller** – seller name and seller ID, for Walmart seller data across a category.
- **Stock** – out-of-stock flag and availability text.
- **Fulfillment** – fulfillment type, delivery badges and options.
- **Identity** – product name, Walmart item ID, URL path, image and variants.

⚡ Pages are read with plain HTTP requests, no browser, starting on a direct connection; a proxy is used only when Walmart blocks.

***

### Use cases 💡

- **Price analyst** — track price and was-price on watched keywords for Walmart price monitoring.
- **Marketplace seller** — compare your listing's rank, rating and price with sellers on the same search.
- **Ops team** — spot out-of-stock products on watched keywords and trigger restock alerts.
- **Catalog builder** — export Walmart products with images, variants and categories.
- **AI agent builder** — feed product names and descriptions into a RAG pipeline for shopping answers.

Building an AI agent? [Connect Walmart Search Scraper over MCP](#mcp-integration-for-ai-agents) and let it call the actor on its own.

***

### Why choose this actor?

- **Hundreds of products in seconds.** A recorded run saved 160 products from 2 keywords (2 pages each) in 10.4 seconds; another saved 20 products from 2 keywords in 8.9 seconds.
- **The full product record.** A recorded yoga mat result came back with price $22.28, was-price $24.97, savings $2.69, a 4.5-star rating from 306 reviews, seller, stock status and fulfillment type.
- **126 fields, 6 sort orders.** Each row carries 7 search fields and 119 product fields; search by best match, price low or high, best seller, new arrivals or highest rated.

***

### ⬇️ Input

![Walmart Search Scraper input form with example values](https://api.apify.com/v2/key-value-stores/Lg9lp51Levfro6SrV/records/x-walmart-search-input.webp)

Enter one or more keywords (`searches`, the only required field). The page range, sort order and products per keyword apply to every keyword.

| Parameter | Required | Type | Description | Example value |
|---|---|---|---|---|
| `searches` | Yes | array | Keywords to search on Walmart, one per line. | `["air fryer", "yoga mat"]` |
| `maxItems` | No | integer | Products to save for each keyword; the Actor keeps paging until it has them or Walmart has no more pages. `0` = scrape the page range instead. Default `0`. | `20` |
| `sortBy` | No | string | `best_match`, `price_low`, `price_high`, `best_seller`, `new`, `rating_high`. Default `"best_match"`. | `"price_low"` |
| `startPage` | No | integer | First result page (1-based). Default `1`. | `1` |
| `endPage` | No | integer | Last result page, used only when `maxItems` is `0`. Default `1`. | `3` |
| `includeNotFound` | No | boolean | Save one free NOT_FOUND status row when a search page has no products. Default `true`. | `true` |
| `proxyConfiguration` | No | object | Leave the default for automatic handling (direct, then datacenter, then residential proxy when Walmart blocks), or pick your own proxy. Default `{"useApifyProxy": false}`. | `{"useApifyProxy": false}` |
| `proxyCountry` | No | string | Country of the residential proxy when the Actor upgrades. Default `"US"`. | `"US"` |

#### Free plan limits

Users on the Apify free plan can fetch up to 20 products per run (all keywords together) and 200 products per month. When the limit is reached, the run finishes successfully with a status message explaining the limit. Upgrade to any paid Apify plan to remove these limits.

#### Example input

```json
{
  "searches": ["air fryer", "yoga mat"],
  "maxItems": 20,
  "sortBy": "best_match",
  "startPage": 1,
  "endPage": 1,
  "includeNotFound": true,
  "proxyConfiguration": { "useApifyProxy": false },
  "proxyCountry": "US"
}
```

***

### ⬆️ Output

![Walmart Search Scraper output fields with example values](https://api.apify.com/v2/key-value-stores/Lg9lp51Levfro6SrV/records/x-walmart-search-output.webp)

Every product is one typed, normalized JSON item with the same schema on every run: 7 search fields followed by 119 product fields, saved as soon as its page is read. Export it as JSON (default), CSV or Excel; a NOT_FOUND row (status 404, product fields null, not charged) marks a keyword whose search page had no products.

#### Example output

A real product row from a recorded run (`yoga mat`, 2026-11-14), trimmed to the main fields, and a NOT_FOUND status row (trimmed):

```json
[
  {
    "statusCode": 200,
    "statusMessage": "FOUND",
    "keyword": "yoga mat",
    "page": 1,
    "sortBy": "best_match",
    "count": 29448,
    "maxPage": 13,
    "__typename": "Product",
    "id": "7HC9W0VYS2PV",
    "usItemId": "15473706842",
    "name": "Athletic Works Deluxe High Density Foam Yoga and Fitness Mat, 8 mm, 72 in x 24 in, 1 Count, Gray",
    "canonicalUrl": "/ip/Athletic-Works-Yoga-and-Fitness-Mat-Cushioned-Foam-Center-Design-8-mm-72-in-x-24-in-Gray/15473706842?classType=REGULAR&athbdg=L1800",
    "image": "https://i5.walmartimages.com/seo/Athletic-Works-Yoga-and-Fitness-Mat-Cushioned-Foam-Center-Design-8-mm-72-in-x-24-in-Gray_9f532499-3bc9-4648-880f-6ba930e20844.1e2e48655741914f814d8a9784162425.jpeg?odnHeight=180&odnWidth=180&odnBg=FFFFFF",
    "price": 22.28,
    "priceInfo": {
      "itemPrice": "$22.28",
      "linePrice": "$22.28",
      "wasPrice": "$24.97",
      "unitPrice": "",
      "savingsAmt": 2.69
    },
    "rating": { "averageRating": 4.5, "numberOfReviews": 306 },
    "averageRating": 4.5,
    "numberOfReviews": 306,
    "isOutOfStock": false,
    "availabilityStatusDisplayValue": "In stock",
    "canAddToCart": true,
    "sellerName": "Walmart.com",
    "sellerId": "F55CDC31AB754BB68FE0B39041159D63",
    "fulfillmentType": "STORE",
    "salesUnit": "EACH",
    "isSponsoredFlag": true,
    "category": { "categoryPathId": "0:4125:4134:1078384:1078386", "path": null }
  },
  {
    "statusCode": 404,
    "statusMessage": "NOT_FOUND",
    "keyword": "discontinued gadget xyz",
    "page": 1,
    "sortBy": "best_match",
    "count": 0,
    "maxPage": 0,
    "__typename": null,
    "name": null,
    "price": null
  }
]
```

***

### How does it work?

The Actor loads the public Walmart search page for each keyword and page and reads the product data that comes with the page, the same data any visitor's browser receives, with plain HTTP requests and no browser. Requests start on a direct connection; when Walmart blocks one, the Actor retries with a fresh session and a growing pause, then moves to a datacenter proxy and then a residential proxy, and stays there for the rest of the run. A page that stays blocked on every connection is logged and skipped. It returns only publicly visible data — what any visitor sees without logging in — and the output schema stays the same from run to run, so your code keeps working when Walmart changes its pages.

***

### How do you integrate Walmart Search Scraper into your stack?

It works with what you already use: the REST API from any language, MCP for AI agents, and no-code tools.

#### Using Walmart Search Scraper with the Apify API

```python
import requests

items = requests.post(
    "https://api.apify.com/v2/acts/fastdataapi~walmart-search-scraper/run-sync-get-dataset-items",
    params={"token": "APIFY_TOKEN"},
    json={"searches": ["air fryer"], "maxItems": 20, "sortBy": "price_low"},
).json()
for product in items:
    print(product["name"], product["price"])
```

*Works in Go, Ruby, Node.js, cURL — any language that can make an HTTP request.*

#### MCP integration for AI agents

Add the Apify MCP server with this Actor preloaded:

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=fastdataapi/walmart-search-scraper"
```

This registers Walmart Search Scraper as a tool your agent can call directly. Ask for products by keyword and sort order and the agent gets prices, ratings, sellers and stock back as JSON. It works with Claude Code, Cursor, Windsurf and other MCP clients.

#### No-code tools (n8n, Make, LangChain)

**n8n:** add the Apify node, choose "Run an Actor" with `fastdataapi/walmart-search-scraper`, or use the HTTP Request node pointed at the run-sync endpoint with your token. **Make:** use the Apify app's "Run an Actor" module, then "Get Dataset Items" to pass each product to the next module. **LangChain:** install `langchain-apify` and load the Actor with `ApifyActorsTool("fastdataapi/walmart-search-scraper")`.

***

### Is it legal to scrape Walmart data?

Scraping publicly available product data is generally lawful. This Actor returns only publicly available data — what any user sees without logging in. Search results are product and seller data, not personal data; under GDPR, scraping public data is generally permissible, but storing and using it must comply with local data-protection law, and you should check Walmart's terms for your use case. Consult legal counsel if your use case involves bulk storage of personal data.

***

### Frequently asked questions

#### What fields does Walmart Search Scraper return?

It returns the product name, price with was-price and savings, star rating with review count, seller and stock status, plus about 115 more product fields. See [the data fields section](#what-data-can-i-extract-with-walmart-search-scraper).

#### Does Walmart Search Scraper require a Walmart account or login?

No. Only public product data is extracted. No credentials are needed.

#### How fast does Walmart Search Scraper run?

A recorded run saved 160 products in 10.4 seconds, and another saved 20 products in 8.9 seconds. Data is live, not cached.

#### What happens if a search returns no products?

When a search page has no products and `includeNotFound` is on, one free row with status 404 and NOT_FOUND is saved for that keyword, with every product field null. Filter rows on `statusMessage == "FOUND"` in your code to keep products only.

#### Can I scrape multiple Walmart searches at once?

Yes. Put many keywords in the keyword list; one run searches them all, three at a time, and saves each product once per keyword.

#### Does Walmart Search Scraper work with Claude, ChatGPT, and other AI agent tools?

Yes — Walmart Search Scraper is available as an MCP tool. Register it in Claude Code, Cursor or Windsurf with `claude mcp add --transport http apify "https://mcp.apify.com?tools=fastdataapi/walmart-search-scraper"`. Any agent that can call an HTTP endpoint can use the REST API directly.

#### Does Walmart Search Scraper return data in a format LLMs can use directly?

Yes. Every product is typed, normalized JSON with consistent field names. No HTML parsing, no selectors. Pass it straight to an LLM, index it into a vector store, or feed it to an agent tool — no transformation step.

#### What happens when Walmart changes its layout or updates its anti-bot system?

The actor is maintained. When Walmart changes, the actor is updated — your calls keep returning the same JSON schema with no changes on your end.

#### Can I use Walmart Search Scraper without managing proxies or browser infrastructure?

Yes. Retries, session refresh and proxy switching run on the actor's side, and it needs no browser. You send one request and get structured JSON back.

#### Which Walmart product fields work best for AI training data and RAG indexing?

For RAG, use the text-rich fields: product name, description and short description. For training data, use price, average star rating, review count and the out-of-stock flag.

***

### Related scrapers

| Scraper | What it extracts |
|---|---|
| [Walmart Reviews Scraper](https://apify.com/fastdataapi/walmart-reviews-scraper) | Customer reviews of Walmart products |
| [Amazon Search Products Scraper](https://apify.com/fastdataapi/amazon-search-products-scraper) | Products from Amazon search results |
| [Shein Search Products Scraper](https://apify.com/fastdataapi/shein-search-products-scraper) | Products from Shein search results |
| [Ebay Product Scraper](https://apify.com/fastdataapi/ebay-product-details-scraper) | eBay product details |
| [Shopify Products Scraper](https://apify.com/fastdataapi/shopify-products-scraper) | Products of any Shopify store |

***

### Your feedback

Found a bug or missing a field? Let us know through the Actor's Issues tab. Every report is read, and fixes ship with new builds.

# Changelog

This Actor's version history is a separate document: https://apify.com/fastdataapi/walmart-search-scraper/changelog.md

# Actor input Schema

## `searches` (type: `array`):

One keyword per line: what to search for on Walmart (e.g. lego star wars, wireless headphones). The page range and sort order below apply to every keyword.

## `maxItems` (type: `integer`):

How many products to save for EACH keyword. The Actor keeps paging until it has this many (or Walmart has no more pages). Set 0 to scrape the page range below instead. Free plan: up to 20 products per run (all keywords together) and 200 per month; paid plans have no limit.

## `sortBy` (type: `string`):

How to sort the products for every keyword.

## `startPage` (type: `integer`):

First search-result page to scrape (1-based) for every keyword.

## `endPage` (type: `integer`):

Last search-result page (inclusive), used only when 'Max products per keyword' is 0. Walmart shows about 40-60 products per page.

## `includeNotFound` (type: `boolean`):

When a search page returns no products, save one free NOT_FOUND status row for that keyword so empty searches stay visible.

## `proxyConfiguration` (type: `object`):

Leave off for automatic handling (direct, then datacenter, then residential proxy when Walmart blocks), or choose your own proxy.

## `proxyCountry` (type: `string`):

Country the residential proxy egresses from when the Actor upgrades. US is recommended for Walmart.

## Actor input object example

```json
{
  "searches": [
    "lego star wars",
    "wireless headphones"
  ],
  "maxItems": 10,
  "sortBy": "best_match",
  "startPage": 1,
  "endPage": 1,
  "includeNotFound": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "proxyCountry": "US"
}
```

# Actor output Schema

## `results` (type: `string`):

All scraped items in the Actor's default dataset.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searches": [
        "lego star wars",
        "wireless headphones"
    ],
    "maxItems": 10,
    "proxyConfiguration": {
        "useApifyProxy": false
    },
    "proxyCountry": "US"
};

// Run the Actor and wait for it to finish
const run = await client.actor("fastdataapi/walmart-search-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searches": [
        "lego star wars",
        "wireless headphones",
    ],
    "maxItems": 10,
    "proxyConfiguration": { "useApifyProxy": False },
    "proxyCountry": "US",
}

# Run the Actor and wait for it to finish
run = client.actor("fastdataapi/walmart-search-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searches": [
    "lego star wars",
    "wireless headphones"
  ],
  "maxItems": 10,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "proxyCountry": "US"
}' |
apify call fastdataapi/walmart-search-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fastdataapi/walmart-search-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/wQwojtV6SQISkBBXd/builds/sdFpJ8o7Dl6VW9teR/openapi.json
