# Walmart Products and Reviews Scraper (`kingly_contest_7cb/walmart-products-reviews-scraper`) Actor

Scrape Walmart.com search results, categories, product details, price & stock (seller, fulfillment, was-price, rollback) and customer reviews with sort & star filters. Block-aware retries, per-input status, pay only for saved results.

- **URL**: https://apify.com/kingly_contest_7cb/walmart-products-reviews-scraper.md
- **Developed by:** [Carina Hatton](https://apify.com/kingly_contest_7cb) (community)
- **Categories:** E-commerce, Developer tools
- **Features:** Limited permissions
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 product details

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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 Products and Reviews Scraper

Scrape **Walmart.com** search results, category pages, full product details, **price & stock**, and **customer reviews** in one Actor. You pay only for results that are saved. If Walmart blocks every page, the run fails and you pay nothing for results.

Built for **e-commerce sellers, brands, repricers and market analysts** who need Walmart data that keeps working.

### What can this Walmart scraper do?

| Mode | Input | Output row (`type`) |
|---|---|---|
| **Search / category** | Keywords or `walmart.com/search?q=…`, `/browse/…`, `/shop/…` URLs | `searchResult`: position, price, was-price, rollback, rating, review count, seller, stock, sponsored flag, image |
| **Product details** | Product URLs (`/ip/…/<id>`), item IDs, or search results with *Open each product page* | `product`: about 60 fields: UPC, brand, model, seller, fulfillment (shipping/pickup/delivery), star breakdown, specs, description, images, variants, return policy |
| **Price & stock monitor** | Same as product details + *Price & stock only* | `priceStock`: compact row with price, was/list price, savings, rollback/clearance, availability, order limit, seller and fulfillment availability |
| **Reviews** | Product URLs, item IDs, `/reviews/product/<id>` URLs, or search results with *Include reviews* / *Reviews only* | `review`: rating, title, text, date, author, verified purchase, helpful votes, photos, seller response |

#### Why this Walmart scraper?

- **Block-aware.** Every page is checked for Walmart's bot wall (PerimeterX "Robot or human?" pages and `/blocked` redirects). Blocked pages are retried with a new IP and session, and they are never saved as empty rows.
- **Uses Walmart's own embedded data.** Fields come from the JSON Walmart renders into each page (`__NEXT_DATA__`), not from fragile CSS selectors.
- **Per-input status report.** Each run writes a `RUN_SUMMARY` record that lists every keyword, URL and item ID with its status (`ok` / `partial` / `failed` / `no results`), how many rows it saved, and why any page failed.
- **Hard cost caps.** *Max results* limits the whole run. The Actor also respects the *Maximum cost per run* you set in run options, and it stops cleanly when that limit is reached.
- **Review filters.** Sort reviews by newest, oldest, most helpful, or highest/lowest rating, and filter them by star rating (for example, only 1-2★ reviews for complaint research).

### How to use it

1. Add **search keywords**, **Walmart URLs** and/or **item IDs**.
2. Choose what to collect:
   - nothing extra → light `searchResult` rows (cheapest)
   - **Open each product page** → full `product` records
   - **Price & stock only** → compact `priceStock` rows
   - **Include reviews** / **Reviews only** → `review` rows
3. Set **Max results** (a hard cap for the whole run) and click **Start**.
4. Download results as JSON, CSV, Excel or HTML, or fetch them through the Apify API.

#### Input example: search + reviews

```json
{
  "searchQueries": ["air fryer"],
  "maxItemsPerSearch": 20,
  "includeReviews": true,
  "maxReviewsPerProduct": 10,
  "reviewsSort": "submission-desc",
  "maxResults": 300
}
```

#### Input example: daily price & stock check

```json
{
  "itemIds": ["1107918809", "17852302051"],
  "startUrls": [{ "url": "https://www.walmart.com/ip/PlayStation-5-Digital-Console-Slim/17852302051" }],
  "priceStockOnly": true
}
```

#### Input example: only negative reviews

```json
{
  "startUrls": [{ "url": "https://www.walmart.com/reviews/product/1107918809" }],
  "reviewsRatingFilter": ["1", "2"],
  "maxReviewsPerProduct": 100
}
```

### Output

Every row has a `type` field. The dataset has ready-made views: **Overview**, **Search results**, **Product details**, **Price & stock**, and **Reviews**.

`product` (shortened, from a real test run):

```json
{
  "type": "product",
  "itemId": "1107918809",
  "name": "BISSELL PowerForce Helix, Bagless, Upright Vacuum, …",
  "brand": "BISSELL",
  "model": "3313",
  "upc": "011120264098",
  "price": 59.76,
  "wasPrice": 67.48,
  "savingsAmount": 7.72,
  "isRollback": true,
  "availabilityStatus": "IN_STOCK",
  "inStock": true,
  "orderLimit": 99,
  "sellerName": "Walmart.com",
  "sellerType": "INTERNAL",
  "shippingAvailable": true,
  "pickupAvailable": true,
  "deliveryAvailable": true,
  "averageRating": 4.5,
  "numberOfReviews": 75322,
  "rating5": 56916, "rating4": 8431, "rating3": 3070, "rating2": 1797, "rating1": 5108,
  "categoryPath": "Home > Appliances > Vacuums, Steamers & Floor Care > Upright Vacuums",
  "specifications": { "Bagless": "Y", "Cord length": "23 ft", "Weight": "12 lb" },
  "variantOptions": "Actual Color: 3313 Blue, 3313U Purple, 4364 Slate",
  "scrapedAt": "2026-10-31T14:23:42.606Z"
}
```

`review`:

```json
{
  "type": "review",
  "itemId": "1107918809",
  "reviewId": "446340138",
  "rating": 4,
  "text": "Great vacuum and great price.",
  "date": "2026-10-29",
  "author": "Tiffany",
  "isVerifiedPurchase": true,
  "helpfulVotes": 0,
  "productAverageRating": 4.5,
  "productTotalReviews": 75447,
  "reviewsSort": "submission-desc"
}
```

The full field list is in the **Output** / dataset schema tab.

#### Run summary

The key-value store record `RUN_SUMMARY` tells you exactly what happened to each input:

```json
{ "input": "search: air fryer", "status": "ok", "saved": 5, "pagesOk": 1, "pagesFailed": 0, "totalAvailable": 2189, "messages": [] }
```

### Pricing

Pay per result. You are charged only for rows saved to your dataset, plus a tiny start fee:

| Event | Price | Per 1,000 |
|---|---|---|
| Search / category result (`searchResult`) | $0.0015 | $1.50 |
| Product detail (`product`) | $0.004 | $4.00 |
| Price & stock row (`priceStock`) | $0.004 | $4.00 |
| Review (`review`) | $0.001 | $1.00 |
| Actor start (per GB of memory) | $0.0001 | n/a |

Proxy and compute costs are included. You are never charged for blocked or failed pages. Example: 1,000 search results cost about $1.50. 100 full product records plus 1,000 reviews cost about $1.40. The **Pricing** tab always shows the current prices.

### Tips

- **Searches are cheapest.** One search page returns up to about 40 products. Only turn on *Open each product page* when you need UPC, seller, fulfillment or specs.
- Use `/browse/…` category URLs instead of `/cp/…` landing pages. `/cp/` pages are curated and may contain no product grid.
- **Proxy:** the default is Apify's **UNBLOCKER** proxy, which passed every page type in testing. RESIDENTIAL (US) costs less, but Walmart often blocks search pages on it.
- Locale: results are what Walmart.com (US) shows to an anonymous shopper. Store-specific pickup text can vary by IP location.

### Limitations

- Only walmart.com (US). Other Walmart sites (walmart.ca, walmart.com.mx) are not supported.
- Walmart shows up to 25 pages × 40 items per search. To go beyond about 1,000 items, split the search by category or price range (`minPrice` / `maxPrice`).
- Third-party seller offer lists ("more sellers") are not collected yet. `additionalOfferCount` shows how many other offers exist when Walmart reports it.

### Is it legal to scrape Walmart?

This Actor collects only publicly available product, price and review data that any visitor can see without logging in. Reviewer display names are personal data. Use and store them only where you have a legitimate reason and in line with GDPR/CCPA and Walmart's terms. If you are unsure, consult a lawyer.

### Feedback

Found a page that does not parse, or need a field? Open an issue on the **Issues** tab and include the run ID. The `RUN_SUMMARY` record usually shows the cause right away.

# Actor input Schema

## `searchQueries` (type: `array`):

Keywords to search on Walmart.com, one per line, e.g. "air fryer". Each keyword is scraped separately.

## `startUrls` (type: `array`):

Any walmart.com URL: search (/search?q=...), category (/browse/...), product (/ip/...) or reviews (/reviews/product/<id>). Filters and sort already in the URL are kept. Optional per-URL userData is copied to every output row.

## `itemIds` (type: `array`):

Numeric Walmart item IDs (the number at the end of a /ip/ URL), e.g. 5113183757. Each returns one product record (and reviews if enabled).

## `maxResults` (type: `integer`):

Hard cap on dataset rows across the whole run (search results + products + reviews). The run stops as soon as it is reached, so you never pay for more than this.

## `maxItemsPerSearch` (type: `integer`):

How many products to take from each keyword or search/category URL. Walmart shows about 40 per page and up to 25 pages.

## `sort` (type: `string`):

Sort order for keyword searches and listing URLs that don't already set one.

## `minPrice` (type: `integer`):

Only products priced at or above this (applied by Walmart search).

## `maxPrice` (type: `integer`):

Only products priced at or below this (applied by Walmart search).

## `includeSponsored` (type: `boolean`):

Keep sponsored (ad) listings from search pages. They are flagged with isSponsored either way.

## `scrapeProductDetails` (type: `boolean`):

For keyword/listing inputs, open every product page and save a full product record (UPC, seller, fulfillment options, specs, description, star breakdown, variants) instead of the lighter search-result row. Product URLs and item IDs always return full records.

## `priceStockOnly` (type: `boolean`):

Open each product page (from product URLs, item IDs, or search/category results) but save a compact price & stock row: current price, was/list price, unit price, rollback/clearance flags, availability, order limit, seller, and shipping/pickup/delivery availability. Built for repricing and stock monitoring. Overrides 'Open each product page'.

## `includeReviews` (type: `boolean`):

Also scrape customer reviews for every product found (one row per review, type = "review").

## `reviewsOnly` (type: `boolean`):

Go straight to the reviews pages and output only review rows. Product URLs / item IDs and search results are used only to find products.

## `maxReviewsPerProduct` (type: `integer`):

Reviews to collect per product. Walmart shows 10 per page.

## `reviewsSort` (type: `string`):

Order in which reviews are collected.

## `reviewsRatingFilter` (type: `array`):

Optional. Collect only reviews with these star ratings, e.g. \["1","2"] for complaints. Empty = all ratings.

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

Walmart blocks datacenter IPs and most plain residential HTTP requests to search pages. Default is Apify's UNBLOCKER proxy group, which passed every search, product and reviews page in testing. Switch to RESIDENTIAL (US) for a cheaper but less reliable fetch (search pages are often blocked).

## `maxConcurrency` (type: `integer`):

Parallel requests. Higher is faster but gets blocked more often.

## `maxRequestRetries` (type: `integer`):

Each blocked or failed page is retried with a fresh proxy IP and session up to this many times.

## `crawlerType` (type: `string`):

http (default): plain HTTP fetch of the server-rendered page. browser (experimental): stealth Firefox (Camoufox); slower and more expensive, only used with non-Unblocker proxies.

## `httpClient` (type: `string`):

Only used in http mode with a non-Unblocker proxy. impit (default) sends a real Chrome TLS/HTTP2 fingerprint. got is the classic Crawlee client. With the Unblocker proxy, got is always used.

## `debugSaveHtml` (type: `boolean`):

Save the first HTML page of each type to the key-value store (for troubleshooting).

## Actor input object example

```json
{
  "searchQueries": [
    "air fryer"
  ],
  "maxResults": 200,
  "maxItemsPerSearch": 40,
  "sort": "best_match",
  "includeSponsored": true,
  "scrapeProductDetails": false,
  "priceStockOnly": false,
  "includeReviews": false,
  "reviewsOnly": false,
  "maxReviewsPerProduct": 20,
  "reviewsSort": "submission-desc",
  "reviewsRatingFilter": [],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "UNBLOCKER"
    ]
  },
  "maxConcurrency": 5,
  "maxRequestRetries": 4,
  "crawlerType": "http",
  "httpClient": "impit",
  "debugSaveHtml": false
}
```

# Actor output Schema

## `dataset` (type: `string`):

All rows (search results, products, reviews)

## `summary` (type: `string`):

Per-input status: saved counts, failed pages, block retries, messages

# 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 = {
    "searchQueries": [
        "air fryer"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "UNBLOCKER"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("kingly_contest_7cb/walmart-products-reviews-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 = {
    "searchQueries": ["air fryer"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["UNBLOCKER"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("kingly_contest_7cb/walmart-products-reviews-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 '{
  "searchQueries": [
    "air fryer"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "UNBLOCKER"
    ]
  }
}' |
apify call kingly_contest_7cb/walmart-products-reviews-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kingly_contest_7cb/walmart-products-reviews-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/BKMIzgcxlcWNXx4FW/builds/89d4XFjMIJHbiG7Vh/openapi.json
