# Walmart Scraper - Products, Prices, Stock & Price Drops (`rjmacarthy/walmart-scraper`) Actor

Scrape Walmart search and category results: price, was price, unit price, rating, reviews, stock, seller, shipping and pickup, Rollback and Best seller badges, sponsored flag. Optional product details (specs, variants, UPC, images) and a price-drop and stock monitor.

- **URL**: https://apify.com/rjmacarthy/walmart-scraper.md
- **Developed by:** [rj](https://apify.com/rjmacarthy) (community)
- **Categories:** E-commerce, MCP servers
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 walmart products

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 Scraper - Products, Prices, Stock, Ratings & Price-Drop Monitor

Scrape **Walmart.com** search results, category pages and product pages into clean JSON, CSV or Excel: price, was price, unit price, rating, review count, stock status, seller (Walmart or marketplace), shipping and pickup text, Rollback / Best seller / Overall pick badges and the sponsored flag. Turn on product details for specifications, variants, UPC, model, all images, seller rating, return policy and the 5-to-1-star breakdown. Schedule it in **monitor mode** and get only new products, **price drops** (with the previous price) and **out-of-stock / back-in-stock** changes.

Why this one: search rows cost **$0.0008** each (about half the price of the cheapest Walmart search scraper we compared, and a fifth of others), product details are cheaper than every detail scraper in the Store, there is no run fee beyond Apify's $0.00005 start event, and page fetching is built in - you don't need a proxy.

### What data can you get

| Field | Example | Search row | With details |
|---|---|---|---|
| `usItemId`, `productId`, `url` | 20223605761, https://www.walmart.com/ip/.../20223605761 | yes | yes |
| `name` | DAIVOS 5QT Air Fryer with Viewing Window | yes | yes |
| `price`, `wasPrice`, `unitPrice`, `shippingPrice`, `currency` | 59.39, 99.99, "$14.99/qt", null, USD | yes | yes |
| `rating`, `reviewCount` | 4.6, 112 | yes | yes |
| `availability`, `inStock`, `stockMessage` | "In stock", true, "Only 1 left" | yes | yes |
| `sellerName`, `isWalmartSeller` | Hongti Technology, false | yes | yes |
| `fulfillment` | "Free shipping, arrives tomorrow" | yes | yes |
| `badges`, `isSponsored` | \["Rollback"], false | yes | yes |
| `imageUrl`, `category` | image URL, "Home > Appliances > Kitchen Appliances" | yes | yes |
| `position`, `page`, `searchQuery` | 3, 1, "air fryer" | yes | null for product URLs |
| `brand` | Ninja | - | yes |
| `description`, `specifications` | plain text, \[{name: "Watts", value: "1500 W"}] | - | yes |
| `variants`, `images` | \[{name: "Actual Color", options: \["Black", "Sage"]}], all image URLs | - | yes |
| `upc`, `model` | 622356607315, AF140 | - | yes |
| `sellerType`, `sellerRating`, `sellerReviewCount`, `offerCount` | EXTERNAL, 4.875, 80, 1 | - | yes |
| `shippingText`, `returnPolicy` | "Free pickup, today ...", "Free 90-day returns" | - | yes |
| `ratingBreakdown` | {"5": 6745, "4": 588, "3": 202, "2": 99, "1": 390} | - | yes |
| `changeType`, `previousPrice` | price_drop, 70 | monitor mode | monitor mode |

### Use cases

- **Price monitoring and repricing:** track Walmart prices for your own products or a competitor's catalogue, daily or hourly.
- **Price-drop and Rollback alerts:** schedule a monitor and get only products whose price fell, with the old price.
- **Stock tracking:** know when a product goes out of stock or comes back.
- **Market and assortment research:** which brands, sellers and price points rank for a keyword or category, and how many are sponsored.
- **Marketplace seller research:** find third-party sellers (`isWalmartSeller: false`) and their ratings in a category.
- **Product data enrichment:** UPC, model, specifications and images for catalogue matching.

### How to use

1. Enter one or more **keywords** (what you'd type into Walmart's search box), or paste **search / category URLs**, or **product URLs**.
2. Set **Max products per search** (40 = one results page).
3. Optional: sort order, min/max price, product details, monitor mode.
4. Run, then download the dataset as JSON, CSV, Excel or HTML.

Best-selling Ninja blenders:

```json
{ "keywords": ["ninja blender"], "maxItems": 40, "sort": "best_seller" }
```

65-inch TVs between $300 and $800, most expensive first:

```json
{ "keywords": ["65 inch tv"], "maxItems": 40, "sort": "price_high", "minPrice": 300, "maxPrice": 800 }
```

A category page with full product details:

```json
{ "searchUrls": ["https://www.walmart.com/browse/home/air-fryers/4044_90548_90546_4824_9960466"], "maxItems": 10, "includeDetails": true }
```

Track price and stock of specific products (schedule it daily; each run outputs only what changed):

```json
{
  "productUrls": [
    "https://www.walmart.com/ip/Ninja-Crispi-Glass-Air-Fryer/20054074604",
    "https://www.walmart.com/ip/20223605761"
  ],
  "monitorMode": "changes",
  "stateKey": "my-tracked-products"
}
```

#### Monitor mode

- `all` (default): every product, every run.
- `new`: only products this monitor has never output before.
- `changes`: new products plus `price_drop` / `price_increase` (with `previousPrice`) and `out_of_stock` / `back_in_stock`.

The first run outputs everything and becomes the baseline. For searches, the monitor watches the top **Max products per search** positions, so set it to the range you care about (e.g. 40 = page 1). Sponsored tiles are skipped in monitor modes because ads rotate between runs. Use a different **Monitor name** for each separate monitor.

### Output example

A search row with product details (description and lists shortened):

```json
{
  "id": "5144605607",
  "usItemId": "5144605607",
  "productId": "36NA6O86BHMV",
  "url": "https://www.walmart.com/ip/Ninja-Air-Fryer-Pro-XL-5-5-qt-Black-Air-Fry-Roast-Reheat-Dehydrate-Black-AF140/5144605607",
  "name": "Ninja Air Fryer Pro XL 5-Qt, 3-in-1, 400°F Air Crisp Technology, Nonstick Crisper Plate, AF140 Black",
  "brand": "Ninja",
  "price": 79.97,
  "wasPrice": null,
  "unitPrice": null,
  "shippingPrice": null,
  "currency": "USD",
  "rating": 4.6,
  "reviewCount": 8024,
  "availability": "In stock",
  "inStock": true,
  "stockMessage": "Low stock",
  "sellerName": "Walmart.com",
  "isWalmartSeller": true,
  "fulfillment": "Express Pickup as soon as 1 hour; Express Delivery as soon as 18 mins; Free shipping, arrives today",
  "isSponsored": false,
  "badges": ["Overall pick"],
  "imageUrl": "https://i5.walmartimages.com/seo/Ninja-Air-Fryer-Pro-XL-5-Qt-3-in-1-400-F-Air-Crisp-Technology-Nonstick-Crisper-Plate-AF140-Black_17260726-27fd-40a6-b347-67616dc68f04.963b41a992020f3d2d638bae5d43ce7c.jpeg",
  "category": "Home > Appliances > Kitchen Appliances > Fryers > Air Fryers > Ninja Air Fryers",
  "position": 1,
  "page": 1,
  "searchQuery": "ninja air fryer",
  "description": "Meet the Ninja Air Fryer Pro XL, a fast and easy way to get the perfect crisp with up to 400F of heat...",
  "specifications": [{ "name": "Volume capacity", "value": "5 qt" }, { "name": "Watts", "value": "1800 Watts" }],
  "variants": [{ "name": "Actual Color", "options": ["Black", "Cyberspace", "Navy", "Sage", "Stone", "White"] }, { "name": "Volume Capacity", "options": ["5 qt", "6.5 qt"] }],
  "images": ["https://i5.walmartimages.com/asr/87a55a75-27d4-4989-aeac-d1e7129bb023.4e30a274f481ae3b4944d8c7ed3e1bb2.jpeg"],
  "upc": "622356607315",
  "model": "AF140",
  "sellerType": "INTERNAL",
  "sellerRating": null,
  "sellerReviewCount": null,
  "offerCount": 1,
  "shippingText": "Free pickup, today at Sacramento Supercenter; Delivery from store; Free shipping, arrives by today to Sacramento, 95829",
  "returnPolicy": "Free 90-day returns",
  "ratingBreakdown": { "1": 390, "2": 99, "3": 202, "4": 588, "5": 6745 },
  "detailsStatus": "ok",
  "changeType": null,
  "previousPrice": null,
  "scrapedAt": "2026-11-18T17:35:31.523Z"
}
```

### Pricing

Pay per event, same price on every paid Apify plan. Page fetching is included; you never pay for a proxy.

| Event | Price |
|---|---|
| `product` - one product row in the dataset (primary) | $0.0008 |
| `product-details` - extra per row whose product page was opened (`includeDetails` or `productUrls`) | $0.003 |
| `apify-actor-start` | $0.00005 |

Examples:

- 1,000 search products ≈ **$0.80** (about 25 results pages).
- 100 products with full details ≈ $0.08 + $0.30 = **$0.38**.
- Tracking 20 product URLs daily ≈ 20 x $0.0038 = **$0.076** per day on the first run; afterwards in `changes` mode you only pay for rows that changed.
- Details that fail to load are not charged as `product-details`. Set "Maximum cost per run" and the Actor stops cleanly at the limit.

**Free Apify plan:** runs are limited to **5 page requests** each (about 200 search products, or fewer with details), because every page fetch costs us money and free-plan runs earn nothing. Any paid Apify plan removes the limit.

### Tips and limits

- About **40 products per results page** (we measured 37-54 after de-duplication), at most 25 pages (~1,000 products) per search. Narrow broad searches with a price range or a category URL.
- Pages take **3-30 seconds** each (a page that fails is tried up to 3 times in total). Pages are fetched in parallel (default 5).
- `brand` is not in Walmart's search tiles, so it is filled only with product details.
- Prices, pickup and delivery text are what Walmart shows a US shopper with Walmart's default store (currently a Sacramento, CA store); local prices in your own store can differ.
- A few search tiles come without any price data (seen on 1 of 40 TV results, a bundle listing); their `price` is null on search rows and is filled in when product details are on.
- `category` on search rows is Walmart's own merchandising path and is sometimes a promotional shelf; product details give the real category tree.
- Only walmart.com (US) is supported, not walmart.ca or other countries. Reviews text is not included (use a dedicated reviews scraper).
- One page request per product URL and per detail row, so details are about 40x more page fetches than search rows. Use them where you need them.

### FAQ

**Is it legal to scrape Walmart?**
This Actor reads only public product pages, without logging in, and does not collect personal data. Walmart's terms of use restrict automated access; you are responsible for how you use the data and for complying with the terms and laws that apply to you. If in doubt, ask a lawyer.

**Do I need a proxy?**
No. There is no proxy setting; page fetching is built in and included in the price.

**Is there a free-plan limit?**
Yes: on the free Apify plan each run makes at most 5 page requests and then stops with the message "Free Apify plan: limited to 5 pages per run; upgrade to any paid plan for unlimited runs". Paid plans are not limited.

**Why is a product missing from the monitor output?**
In monitor modes only new or changed products are output, sponsored tiles are skipped, and search monitors watch only the top "Max products per search" positions.

**Can I get the price history?**
Schedule a monitor with `monitorMode: "changes"`; every price change is output with `previousPrice`, so the datasets of your scheduled runs form the history.

**Why are some fields null?**
Walmart doesn't show every field for every product (e.g. no was price when nothing is on sale, no unit price for most electronics). Detail fields are null unless details were requested.

### Integrations

Use the Apify API, the JavaScript or Python client, webhooks, or connect it to Make, Zapier, n8n, Google Sheets, Slack and others from the Integrations tab. AI agents can call it through the Apify MCP server (`https://mcp.apify.com`).

### Changelog

- 0.1 (2026-11-18): first release. Search, browse and category URLs, product URLs, product details, monitor mode for new products, price and stock changes.

### Ready-to-run examples

- [Track Walmart best-selling Ninja blenders and prices](https://apify.com/rjmacarthy/walmart-scraper/examples/walmart-best-selling-ninja-blenders)

### More scrapers by the same developer

- [AutoScout24 Scraper - Used Car Listings & Prices (Europe)](https://apify.com/rjmacarthy/autoscout24-scraper)
- [Etsy Scraper - Search Listings, Prices, Shops & Bestsellers](https://apify.com/rjmacarthy/etsy-scraper)
- [Flipkart Scraper - Prices, Ratings & Offers from Search](https://apify.com/rjmacarthy/flipkart-scraper)
- [Kleinanzeigen Scraper - Germany Classifieds Listings & Prices](https://apify.com/rjmacarthy/kleinanzeigen-scraper)
- [Rightmove Scraper - UK Property for Sale & Rent with Prices](https://apify.com/rjmacarthy/rightmove-scraper)
- [Shopify App Store Scraper - Apps, Pricing, Ratings & Reviews](https://apify.com/rjmacarthy/shopify-app-store-scraper)

Browse all my Actors on [my Apify Store profile](https://apify.com/rjmacarthy).

### Support

Found a bug or need a field? Open an issue on the Actor's Issues tab and include the run ID.

# Actor input Schema

## `keywords` (type: `array`):

What you would type into Walmart's search box, one per line, e.g. "air fryer" or "ninja blender". Each keyword is one search.

## `searchUrls` (type: `array`):

Optional. Paste Walmart search (https://www.walmart.com/search?q=...), browse (https://www.walmart.com/browse/...) or category (https://www.walmart.com/cp/...) URLs. Filters in the URL (brand, rating, store, ...) are kept.

## `productUrls` (type: `array`):

Optional. Product pages (https://www.walmart.com/ip/.../123456789) or bare item ids. Each one is a single page request and returns one row with full details (charged "product" + "product-details"). Good for tracking the price and stock of a fixed list of products.

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

Stop each search after this many products. 0 = every page Walmart serves (at most 25 pages, about 1,000 products). Walmart shows about 40 products per results page, so 40 products = 1 page.

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

Order of the search results. Applies to keywords and pasted URLs ("Best match" keeps a URL's own order).

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

Only products priced at or above this amount in US dollars.

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

Only products priced at or below this amount in US dollars.

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

Also open each product page and add brand, description, specifications, variants, all images, UPC, model, seller type and rating, offer count, shipping and pickup text, return policy and the 5-to-1-star rating breakdown. One extra page per product, charged as an extra "product-details" event.

## `monitorMode` (type: `string`):

"all" outputs every product. "new" outputs only products this monitor has not seen before. "changes" outputs new products plus price drops/increases (with previousPrice) and out-of-stock / back-in-stock changes. The first monitor run outputs everything and sets the baseline. Sponsored tiles are skipped in monitor modes. Use with a schedule.

## `stateKey` (type: `string`):

Monitor modes remember seen products under this name. Use a different name for each separate monitor.

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

How many Walmart pages are fetched at the same time.

## `maxZyteRequests` (type: `integer`):

Safety cap on page fetches per run. 0 = automatic (the pages your input needs plus 20%, at most 2,000). On the free Apify plan the cap is 5 pages per run.

## Actor input object example

```json
{
  "keywords": [
    "air fryer"
  ],
  "maxItems": 20,
  "sort": "best_match",
  "includeDetails": false,
  "monitorMode": "all",
  "stateKey": "default",
  "maxConcurrency": 5,
  "maxZyteRequests": 0
}
```

# Actor output Schema

## `products` (type: `string`):

No description

## `runSummary` (type: `string`):

No description

# 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 = {
    "keywords": [
        "air fryer"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("rjmacarthy/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 = {
    "keywords": ["air fryer"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("rjmacarthy/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 '{
  "keywords": [
    "air fryer"
  ],
  "maxItems": 20
}' |
apify call rjmacarthy/walmart-scraper --silent --output-dataset

```

## MCP server setup

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