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

Scrape Walmart products by keyword, URL or item ID with required ZIP-local prices and stock. Export price, unit price, ratings, seller, fulfillment and images for price monitoring and catalog builds. HTTP Walmart scraper and API alternative — no browser.

- **URL**: https://apify.com/crawloop/walmart-scraper.md
- **Developed by:** [Andrej Kiva](https://apify.com/crawloop) (community)
- **Categories:** E-commerce, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.50 / 1,000 overview products

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 — ZIP-local prices, stock & SKUs

> **Disclaimer:** Unofficial tool — not affiliated with, sponsored by, or endorsed by Walmart Inc. or its affiliates. Data is read from publicly accessible catalog pages only. No login. You are responsible for complying with applicable law and the site’s terms. No warranty on accuracy or availability. Provided for informational and research use.

> **US retail catalog** — ZIP-local Walmart product prices and stock for price monitoring, MAP checks, and catalog fills. Pair with Amazon Search for marketplace comps.

| Walmart catalog | Weekly grocery ads | Amazon search | Tractor Supply catalog |
| :---: | :---: | :---: | :---: |
| **Walmart Scraper** ◄── you are here | [Aldi Weekly Ad Scraper](https://apify.com/crawloop/aldi-weekly-ad-scraper) · [Lidl Weekly Offers Scraper](https://apify.com/crawloop/lidl-weekly-offers-scraper) | [Amazon Search Scraper](https://apify.com/crawloop/amazon-search-scraper) | [Tractor Supply Product Scraper](https://apify.com/crawloop/tractor-supply-product-scraper) |
| ZIP-local price, unit price, stock | ALDI US / Lidl EU flyer prices | Keyword SERP, ASIN, badges | Rural-retail SKUs and specs |

This **Walmart scraper** turns public search, category, and product pages into a structured Apify dataset. Every run requires a **US ZIP**, so rows carry **local price**, **unit price**, **stock**, **pickup/delivery**, **seller**, **rating**, and **images**. Use it as a Walmart API alternative from **Python**, **Node.js**, or an **MCP** assistant — HTTP scrape, no browser.

***

### When to use this Actor

- **Walmart product scrape** by keyword, product URL, search URL, category URL, or numeric item ID
- **ZIP-local price and stock** for the store serving that ZIP (optional store ID pin)
- **Price monitoring** and MAP checks on advertised prices, was-prices, and unit prices
- **Assortment research** — ratings, review counts, sponsored flags, SNAP EBT, fulfillment
- **SKU / URL enrichment** when you already have `/ip/` links or `usItemId` values

### When not to use this Actor

- **Checkout, cart, or Walmart account** automation
- **Full review-text export** — this Actor returns rating and review **count**, not review bodies
- **Store-locator crawls** as a primary job (pass `zip` and optional `storeId` instead)
- **Canada / Mexico catalogs** — US catalog only
- **Amazon search** — use [Amazon Search Scraper](https://apify.com/crawloop/amazon-search-scraper)

***

### Key Features

- **Required ZIP** — every row is localized (price, stock, pickup/delivery, serving store)
- **Keyword search** — the same terms shoppers type into Walmart search
- **URL / ID lookup** — `/ip/` product pages, search URLs, `/browse/` categories, numeric `usItemId`
- **Overview vs detail** — fast listing cards, or enrich with UPC, description, images, variants
- **Unit price & SNAP** — per-oz / per-count strings and EBT flag when the page exposes them
- **Fast HTTP** — public `__NEXT_DATA__` via Chrome TLS impersonation; no headless browser

***

### Use Cases

| Use case | What you get | Why it helps |
| :--- | :--- | :--- |
| **ZIP price monitoring** | `price`, `originalPrice`, `unitPrice`, `storeId` | Track advertised Walmart prices for a local store |
| **Stock / fulfillment** | `inStock`, `pickupAvailable`, `deliveryAvailable` | See pickup vs shipping for that ZIP |
| **Search harvest** | Title, rating, seller, sponsored flag | Build shortlists from shopper queries |
| **SKU / URL enrichment** | UPC, description, images, variants (detail mode) | Fill PIM / ERP from known item IDs |
| **MAP / offer checks** | `offerCount`, seller, was-price | Spot extra marketplace offers on a product page |

***

### Quick Start

**ZIP-local keyword search (overview):**

```json
{
  "keywords": ["paper towels"],
  "zip": "10001",
  "scrapeMode": "overview",
  "maxItems": 40,
  "maxPages": 1
}
```

**Product URL or item ID (detail):**

```json
{
  "startUrls": ["https://www.walmart.com/ip/Bounty-Paper-Towels-Select-a-Size-6-Triple-Rolls/14580219389"],
  "itemIds": ["14580219389"],
  "zip": "75201",
  "storeId": "3520",
  "scrapeMode": "detail"
}
```

***

### Input Parameters

| Parameter | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `keywords` | Array | — | Search terms, one per line |
| `startUrls` | Array | — | Product `/ip/`, search, or `/browse/` URLs |
| `itemIds` | Array | — | Numeric Walmart `usItemId` values |
| `zip` | String | **required** | 5-digit US ZIP (prefill `10001`) |
| `storeId` | String | empty | Optional store number to pin assortment |
| `scrapeMode` | Enum | `overview` | `overview` (listings) or `detail` (product-page enrich) |
| `sort` | Enum | `best_match` | `best_match`, `price_low`, `price_high`, `best_seller`, `rating`, `newest` |
| `minPrice` / `maxPrice` | Number | — | Optional search price bounds |
| `maxItems` | Integer | `40` | Maximum dataset items per run |
| `maxPages` | Integer | `5` | Max search pages per keyword (~40 products/page) |
| `requestDelaySecs` | Number | `0.35` | Delay between HTTP requests |
| `proxyConfiguration` | Object | US residential | Apify Proxy — US RESIDENTIAL required |

***

### Output

| Field | Description |
| :--- | :--- |
| `usItemId` | Numeric Walmart item id |
| `title` | Product title |
| `brand` | Brand / manufacturer |
| `price` | Current ZIP-local price |
| `originalPrice` | Was-price when higher |
| `unitPrice` | Per-unit string when present |
| `rating` / `reviewCount` | Stars and review **count** |
| `sellerName` | Buy-box seller |
| `availability` / `inStock` | Stock status |
| `pickupAvailable` / `deliveryAvailable` | Fulfillment flags |
| `snapEligible` | SNAP EBT flag when exposed |
| `isSponsored` | Sponsored search card |
| `zip` / `storeId` | Requested ZIP and serving store |
| `url` | Canonical product URL |
| `upc` | UPC on **detail** rows |
| `description` / `images` / `variants` | Product-page extras in detail mode |
| `error` | Fetch/parse error (`recordType=error`, not billed) |

#### Output example

```json
{
  "source": "walmart",
  "recordType": "listing",
  "usItemId": "14580219389",
  "title": "Bounty Paper Towels Select-a-Size, 6 Triple Rolls",
  "price": 16.94,
  "unitPrice": "$2.30/100 ct",
  "currency": "USD",
  "rating": 4.7,
  "reviewCount": 100895,
  "sellerName": "Walmart.com",
  "availability": "IN_STOCK",
  "inStock": true,
  "zip": "10001",
  "storeId": "1171",
  "url": "https://www.walmart.com/ip/Bounty-Paper-Towels-Select-a-Size-6-Triple-Rolls/14580219389"
}
```

***

### Integration examples

Replace `YOUR_TOKEN` with an Apify API token. US residential proxy is required for ZIP-local assortment.

#### Node.js

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('crawloop/walmart-scraper').call({
  keywords: ['paper towels'],
  zip: '10001',
  scrapeMode: 'overview',
  maxItems: 25,
  proxyConfiguration: {
    useApifyProxy: true,
    apifyProxyGroups: ['RESIDENTIAL'],
    apifyProxyCountry: 'US',
  },
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_TOKEN")
run = client.actor("crawloop/walmart-scraper").call(
    run_input={
        "keywords": ["paper towels"],
        "zip": "10001",
        "scrapeMode": "overview",
        "maxItems": 25,
        "proxyConfiguration": {
            "useApifyProxy": True,
            "apifyProxyGroups": ["RESIDENTIAL"],
            "apifyProxyCountry": "US",
        },
    }
)
items = client.dataset(run["defaultDatasetId"]).list_items().items
print(items)
```

#### cURL

```bash
curl "https://api.apify.com/v2/acts/crawloop~walmart-scraper/runs?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"keywords":["paper towels"],"zip":"10001","scrapeMode":"overview","maxItems":25,"proxyConfiguration":{"useApifyProxy":true,"apifyProxyGroups":["RESIDENTIAL"],"apifyProxyCountry":"US"}}'
```

### MCP and AI assistants

Use this Actor from AI tools via [Apify MCP](https://docs.apify.com/platform/integrations/mcp). Connect your Apify account, then call `crawloop/walmart-scraper`.

Example prompts:

- "Run Walmart Scraper for keyword paper towels in ZIP 10001 and return the top 20 rows as JSON"
- "Look up Walmart item 14580219389 in detail mode for ZIP 75201 and summarize price, UPC, and stock"
- "Scrape Walmart search milk in ZIP 10001, then chain Amazon Search Scraper for the same keyword comps"

### Suite next step

After a Walmart ZIP-local pull, run [Aldi Weekly Ad Scraper](https://apify.com/crawloop/aldi-weekly-ad-scraper) for US grocery circulars, [Amazon Search Scraper](https://apify.com/crawloop/amazon-search-scraper) for marketplace search comps, or [Tractor Supply Product Scraper](https://apify.com/crawloop/tractor-supply-product-scraper) for rural-retail catalog rows.

### Related Actors

| Focus | Actor |
| :--- | :--- |
| **Walmart ZIP-local catalog** | **Walmart Scraper** ◄── you are here |
| ALDI US weekly circular | [Aldi Weekly Ad Scraper](https://apify.com/crawloop/aldi-weekly-ad-scraper) |
| Lidl EU weekly leaflets | [Lidl Weekly Offers Scraper](https://apify.com/crawloop/lidl-weekly-offers-scraper) |
| Amazon keyword search | [Amazon Search Scraper](https://apify.com/crawloop/amazon-search-scraper) |
| Tractor Supply catalog | [Tractor Supply Product Scraper](https://apify.com/crawloop/tractor-supply-product-scraper) |
| Wholesale / liquidation lots | [888lots Scraper](https://apify.com/crawloop/888lots-scraper) |
| eBay sold comps | [eBay Sold Listings Scraper](https://apify.com/crawloop/ebay-sold-listings-scraper) |

### FAQ

**How do I scrape Walmart with Python or Node.js?**\
Call `crawloop/walmart-scraper` with the Apify client examples above. Pass `zip` plus at least one of `keywords`, `startUrls`, or `itemIds`. Export the dataset as JSON or CSV from the run.

**Why is ZIP required?**\
Walmart prices and stock are store-scoped. A national dump without ZIP is what generic product scrapers already sell. This Actor always localizes the run.

**What is the difference between overview and detail?**\
Overview is one search request per page (price, ratings, stock, fulfillment). Detail fetches each product page and adds UPC, description, image gallery, variants, and return policy.

**Does this include grocery aisles?**\
Grocery SKUs appear in search and product pages the same way as other catalog items. Pass a ZIP so unit price and pickup reflect that store. This is not a weekly-ad or store-locator Actor.

**Does this include review text?**\
No. Each row includes star rating and review count only.

**Are error rows billed?**\
No. `error` rows are not billed as listing or product results.

**Why do I need residential proxy?**\
PerimeterX often blocks datacenter IPs. US RESIDENTIAL is the default so ZIP-local assortment can resolve.

**Can I pin a specific store?**\
Yes — set `storeId` to a Walmart store number. `storeId` on output is the **serving** store used for the row.

### Notes

- Prefer **US Apify RESIDENTIAL**. Bare datacenter IPs often return a bot wall.
- The digits at the end of a product URL are the canonical `usItemId`.
- `error` rows are not billed as listing or product results.

# Actor input Schema

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

Walmart search terms, the same queries shoppers type into site search. One keyword per line.

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

Product /ip/ URLs, search URLs, or category /browse/ URLs.

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

Numeric usItemId values from a product URL (the digits after /ip/).

## `zip` (type: `string`):

Required 5-digit US ZIP. Every row is localized to this ZIP (price, stock, pickup/delivery).

## `storeId` (type: `string`):

Optional Walmart store number to pin assortment (e.g. 3520). When empty, Walmart picks a store for the ZIP.

## `scrapeMode` (type: `string`):

Overview returns search cards (price, stock, ratings). Detail fetches each product page for UPC, description, images, variants.

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

Native Walmart search sort.

## `minPrice` (type: `number`):

Optional minimum price filter on search.

## `maxPrice` (type: `number`):

Optional maximum price filter on search.

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

Stop after this many dataset items across all inputs.

## `maxPages` (type: `integer`):

Maximum Walmart search pages per keyword (about 40 products per page).

## `requestDelaySecs` (type: `number`):

Pause between HTTP requests on the sticky session.

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

US RESIDENTIAL is required for ZIP-local prices. Datacenter IPs often hit PerimeterX.

## Actor input object example

```json
{
  "keywords": [
    "paper towels"
  ],
  "zip": "10001",
  "scrapeMode": "overview",
  "sort": "best_match",
  "maxItems": 40,
  "maxPages": 5,
  "requestDelaySecs": 0.35,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

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

Default dataset items.

# 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": [
        "paper towels"
    ],
    "zip": "10001",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("crawloop/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": ["paper towels"],
    "zip": "10001",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("crawloop/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": [
    "paper towels"
  ],
  "zip": "10001",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call crawloop/walmart-scraper --silent --output-dataset

```

## MCP server setup

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