# Walmart Scraper (`neuro-scraper/walmart-scraper`) Actor

Walmart Scraper SD - Walmart Scraper is an e-commerce data tool that extracts Walmart.com search results, category listings, product details and customer reviews: price, was-price, rating, review count, seller, stock, badges, specs and variants, page after page, with no login.

- **URL**: https://apify.com/neuro-scraper/walmart-scraper.md
- **Developed by:** [Neuro Scraper](https://apify.com/neuro-scraper) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.19 / 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 Scraper

Walmart Scraper extracts data from Walmart.com (US) without a login: search results for any keyword,
category listings (`/browse/` URLs), full product pages and customer reviews. Every page is read from the
data Walmart embeds in its own HTML (`__NEXT_DATA__`), page after page until your limit.

#### Input

| Field | Default | What it does |
|---|---|---|
| `mode` | `products` | `products`: one row per product. `reviews`: one row per customer review. |
| `searchTerms` | prefill `["air fryer"]` | Keywords, one per line (a comma does not split a term). |
| `startUrls` | `[]` | Walmart search URLs, `/browse/` category URLs, `/ip/` product URLs, `/reviews/product/<id>` URLs or bare item ids. `/cp/` landing pages are rejected (no product list in their HTML). |
| `maxItems` | 20 | Rows in total (products or reviews). |
| `maxPagesPerSearch` | 25 | Safety cap on result pages per search term / URL. |
| `sort` | `best_match` | `price_low`, `price_high`, `best_seller`, `rating_high`, `new` (Walmart's own sort menu). |
| `minPrice` / `maxPrice` | 0 (off) | Walmart's price filter in whole US dollars. |
| `includeDetails` | false | Opens each search result's product page for brand, model, UPC, category, descriptions, specs, variants, images, star breakdown (+1 request per row). |
| `maxReviewsPerProduct` | 20 | Reviews mode: reviews per product (10 per page). |
| `reviewsSort` | `relevancy` | `helpful`, `submission-desc` (newest), `rating-desc`, `rating-asc`. |
| `reviewsRating` | `all` | Only reviews with 5, 4, 3, 2 or 1 stars. |
| `proxyConfiguration` | US residential | Apify proxy; a US IP also makes Walmart pick a US store for prices and stock. |

#### Output

Products mode (search / category rows; product URLs and `includeDetails` add the detail fields):

| Field | Example |
|---|---|
| `usItemId`, `name`, `url` | `14678059894`, `Chefman Air Fryer 1500W, 6 Quart ...`, `https://www.walmart.com/ip/CHEFMAN-6QT-AIRFRYER/14678059894` |
| `price`, `wasPrice`, `minPrice`, `maxPrice`, `unitPrice`, `currency` | `59.98`, `79.97`, `69`, `129` (variant range), `$1.82/lb`, `USD` |
| `rating`, `reviewsCount` | `4.6`, `12203` (`rating` is null when a product has no ratings) |
| `availability`, `sellerName`, `sellerId` | `IN_STOCK`, `Walmart.com`, `F55CDC31...` |
| `isSponsored`, `badges`, `fulfillment` | `true`, `["Best seller", "Only 2 left"]`, `Free shipping, arrives tomorrow; Free pickup as soon as 2pm` |
| `productType`, `image` | `Air Fryers`, full-size image URL |
| detail fields | `brand`, `model`, `upc`, `categoryPath`, `shortDescription`, `description`, `specifications` (object), `variantOptions` (e.g. `{"Actual Color": ["Black", "Navy"]}`), `images`, `ratingCounts` (`{"5": 9306, ...}`) |
| `position`, `page`, `storeId`, `searchTerm` / `inputUrl`, `scrapedAt` | rank in the search, result page, Walmart store used for prices, the input, UTC time |

Reviews mode: `reviewId`, `usItemId`, `productName`, `rating`, `title`, `text`, `date` (ISO), `userNickname`,
`isVerifiedPurchase`, `helpfulVotes`, `unhelpfulVotes`, `photos`, `syndicatedFrom` (brand site the review came
from), `productUrl`, `page`, `searchTerm` / `inputUrl`, `scrapedAt`.

#### Measured limits (local runs, 2026-10-03, see TEST_REPORT.md)

- Search pages held 31-52 product cards (52 on the unsorted "air fryer" page 1); repeats (sponsored cards,
  products already on earlier pages) are removed.
  Walmart's page count overstates the depth: "air fryer" reported 1,963 results and 13 pages, but page 11 was
  empty, so one search gave **403 distinct products in 10 pages (35 s)**. Use `sort` or the price filter to reach
  other products.
- Category `/browse/` pages hold 49-50 products and listed 25 pages (pages 1-2 read in probes).
- Reviews: 10 per page and the whole history is reachable (a product with 3,219 written reviews served page 322).
  Walmart lists only reviews with text: that product had 12,203 ratings but 3,219 written reviews.
- `brand` is not on search cards (0 of 52) - turn on `includeDetails` or give product URLs.
- Bot check: Walmart's PerimeterX answered "Robot or human?" after roughly 70-110 requests from one home IP within
  \~35 minutes - first on `/browse/` and `/reviews/` pages (blocked for 20-65+ minutes), later on `/ip/` pages;
  `/search` kept working. The Actor never answers the check: it retries with a new session (a new IP on Apify)
  up to 3 times per request, and stops the run early after 2 requests in a row were refused, keeping its rows.
  A blocked category can also be listed through search: `https://www.walmart.com/search?q=air+fryer&cat_id=4044_90548_90546_4824_9960466` (measured: 1,722 results).
- Prices and stock follow the store Walmart picks from the visitor's IP (returned as `storeId`). From the test IP
  (Bangladesh) Walmart used store 3081 (Sacramento, CA 95829) for every page; behind the default US residential
  proxy the store should follow the proxy IP's location (not measurable from the test IP).
- Speed (including the ~1 s pause between requests): about 3 s per search page (11 pages in 35 s), 2-3 s per
  product page (`includeDetails`: 5 rows in 18 s), 2 s per reviews page (25 reviews in 6 s).

#### Example input

```json
{
  "mode": "products",
  "searchTerms": ["air fryer"],
  "sort": "price_low",
  "minPrice": 50,
  "maxPrice": 100,
  "maxItems": 100,
  "includeDetails": false,
  "proxyConfiguration": {"useApifyProxy": true, "apifyProxyGroups": ["RESIDENTIAL"], "apifyProxyCountry": "US"}
}
```

# Actor input Schema

## `mode` (type: `string`):

products (default): one row per product - search terms and search/category URLs give the result cards, a product URL gives the full product page. reviews: one row per customer review, for every product URL or item id and for the products found by the search terms (products without reviews are skipped).

## `searchTerms` (type: `array`):

What you would type in the Walmart search box, one term per line. Example: air fryer

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

Walmart.com URLs, detected one by one: search pages (https://www.walmart.com/search?q=air+fryer), category pages (https://www.walmart.com/browse/home/air-fryers/4044_90548_90546_4824_9960466) and product pages (https://www.walmart.com/ip/14678059894). Reviews URLs (/reviews/product/14678059894) and bare item ids are accepted too. Category landing pages (/cp/...) carry no product list and are rejected with an error.

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

Maximum number of rows in total: products in products mode, reviews in reviews mode. Result pages are read one after another until this number is reached, Walmart has no further page, or the page cap below is hit. Example: 100

## `maxPagesPerSearch` (type: `integer`):

Safety cap on result pages read per search term or search/category URL (40-50 products per page). Example: 5

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

Order of the search and category results - the values of Walmart's own sort menu. A sort already present in a pasted URL wins. Example: Price: low to high gives the cheapest products first.

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

Only products priced at or above this many US dollars (Walmart's price filter, whole dollars). 0 = no minimum. Example: 50

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

Only products priced at or below this many US dollars. 0 = no maximum. Example: 100

## `includeDetails` (type: `boolean`):

Open every search result's product page and add brand, model, UPC, category path, descriptions, specifications, variant options, all images and the star breakdown. Costs 1 extra request per row, so the run takes longer.

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

Reviews mode: the most reviews read per product (Walmart shows 10 per page). Walmart lists the reviews that have text; star-only ratings are counted but have no review to read. Example: 100

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

Order in which Walmart lists the reviews. Example: Newest first to follow what buyers wrote recently.

## `reviewsRating` (type: `string`):

Walmart's star filter. Example: 1 = only 1-star reviews.

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

Walmart protects its pages with PerimeterX bot checks. A US residential proxy is the default: it gets through more often and makes Walmart choose a US store for prices and stock. After a block the Actor retries with a new session (a new IP).

## Actor input object example

```json
{
  "mode": "products",
  "searchTerms": [
    "air fryer"
  ],
  "startUrls": [],
  "maxItems": 20,
  "maxPagesPerSearch": 25,
  "sort": "best_match",
  "minPrice": 0,
  "maxPrice": 0,
  "includeDetails": false,
  "maxReviewsPerProduct": 20,
  "reviewsSort": "relevancy",
  "reviewsRating": "all",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# 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 = {
    "searchTerms": [
        "air fryer"
    ],
    "startUrls": [],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("neuro-scraper/walmart-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 = {
    "searchTerms": ["air fryer"],
    "startUrls": [],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("neuro-scraper/walmart-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 '{
  "searchTerms": [
    "air fryer"
  ],
  "startUrls": [],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call neuro-scraper/walmart-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,neuro-scraper/walmart-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/BJhwfsjXtS3jh1oTN/builds/PudC5jJ7E3eLPua0J/openapi.json
