# Walmart Scraper - Products, Prices, Sellers & Search Rank (`pricepulse-data/walmart-product-scraper`) Actor

Scrape Walmart products, prices, was-prices, UPC/GTIN, stock, Buy Box seller (3P vs Walmart, WFS), delivery dates, ratings, reviews and variants from search, category, product URLs or item IDs. Organic & sponsored rank for share of shelf, plus a built-in price/stock change monitor.

- **URL**: https://apify.com/pricepulse-data/walmart-product-scraper.md
- **Developed by:** [PricePulse HQ](https://apify.com/pricepulse-data) (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 $3.50 / 1,000 product with full 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 Scraper: Products, Prices, Buy Box Sellers & Search Rank

**Scrape walmart.com product data, search rankings and Buy Box sellers in one run.** Get price, was-price, unit price, UPC/GTIN, brand, stock, **who wins the Buy Box (Walmart or a 3P seller, WFS or not, how many offers)**, shipping / pickup / delivery date, return policy, rating and 1–5 star breakdown, reviews, images, specs and **every variant**. Run it from **search keywords, search URLs, category pages, product URLs or plain item IDs**.

Every search result also gets its **organic rank, sponsored (ad) rank and page**, plus a per-search **share-of-shelf summary by brand**. Turn on **monitor mode** and each scheduled run tells you **what changed since the last run**: price drops, out-of-stocks, lost Buy Box, rank moves.

Built by an ex-P\&G ecommerce person who used to pay digital-shelf data vendors for exactly this.

### Who uses this Walmart scraper

- **Brands & CPG teams**: digital shelf, share of search, content and Buy Box audits, MAP monitoring.
- **Marketplace sellers & agencies**: competitor prices, who holds the Buy Box, WFS vs seller-fulfilled, sponsored placements on your keywords.
- **Resellers & deal hunters**: Rollback and clearance price drops, back-in-stock alerts.
- **Analysts & AI agents**: clean, flat JSON / CSV / Excel with stable field names, ready for Sheets, BigQuery or an LLM.

### What makes it different

| | This actor | Typical Walmart scraper |
|---|---|---|
| Organic **and** sponsored rank per keyword | ✅ `organicRank`, `sponsoredRank`, `position`, `page` | ❌ or extra actor |
| Share of shelf by brand | ✅ `SHARE_OF_SHELF` summary per search | ❌ |
| Buy Box seller, 3P vs Walmart, WFS, offer count | ✅ flat fields | partial / nested |
| Price & stock change monitor | ✅ built in (`monitorMode`) | ❌ separate tool |
| Store / ZIP the price came from | ✅ `locationStoreId`, `locationZip` on every row | ❌ |
| Variants (size / color / pack) with own price & stock | ✅ free, no extra requests | extra requests / cost |
| Item ID input | ✅ `itemIds` | URLs only |
| Failed pages | retried with a fresh fingerprint, cookies & IP; **never charged** | often charged or silent gaps |

It reads the structured data Walmart embeds in each page (the JSON Walmart's own site renders from), not CSS selectors, so fields don't go blank when the layout changes.

### How much does it cost to scrape Walmart?

Pay per result. Proxies and compute are included, so there's nothing else to pay for.

| Event | Price | Per 1,000 |
|---|---|---|
| Product with full details (`product-result`) | $0.0035 | **$3.50** |
| Search / category result with rank (`search-result`) | $0.001 | **$1.00** |
| Review text (`review`, only if `maxReviews` > 0) | $0.0005 | $0.50 |
| Actor start | $0.00005 | — |

Examples: 1,000 full products ≈ **$3.50**. Ranking the first 3 pages (~120 results) of 50 keywords every day ≈ **$6/day**. A daily price check of 500 products ≈ **$1.75/day**. Set **Maximum cost per run** in the run options and the actor stops cleanly at your limit.

### Quick start

1. Type one or more **Search keywords** (or paste Walmart URLs / item IDs).
2. Set **Max results**.
3. Leave **Open every product page** on for full details, or turn it off for fast, cheap rank tracking.
4. Click **Start** and download JSON, CSV, Excel or HTML, or pull it by API.

```json
{
  "searchKeywords": ["paper towels", "air fryer"],
  "itemIds": ["5159953210"],
  "startUrls": [{ "url": "https://www.walmart.com/browse/electronics/headphones/3944_133251_1095191" }],
  "maxItems": 200,
  "maxItemsPerStartUrl": 40
}
```

### Input

| Field | What it does |
|---|---|
| `searchKeywords` | Keywords to search, e.g. `["air fryer", "protein powder"]` |
| `startUrls` | Any mix of product (`/ip/`), search (`/search?q=`), category (`/browse/`) and department (`/cp/`) URLs. Filters in the URL are kept. |
| `itemIds` | Walmart item IDs, e.g. `5159953210` |
| `maxItems` / `maxItemsPerStartUrl` | Total cap and per-keyword/URL cap (e.g. 40 ≈ page one) |
| `scrapeProductDetails` | `true` (default) = full record. `false` = search results only, ~3.5x cheaper and much faster |
| `sort` | Best match (default), best sellers, price low/high, highest rated, new |
| `includeVariants`, `includeDescription` | Variants list, description / highlights / specs |
| `maxReviews` | Review texts per product (0 = none; ratings and star breakdown are always included) |
| `monitorMode`, `monitorName`, `outputOnlyChanges`, `priceChangeThresholdPct` | Change tracking, see below |
| `proxyConfiguration` | Default US residential is included in the price. Keep it. |

### Output

One row per product. Full-detail example (real run, 2026-11-03, trimmed):

```json
{
  "searchQuery": "paper towels",
  "position": 30, "organicRank": 20, "sponsoredRank": null, "isSponsored": false, "page": 1,
  "usItemId": "2351148881",
  "url": "https://www.walmart.com/ip/Bounty-Paper-Towels-Select-a-Size-4-Triple-Rolls/2351148881",
  "name": "Bounty Paper Towels Select-a-Size, 4 Triple Rolls",
  "brand": "Bounty", "upc": "030772061343", "gtin13": "0030772061343",
  "price": 24.43, "wasPrice": null, "unitPriceString": "$4.52/100 ct",
  "availability": "IN_STOCK", "inStock": true,
  "sellerName": "Staples Business", "sellerType": "EXTERNAL", "soldByWalmart": false, "isWFS": false,
  "offerCount": 5, "buyBoxSuppressed": false,
  "shippingAvailable": true, "pickupAvailable": false, "deliveryDays": 1, "freeShipping": true,
  "badges": ["100+ bought since yesterday"],
  "returnable": true, "returnWindowDays": 30,
  "rating": 4.7, "reviewCount": 19378,
  "ratingBreakdown": { "1": 678, "2": 230, "3": 402, "4": 1539, "5": 16529 },
  "categoryPath": ["Household Essentials", "Paper & Plastic", "Paper Towels", "All Paper Towels"],
  "locationStoreId": "3081", "locationZip": "95829", "locationCity": "Sacramento", "locationState": "CA",
  "scrapedAt": "2026-11-03T12:29:06+00:00"
}
```

Full records also include `images`, `specifications`, `description`, `highlights`, `variants` (each with its own item ID, price, stock and attributes), `secondaryOfferPrice`, `sellerRating`, `deliveryDate`, `snapEligible` and more. The dataset has ready-made views: **Overview**, **Search rank & share of shelf**, **Buy Box & fulfillment**, **Changes** and **Variants**.

#### Search rank and share of shelf

`position` is the slot on the results grid (ads included), `organicRank` counts only organic results and `sponsoredRank` only ads, continuing across pages. A product shown both as an ad and organically keeps both ranks. Each run also saves `SHARE_OF_SHELF` in the key-value store:

```json
{ "searchQuery": "paper towels", "totalResults": 3911, "locationZip": "77080",
  "productsAnalyzed": 30, "organicListings": 27, "sponsoredListings": 12,
  "brands": [
    { "brand": "Bounty", "organic": 8, "sponsored": 3, "bestOrganicRank": 2, "organicSharePct": 29.6, "sponsoredSharePct": 25.0, "avgPrice": 14.07 },
    { "brand": "Great Value", "organic": 4, "sponsored": 0, "bestOrganicRank": 3, "organicSharePct": 14.8, "sponsoredSharePct": 0.0, "avgPrice": 8.8 }
  ] }
```

In search-only mode the brand comes from Walmart's own brand filter for that search (`brandSource`), so a few long-tail brands stay `null`. With product details on, brand comes from the product page.

### Walmart price & stock monitoring

Turn on **Track changes since last run** and schedule the same input (Apify Schedules: daily, hourly…). Every product gets:

`changeType` (`NEW` / `CHANGED` / `UNCHANGED`), `changes` (field, old, new for price, was-price, stock and Buy Box seller), `previousPrice`, `priceChange`, `priceChangePct`, `previousAvailability`, `previousOrganicRank`, `rankChange` (+ = moved up), `previousSeenAt`, `locationChanged`.

Real example from our test runs: an air fryer whose Buy Box moved from **Walmart.com at $134 to the 3P seller VIPUSA at $149.89** (+11.9%) while it climbed 8 places in search.

- **Only save new and changed products** keeps the dataset (and your webhook / Slack / Sheets integration) quiet unless something moved. Unchanged products are still checked and charged as `product-result` / `search-result`; the status message and `RUN_SUMMARY` show how many were checked.
- Use a different **Monitor name** for each list you track. State lives in the key-value store `walmart-monitor-<name>` in your own account.
- Walmart prices by the store nearest the visitor. Every row shows `locationStoreId`/`locationZip`; `locationChanged: true` flags a comparison across different store locations, so you can filter out regional differences.

### Integrations

Export JSON, CSV, Excel, XML or HTML, or use the API, the Python / JavaScript clients, webhooks, **Make, Zapier, n8n, Google Sheets, Slack** and Apify's MCP server for AI agents. Typical setup: a daily schedule with monitor mode and `outputOnlyChanges`, plus a webhook to Slack or a Google Sheet.

Call it from Python (Actor ID `pricepulse-data/walmart-product-scraper`, Store page https://apify.com/pricepulse-data/walmart-product-scraper):

```python
from apify_client import ApifyClient
client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("pricepulse-data/walmart-product-scraper").call(run_input={"searchKeywords": ["air fryer"], "maxItems": 50})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["name"], item["price"], item["sellerName"], item["organicRank"])
```

Each run's Output tab links the product table (Overview, Search rank, Buy Box and Changes views) plus the `SHARE_OF_SHELF` and `RUN_SUMMARY` JSON records.

### Tips & limits

- Up to 25 pages (~40 results each) per search or category, Walmart's own cap. Split broad searches into several keywords or category URLs to get more.
- A single product URL brings every variant's price and stock for free. You don't need one URL per variant.
- Item pages that no longer exist (404) are skipped, not charged, and listed in `RUN_SUMMARY`.
- Location: Walmart picks the store from the residential IP, so rows from one run can show different stores. Choosing a ZIP isn't supported yet.
- UPC search isn't supported: Walmart's search doesn't match on UPC.

### FAQ

**Is it legal to scrape Walmart?** This actor only collects publicly visible product data. It doesn't log in or collect personal data. Reviews include reviewer display names as Walmart shows them; handle them under your own privacy obligations. Consult a lawyer for your use case.

**Why are some fields `null`?** Walmart doesn't publish them for that product (no UPC, no ratings yet, no was-price). The actor never fills in guesses.

**Is there a Walmart API?** Walmart's official APIs are for its sellers and affiliates. This actor gives you the public product page and search data as an API, without an affiliate account.

**Something broken?** Open an issue on the Issues tab with your run ID and the input you used.

# Actor input Schema

## `searchKeywords` (type: `array`):

Keywords to search on walmart.com, e.g. 'air fryer'. Each keyword is one search. Every result gets its organic rank, sponsored rank and page, so you can track share of shelf.

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

Any mix of walmart.com product (/ip/...), search (/search?q=...), category (/browse/...) or department (/cp/...) URLs. Filters and sorting in the URL are kept.

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

Walmart item IDs (the number at the end of a /ip/ URL, e.g. 5159953210). Handy for monitoring a fixed list of products.

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

Stop after this many products in total. You are charged per result, so this also caps your cost.

## `maxItemsPerStartUrl` (type: `integer`):

Cap for each search, category or keyword, e.g. 48 = page one of each keyword. 0 = no cap.

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

On: full record (UPC/GTIN, brand, Buy Box seller, 3P vs Walmart, WFS, offer count, shipping/pickup/delivery date, return policy, rating breakdown, variants, specs). Off: search/category results only (name, price, was-price, rating, seller, badges, sponsored flag, rank), about 3x cheaper and much faster.

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

Only for keyword searches and search/category URLs without their own sort.

## `includeVariants` (type: `boolean`):

List every size/color/pack variant with its own price, stock and item ID. No extra requests or charges.

## `includeDescription` (type: `boolean`):

Include the product description, highlights and specifications table.

## `maxReviews` (type: `integer`):

0 = no review text (rating, review count and the 1-5 star breakdown are always included). Each review is charged as a separate 'review' event.

## `monitorMode` (type: `boolean`):

Remembers every product's price, was-price, stock, Buy Box seller and rank in a named key-value store in your account and adds changeType (NEW / CHANGED / UNCHANGED), changes, previousPrice, priceChangePct and rankChange to each result. Schedule the same input daily to get a price and stock monitor.

## `monitorName` (type: `string`):

Use a different name for each product list you track. State is kept in the key-value store 'walmart-monitor-<name>'.

## `outputOnlyChanges` (type: `boolean`):

With monitoring on, unchanged products are checked (and charged) but not written to the dataset, so your webhook or integration only sees what changed.

## `priceChangeThresholdPct` (type: `integer`):

0 = report every cent of change.

## `maxPagesPerListing` (type: `integer`):

Walmart shows up to 25 pages (about 40 products each) per search or category.

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

Pages fetched in parallel.

## `maxRetries` (type: `integer`):

Blocked or failed pages are retried with a fresh browser fingerprint, cookies and IP.

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

Leave the default (US residential). Proxy traffic is included in the price. If you change this, your setting is used for every page.

## Actor input object example

```json
{
  "searchKeywords": [
    "air fryer"
  ],
  "maxItems": 20,
  "maxItemsPerStartUrl": 0,
  "scrapeProductDetails": true,
  "sort": "best_match",
  "includeVariants": true,
  "includeDescription": true,
  "maxReviews": 0,
  "monitorMode": false,
  "monitorName": "default",
  "outputOnlyChanges": false,
  "priceChangeThresholdPct": 0,
  "maxPagesPerListing": 25,
  "maxConcurrency": 6,
  "maxRetries": 6,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

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

All products (Overview view).

## `searchRank` (type: `string`):

Organic/sponsored rank per keyword.

## `buyBox` (type: `string`):

Buy Box seller, 3P vs Walmart, WFS, offers, delivery.

## `changes` (type: `string`):

Monitor mode: what changed since the previous run.

## `shareOfShelf` (type: `string`):

Brand share of organic and sponsored results per search (JSON).

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

Run statistics and failed URLs (JSON).

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

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

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,pricepulse-data/walmart-product-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/bmaLPjDUlwKKrebBE/builds/7MDgupHO8aWBTWVs0/openapi.json
