# Walmart Product Scraper: Prices, Sellers, UPC & Reviews (`zhtech/walmart-product-scraper`) Actor

Scrape Walmart.com by search term, category URL or product URL. Get price, was price, stock, seller (Walmart or third-party), brand, rating, UPC/GTIN, specs, variants, images, shipping and pickup info, plus optional reviews. Pay only for products delivered.

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

## Pricing

from $2.50 / 1,000 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 Product Scraper: Prices, Sellers, UPC, Variants & Reviews

Scrape Walmart.com products by **search term**, **category URL** or **product URL** and get clean, flat, ready to use data: price, was price, discount, stock status, seller (Walmart or third-party), brand, rating, review count, UPC and GTIN, specifications, every variant, all images, shipping and pickup info, and optional customer reviews. One row per product, no login, no Walmart API key.

Built by **ZH Tech** for people who need Walmart data that actually arrives: price monitoring, catalog matching, market research and reselling.

### Why this Walmart scraper

- **One Actor for everything.** Mix search terms, category pages, search URLs with filters, product URLs and bare item IDs in the same run. Add reviews or variants with a switch instead of running a second Actor.
- **Built to get through bot protection.** Walmart blocks most scrapers. This one detects blocked pages, retries with fresh IPs, and automatically moves stubborn pages to US residential proxies. In our test runs every valid product URL and search returned data.
- **Clean, typed output.** Prices are numbers, availability is one clear value plus an `inStock` true/false, seller type is spelled out, descriptions are plain text instead of HTML, and every badge is kept (not just the first one).
- **You only pay for products you get.** Invalid URLs, removed products, blocked pages and error rows are never charged. Your max cost per run is always respected.
- **Clear errors.** When something cannot be scraped, the run status and the `RUN_SUMMARY` record say exactly which input failed and why.

### What data you get

| Group | Fields |
|---|---|
| Identity | `itemId`, `productId`, `url`, `title`, `brand`, `upc`, `gtin13`, `model`, `manufacturerProductId`, `productType` |
| Price | `price`, `wasPrice`, `savingsAmount`, `discountPercent`, `currency`, `priceRange`, `unitPrice`, `isRollback`, `isClearance`, `isReducedPrice` |
| Stock | `availability` (for example `IN_STOCK`, `OUT_OF_STOCK`), `availabilityText`, `inStock`, `maxOrderQuantity`, `isPreOrder` |
| Seller | `sellerName`, `sellerId`, `sellerType` (Walmart or third-party marketplace seller), `isSoldByWalmart`, `isFulfilledByWalmart`, `additionalOfferCount` |
| Ratings | `rating`, `reviewCount`, `ratingBreakdown` (count per star), `recommendedPercentage` |
| Content | `thumbnail`, `images`, `shortDescription`, `description`, `highlights`, `specifications`, `badges`, `condition`, `returnPolicy` |
| Category | `categoryPath` (for example `Home > Appliances > Air Fryers`), `categories` with links |
| Variants | `variantOptions` (all sizes, colors and so on), `selectedVariant`, `variantCount`, `variants` (each with item ID, attributes, price, stock, image, URL) |
| Fulfillment | `shipping` (available, free, delivery date, text), `pickup` (available, store, text), `delivery`, `location` Walmart priced against |
| Reviews (optional) | `reviews`: rating, title, text, date, verified purchase, helpful votes, photos, seller response |
| Source | `searchQuery`, `position` (rank in results), `isSponsored`, `sourceUrl`, `sourceType`, `dataSource`, `scrapedAt` |

### Use cases

- **Price monitoring and MAP checks.** Schedule a run over your item IDs and track `price`, `wasPrice`, `isRollback` and `inStock` over time.
- **Competitor and assortment research.** Pull a whole category or search and compare brands, sellers, prices and ratings.
- **Search rank tracking.** `position` and `isSponsored` show where products rank for a keyword and which spots are ads.
- **Catalog matching.** Match Walmart listings to your own catalog with `upc`, `gtin13`, `model` and `manufacturerProductId`.
- **Marketplace seller intelligence.** See which listings are sold by Walmart and which by third-party sellers, and who fulfills them.
- **Review and sentiment analysis.** Attach the newest, most helpful or lowest rated reviews to each product.
- **Reselling and arbitrage.** Find discounted, clearance and rollback items with large `discountPercent`.

### How to use it

1. Open the **Input** tab.
2. Add **search terms** (one per line), **Walmart URLs**, or **item IDs**. You can use all three at once.
3. Set **Max products per search term or category URL** (40 is a good start).
4. Optional: turn on reviews, choose a sort order or a price range.
5. Click **Start**. Results appear in the **Output** tab and can be downloaded as JSON, CSV, Excel, XML or HTML.

#### Input examples

Search two keywords, 50 products each, best sellers first, between $20 and $150:

```json
{
  "searchQueries": ["air fryer", "robot vacuum"],
  "maxItemsPerSearch": 50,
  "sort": "best_seller",
  "minPrice": 20,
  "maxPrice": 150
}
```

Monitor a list of products every day, with the 20 newest reviews each:

```json
{
  "itemIds": ["5466948866", "780491488", "17707154629"],
  "maxReviewsPerProduct": 20,
  "reviewsSort": "newest"
}
```

Scrape a category page and a filtered search URL copied from your browser:

```json
{
  "startUrls": [
    { "url": "https://www.walmart.com/browse/home/air-fryers/4044_90548_90546_4824_9960466" },
    { "url": "https://www.walmart.com/search?q=lego&facet=brand%3ALEGO" }
  ],
  "maxItemsPerSearch": 200
}
```

Fast rank tracking without opening product pages (about 3 times faster):

```json
{
  "searchQueries": ["paper towels", "gaming headset"],
  "maxItemsPerSearch": 100,
  "scrapeProductDetails": false
}
```

#### Supported URLs

- Product pages: `https://www.walmart.com/ip/<name>/<itemId>` or just the item ID
- Review pages: `https://www.walmart.com/reviews/product/<itemId>`
- Search: `https://www.walmart.com/search?q=...` (filters and sort in the URL are kept)
- Categories: `https://www.walmart.com/browse/...` and department pages `https://www.walmart.com/cp/<name>/<id>` (converted automatically)
- Shop and brand pages that show a product grid

### Output example

A real product row (arrays shortened):

```json
{
  "itemId": "5466948866",
  "productId": "2RYO0I9APCO1",
  "url": "https://www.walmart.com/ip/Gourmia-All-in-One-14-Quart-Air-Fryer-Oven-Rotisserie-Dehydrator-with-Temperature-Probe-New/5466948866",
  "title": "Gourmia All-in-One 14-Quart Air Fryer, Oven, Rotisserie, Dehydrator with Temperature Probe, New",
  "brand": "Gourmia",
  "price": 55,
  "wasPrice": 129,
  "currency": "USD",
  "savingsAmount": 74,
  "discountPercent": 57,
  "isRollback": false,
  "isClearance": false,
  "availability": "IN_STOCK",
  "availabilityText": "In stock",
  "inStock": true,
  "sellerName": "Walmart.com",
  "sellerType": "Walmart",
  "isSoldByWalmart": true,
  "isFulfilledByWalmart": true,
  "rating": 4.5,
  "reviewCount": 8596,
  "ratingBreakdown": { "1": 658, "2": 160, "3": 278, "4": 723, "5": 6777 },
  "recommendedPercentage": 86,
  "thumbnail": "https://i5.walmartimages.com/seo/Gourmia-All-in-One-14-Quart-Air-Fryer-Oven-Rotisserie-Dehydrator-with-Temperature-Probe-New_ddede81a-1a1d-4f67-9691-244ba7752d8f.e73ca346184304e370cc829142d9f4f7.jpeg",
  "images": ["https://i5.walmartimages.com/seo/Gourmia-All-in-One-14-Quart-Air-Fryer-...jpeg", "https://i5.walmartimages.com/asr/1812626b-...jpeg"],
  "upc": "810002865572",
  "gtin13": "0810002865572",
  "model": "GAF1290",
  "manufacturerProductId": "GAF1290",
  "productType": "Air Fryers",
  "categoryPath": "Home > Appliances > Kitchen Appliances > Fryers > Air Fryers > Gourmia Air Fryers",
  "specifications": [
    { "name": "Volume capacity", "value": "14 qt" },
    { "name": "Watts", "value": "1750 Watts" }
  ],
  "badges": ["Black Friday Deal", "5K+ bought since yesterday", "Overall pick"],
  "variantCount": 0,
  "variants": [],
  "shipping": { "available": true, "freeShipping": true, "deliveryDate": "2026-11-17T22:59:00.000Z", "text": "Free shipping, arrives by Tue, Nov 17 to Sacramento, 95829" },
  "pickup": { "available": false, "storeName": "Sacramento Supercenter", "text": "Pickup not available at Sacramento Supercenter" },
  "location": { "postalCode": "95829", "city": "Sacramento", "state": "CA", "storeId": "3081" },
  "returnPolicy": "Free 90-day returns",
  "reviews": [
    {
      "reviewId": "448782536",
      "rating": 5,
      "text": "Good pricing, fast delivery",
      "submittedAt": "2026-11-09",
      "isVerifiedPurchase": true,
      "helpfulVotes": 0,
      "reviewerName": null
    }
  ],
  "searchQuery": null,
  "position": null,
  "sourceType": "product-url",
  "dataSource": "product-page",
  "scrapedAt": "2026-11-16T02:56:47.486Z"
}
```

For products that have variants, each entry in `variants` looks like this:

```json
{
  "itemId": "20270101347",
  "attributes": { "Color": "Black", "Count Per Pack": "10", "Clothing Size": "3XL" },
  "price": 94.78,
  "availability": "IN_STOCK",
  "url": "https://www.walmart.com/ip/Hanes-Men-s-Super-Value-Pack-White-Crew-T-Shirt-Undershirts-10-Pack/20270101347"
}
```

The **Output** tab has three ready views: **Overview**, **Price monitoring** and **Catalog and identifiers**.

### How much does it cost?

This Actor uses **pay per event** pricing. You pay a small fee when a run starts and then only for what is delivered:

| Event | When it is charged |
|---|---|
| Actor start | Once per run |
| Result | Each product row saved to the dataset |
| Review | Each review attached to a product (only if you ask for reviews) |

The exact prices for your plan are shown on the **Pricing** tab. Platform usage (compute, proxies, storage) is included, you do not pay it separately.

Not charged, ever: invalid or unsupported URLs, products that no longer exist, pages Walmart blocked after all retries, and the optional error rows.

To cap your spend, set **Max total products** in the input or a maximum cost per run in the run options. The Actor stops cleanly when the limit is reached and keeps everything scraped so far.

### Tips for best results

- Keep the default proxy settings. The Actor starts with low cost datacenter IPs and switches individual pages to US residential IPs only when Walmart blocks them.
- For very large jobs, split work into several searches or categories. Walmart shows at most about 1,000 products (25 pages) per search, so narrow searches with price ranges or filters in the URL to reach deeper.
- Turn off **Full product details** when you only need rank, price and stock from search pages. It is much faster.
- Walmart only lists reviews that contain text, so the number of reviews you can download can be lower than `reviewCount`.

### FAQ

**Is it legal to scrape Walmart?**
This Actor only collects publicly visible product information and does not log in. Scraping public data is generally allowed, but you are responsible for how you use the data. Reviews can contain personal data, so reviewer nicknames are left out unless you turn them on. If you are unsure, ask a lawyer.

**Do I need a Walmart account or API key?**
No.

**Why do some products show a different store or ZIP code in `location`?**
Walmart localizes delivery dates, pickup stores and sometimes prices based on the visitor's location, which here is the proxy IP. The `location` field tells you which location the data applies to.

**Can I choose a ZIP code or store?**
Not in this version. See Limitations.

**What happens if Walmart blocks a page?**
The page is retried with a new IP, first on datacenter proxies, then on US residential proxies. If a product page still cannot be loaded but the product was found in search results, you still get a row with the search page data and a `detailsError` field explaining what happened. Pages that fail completely are never charged.

**Why did my run return fewer products than I asked for?**
Common reasons: the search has fewer results than your limit, duplicates were removed (turn off **Remove duplicate products** to keep them), sponsored items were skipped, or the run reached your maximum cost. The run status message and the `RUN_SUMMARY` record in the key-value store explain what happened.

**Can I get every size and color as a separate row?**
Yes. Turn on **Scrape every variant as its own product**. Each variant row counts as one result.

**How fast is it?**
In our tests with default settings, about 50 to 60 fully detailed products per minute, and several hundred products per minute with full details turned off. Speed depends on how hard Walmart is blocking at the moment.

**Does it work for Walmart Canada or Mexico?**
No, only walmart.com (United States).

### Limitations

- Only walmart.com (US). Walmart.ca and Walmart.com.mx URLs are rejected with a clear message.
- No ZIP code or store selection yet. Location dependent fields reflect the proxy IP's region.
- Walmart caps search and category results at 25 pages (about 1,000 products) per query.
- Other sellers' offers on the same item are counted (`additionalOfferCount`) but not listed individually.
- Questions and answers are not collected.
- Walmart changes its site from time to time. The Actor reads Walmart's own embedded page data instead of fragile page layout and ships with an automated test suite, but a site change can still cause a short outage.

### Integrations

Results can be sent anywhere using Apify integrations: Google Sheets, Google Drive, Slack, email, Zapier, Make, n8n, Airbyte, webhooks and more. Use the **Integrations** tab of the Actor or of a saved task. Combine with **Schedules** to run price checks daily or hourly.

### Use it through the API

Run the Actor and get results with the Apify API. Replace `<YOUR_API_TOKEN>` with your token from Apify Console settings.

**JavaScript**

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('zhtech/walmart-product-scraper').call({
    searchQueries: ['air fryer'],
    maxItemsPerSearch: 40,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

**Python**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("zhtech/walmart-product-scraper").call(run_input={
    "itemIds": ["5466948866"],
    "maxReviewsPerProduct": 10,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["title"], item["price"])
```

**cURL** (run and get the dataset in one call)

```bash
curl -X POST "https://api.apify.com/v2/acts/zhtech~walmart-product-scraper/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"searchQueries": ["air fryer"], "maxItemsPerSearch": 20}'
```

You can also use this Actor from AI agents through the Apify MCP server.

### Support

Found a bug, a missing field or a page that does not work? Open an issue on the **Issues** tab with the run ID and the input you used. Feature requests are welcome.

Made by ZH Tech.

# Actor input Schema

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

Keywords to search on Walmart.com, one per line, for example "air fryer" or "lego star wars". Each term is a separate search, ranked like Walmart's own results.

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

Any mix of Walmart.com product URLs (/ip/...), search URLs (/search?q=...) with filters already applied, category URLs (/browse/... or /cp/...), shop and brand pages. You can also upload a text or CSV file with one URL per line.

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

Numeric Walmart item IDs (the number at the end of a product URL), for example 5466948866. Handy for price monitoring lists.

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

Stop each search or category after this many products. Walmart shows about 40 products per page and up to 25 pages, so the practical maximum is about 1,000 per search. Set 0 for no limit. Product URLs are not affected.

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

Hard cap on the number of products in the whole run, across all inputs. Leave empty or 0 for no cap. Useful to control cost.

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

On (recommended): open every product page to get UPC/GTIN, specifications, all images, variants, description, seller type, rating breakdown, shipping and pickup details. Off: return only the data shown on search and category pages (title, price, was price, rating, seller, stock, thumbnail, position). Off is about 3 times faster.

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

How many customer reviews to attach to each product (in the "reviews" field). 0 means no reviews. Reviews are charged per review, see the Pricing tab. Requires full product details.

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

Which reviews to take first.

## `includeReviewerNames` (type: `boolean`):

Reviewer nicknames are personal data. They are left out by default. Turn this on only if you have a legitimate reason to process them.

## `scrapeVariants` (type: `boolean`):

Each product row always lists its variants (size, color and so on with price and stock). Turn this on to also scrape every variant page as a separate full product row. Each variant row counts as a result.

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

Order of results for search terms and category URLs. Ignored when the URL already contains a sort parameter.

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

Only products priced at or above this amount. Applies to search terms and category URLs.

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

Only products priced at or below this amount. Applies to search terms and category URLs.

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

Walmart mixes sponsored (ad) listings into results. They are included and flagged with isSponsored. Turn off to skip them.

## `deduplicate` (type: `boolean`):

Return each Walmart item only once per run, even if it appears in several searches or categories.

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

Main proxy. The default (Apify automatic proxy, datacenter IPs) is the cheapest. Pages that Walmart blocks are automatically retried through US residential IPs (see the next option), so you get residential reliability while paying for residential traffic only where it is needed. You can also pick Residential here to use it for every page.

## `residentialFallback` (type: `boolean`):

When a page is blocked on the main proxy, retry it through Apify US residential IPs. Strongly recommended: this is what keeps the success rate near 100% at the lowest cost.

## `fallbackAfterAttempts` (type: `integer`):

Number of attempts on the main proxy before a page switches to residential IPs. 0 means residential right away (fastest, more residential traffic). 3 is a good balance of speed and cost.

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

Upper limit of pages loaded at the same time. The default works well. Higher values are faster but can trigger more blocks.

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

How many times a blocked or failed page is retried with a fresh IP before giving up.

## `includeFailedItems` (type: `boolean`):

Add a row with error: true and an errorMessage for every input or page that could not be scraped (invalid URL, removed product and so on). These rows are never charged. Failures are always listed in the RUN_SUMMARY record of the key-value store.

## Actor input object example

```json
{
  "searchQueries": [
    "air fryer"
  ],
  "startUrls": [
    {
      "url": "https://www.walmart.com/ip/5466948866"
    },
    {
      "url": "https://www.walmart.com/browse/home/air-fryers/4044_90548_90546_4824_9960466"
    }
  ],
  "maxItemsPerSearch": 20,
  "scrapeProductDetails": true,
  "maxReviewsPerProduct": 0,
  "reviewsSort": "relevancy",
  "includeReviewerNames": false,
  "scrapeVariants": false,
  "sort": "best_match",
  "includeSponsored": true,
  "deduplicate": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "residentialFallback": true,
  "fallbackAfterAttempts": 3,
  "maxConcurrency": 20,
  "maxRequestRetries": 6,
  "includeFailedItems": false
}
```

# Actor output Schema

## `results` (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 = {
    "searchQueries": [
        "air fryer"
    ],
    "startUrls": [
        {
            "url": "https://www.walmart.com/ip/5466948866"
        },
        {
            "url": "https://www.walmart.com/browse/home/air-fryers/4044_90548_90546_4824_9960466"
        }
    ],
    "maxItemsPerSearch": 20,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("zhtech/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 = {
    "searchQueries": ["air fryer"],
    "startUrls": [
        { "url": "https://www.walmart.com/ip/5466948866" },
        { "url": "https://www.walmart.com/browse/home/air-fryers/4044_90548_90546_4824_9960466" },
    ],
    "maxItemsPerSearch": 20,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("zhtech/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 '{
  "searchQueries": [
    "air fryer"
  ],
  "startUrls": [
    {
      "url": "https://www.walmart.com/ip/5466948866"
    },
    {
      "url": "https://www.walmart.com/browse/home/air-fryers/4044_90548_90546_4824_9960466"
    }
  ],
  "maxItemsPerSearch": 20,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call zhtech/walmart-product-scraper --silent --output-dataset

```

## MCP server setup

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