# Walmart Scraper: Search, Product, Seller Offers & Reviews (`mjohnson7cd/walmart-scraper`) Actor

Scrape Walmart.com by keyword, product URL or item ID. Returns prices, was-prices, ratings, stock, sellers, third-party offers and customer reviews, read from Walmart.com's own embedded page data. Export CSV, Excel, JSON or API. Beta: feedback welcome.

- **URL**: https://apify.com/mjohnson7cd/walmart-scraper.md
- **Developed by:** [Mara Johnson](https://apify.com/mjohnson7cd) (community)
- **Categories:** E-commerce, SEO tools, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.20 / 1,000 product scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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

This **Walmart scraper** extracts product search results, product pages, seller and offer data, and customer reviews from Walmart.com. Give it keywords, product URLs or item IDs and get current prices, was-prices, rollbacks, ratings, review counts, stock status, sellers and pickup/delivery options, read straight from Walmart's own embedded page data. Export to CSV, Excel, JSON or use the API, for Walmart price monitoring, marketplace seller research, competitor tracking and review analysis.

### What data can this Walmart scraper extract?

| Input | You get |
|---|---|
| `searchQueries` | one row per product: name, price, was price, price range, rating, review count, seller, stock, sponsored flag, badges (Rollback, Best seller...), delivery/pickup, number of other sellers |
| `productUrls` / `itemIds` | everything above, plus UPC, model, brand, category, specifications and all images |
| `includeSellerOffers` | buy-box seller details, new and pre-owned condition offers with prices, secondary offer price |
| `includeReviews` | one row per review: rating, title, text, date, verified purchase, helpful votes, seller |

Every row, product or review, has the same columns. Unused fields are `null`, so CSV and Excel exports stay clean. The Output tab has **Products**, **Seller & offers** and **Reviews** views.

### How to scrape Walmart

1. Click **Try for free** and open the **Input** tab.
2. Enter one or more search keywords, or paste Walmart product URLs or item IDs.
3. Turn on `includeSellerOffers` or `includeReviews` if you need them.
4. Set a maximum cost per run if you want a hard spending cap.
5. Click **Start**, then download the results from the **Output** tab as CSV, Excel or JSON, or fetch them through the API.

#### Example input

```json
{
  "searchQueries": ["air fryer", "65 inch tv"],
  "maxPagesPerQuery": 2,
  "maxResultsPerQuery": 100,
  "includeSellerOffers": false,
  "includeReviews": true,
  "maxReviewsPerProduct": 20
}
```

One run accepts up to 100 search queries and up to 1,000 product URLs or item IDs.

#### Example product row (abridged)

```json
{
  "row_type": "product", "query": "air fryer", "position": 2,
  "us_item_id": "16412759179",
  "name": "Ninja DualZone FlexBasket Air Fryer 8-Qt, 4-in-1, ...",
  "price": 109.0, "was_price": 149.0, "currency": "USD",
  "average_rating": 4.6, "review_count": 7149,
  "seller_name": "Walmart.com", "availability_status": "IN_STOCK",
  "from_cache": false, "cached_at": null, "cache_age_seconds": null
}
```

#### Example review row (abridged)

```json
{
  "row_type": "review", "us_item_id": "19652372462",
  "name": "Apple MacBook Neo 13-inch Apple A18 Pro chip ...",
  "average_rating": 4.5, "review_count": 3869,
  "review_id": "449723635", "review_rating": 5,
  "review_title": "Synthetic title 1", "review_text": "Synthetic review text 1.",
  "review_date": "2026-11-15", "reviewer_nickname": "reviewer-1",
  "review_verified_purchase": true,
  "review_positive_feedback": 0, "review_negative_feedback": 0,
  "review_seller_name": "Datavision Computer Video", "review_media_count": 1,
  "from_cache": false, "cached_at": null, "cache_age_seconds": null
}
```

(Review title and text above are placeholders; real rows carry the reviewer's words.)

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

You pay per delivered row, and each row is billed exactly once:

| Event | Free | Starter | Scale | Business | Billed for |
|---|---|---|---|---|---|
| `product-scraped` | $0.0045 | $0.0042 | $0.0037 | $0.0032 | a product from search, or from a URL/ID without seller data |
| `product-with-offers-scraped` | $0.0055 | $0.005 | $0.0045 | $0.0039 | a product enriched with seller and offer data, billed **instead of** `product-scraped`, never both |
| `review-scraped` | $0.0008 | $0.00068 | $0.00056 | $0.00044 | one customer review |

Plan names are Apify's subscription plans. Plans above Business pay the Business price. What realistic runs cost:

| Run | Free | Starter | Scale | Business |
|---|---|---|---|---|
| 500 search results (5 keywords x 100) | $2.25 | $2.10 | $1.85 | $1.60 |
| 500 search results + 1,000 reviews | $3.05 | $2.78 | $2.41 | $2.04 |
| 1,000 product URLs with seller offers | $5.50 | $5.00 | $4.50 | $3.90 |

Apify also charges its own Actor start fee of $0.002 per run. This Actor never charges it itself, and because a run uses at most 1 GB of memory, you pay that fee once per run.

**Not billed:** blocked or failed pages, out-of-stock products (delivered free, so you still see them), Walmart's "Other options to consider" padding, and duplicates. The same product from two pages, two queries or a query plus a URL, or the same review under two variants of one product, is billed once, even if the run is migrated to another server.

**Cache hits are billed like fresh fetches.** `useCache` is ON by default, and a row served from the cache is charged exactly like one fetched live. Set `useCache` to `false`, or `forceRefresh` to `true`, for a live read.

Set a maximum cost per run in Apify and the Actor never goes over it: it stops cleanly, with every delivered row billed, before the next row would exceed it.

### Why this Walmart scraper

- **Prices that are actually there.** Walmart moved its prices into a new data structure and the old price fields are now empty. This Actor reads the current structure and is regression-tested on real Walmart pages.
- **Only real search results.** For a query with no matches, Walmart fills the page with "Other options to consider". Those rows are dropped, so you never pay for products you did not search for, and duplicate sponsored copies are removed.
- **Blocked pages never fail your run.** Requests go through US residential IPs and are retried on fresh ones. If Walmart still refuses a page, the run finishes successfully with everything else.
- **Efficient search.** A search page returns about 40-50 products per page load. Seller-offer data and direct product lookups load one page per product, so they are slower: leave `includeSellerOffers` off when search data is enough.

### Limits

- US Walmart.com only, prices in USD.
- Walmart shows about 13 result pages for a broad query.
- The full "compare all sellers" list for a product is not available. You get the buy-box seller, condition offers and the count of other sellers.
- Store-level and ZIP-code availability is not included.
- Run statistics (blocked pages, missing prices, bandwidth, cache hit rate) are saved to the `RUN_STATS` record of each run.

### Does this Walmart scraper store data in my account?

Yes, a small short-lived cache. **`useCache` is ON by default**, and the cache is used only while it stays on. **Cache hits are billed like fresh fetches:** a row served from the cache is charged the same event and price as a row fetched live from Walmart. The Actor opens a **named key-value store called `walmart-cache` in your own Apify account**. It holds the finished rows of recently scraped pages, under hashed keys, so a repeat request within the cache lifetime does not fetch Walmart again. Search and product results are kept for 3 hours by default (never more than 6 hours), and review lists for up to 24 hours. Every entry expires after at most 24 hours, and expired entries are deleted when a read finds them and by a sweep at the end of every run.

Apify keeps named stores until you delete them, so the store itself stays in your account's **Storage** tab between runs. You can delete it at any time; the next run simply starts with an empty cache. Set `useCache` to `false` and the store is not opened at all. The cache is never shared with other users. Every row says whether it came from the cache (`from_cache`, `cached_at`, `cache_age_seconds`), and `forceRefresh` fetches everything live.

### Other Walmart scrapers

Need only one kind of data? These narrower Actors use the same engine:

- [Walmart Search Scraper](https://apify.com/mjohnson7cd/walmart-search-scraper): products and prices by keyword
- [Walmart Product Scraper](https://apify.com/mjohnson7cd/walmart-product-scraper): price, stock and seller offers by product URL or item ID
- [Walmart Reviews Scraper](https://apify.com/mjohnson7cd/walmart-reviews-scraper): customer reviews by product URL or item ID

### Ready-made examples

One-click starting points. Each opens with the input filled in, ready to run or edit:

- [Compare Walmart seller offers for a product](https://apify.com/mjohnson7cd/walmart-scraper/examples/walmart-third-party-seller-offers)
- [Export Walmart product reviews to CSV](https://apify.com/mjohnson7cd/walmart-scraper/examples/walmart-reviews-to-csv)

### Other Actors by the same author

| Actor | What it does |
|---|---|
| [AliExpress Scraper](https://apify.com/mjohnson7cd/aliexpress-scraper) | Products, prices, discounts and units sold from AliExpress search |
| [EU Company Registry & KYB Lookup](https://apify.com/mjohnson7cd/eu-company-registry-kyb) | Company lookups in the official FR, NO, FI and CZ registries |
| [API Endpoint Crawler](https://apify.com/mjohnson7cd/api-endpoint-crawler) | Finds the API endpoints a website's JavaScript calls |
| [Tech Stack Fingerprinter](https://apify.com/mjohnson7cd/tech-stack-fingerprinter) | Detects a website's server, CDN, frameworks, CMS, analytics and security headers |
| [Subdomain Finder](https://apify.com/mjohnson7cd/subdomain-finder) | Finds a domain's subdomains from certificate transparency and DNS, probed live |

### Why run it on Apify?

- **Schedule it** to track Walmart prices daily or weekly.
- **Use the API** or the Apify client libraries to start runs and download results from your own code.
- **Connect it** to Google Sheets, Make, Zapier, Slack, webhooks and other integrations.
- **Proxy rotation is built in**: the Actor uses Apify's US residential proxy and rotates IPs for you.

### Beta

This Actor is in beta. The billing rules on this page and the row format are stable: new columns may be added, but none are removed or renamed. Walmart changes its pages from time to time, which can briefly break a field until it is fixed. Report a problem, or ask for a field, on the **Issues** tab.

### FAQ

#### Is it legal to scrape Walmart?

This Actor only reads pages that Walmart shows to any visitor without logging in. Scraping public data is generally lawful, but laws and Walmart's terms apply to how you use the data. If you are unsure, ask a lawyer. Use it for authorized purposes: monitoring your own products, competitor research with proper authorization, academic research, or personal use.

#### Is review data personal data?

Yes, it can be. Review rows include the reviewer's public Walmart nickname and the review text, which can be personal data under GDPR and US state privacy laws. Use them only with a lawful basis, and do not use them to identify or contact reviewers.

#### Why did my run return fewer rows than I expected?

Walmart sometimes refuses a page even on a fresh residential IP. Those pages are retried, then skipped and not billed. The run's `RUN_STATS` record lists every blocked or failed page. If Walmart blocks 10 pages in a row, the run stops early and says so in its status message, instead of continuing to request blocked pages. Try again a little later.

#### Why does it need a residential proxy?

Walmart blocks datacenter and cloud IP addresses with a "Robot or human?" page. The Actor uses Apify's US residential proxy automatically. If your account has no residential proxy access, the run stops right away with a clear message instead of returning nothing.

### Not affiliated with Walmart

This Actor is not affiliated with or endorsed by Walmart Inc. Walmart is a trademark of its owner and is used here only to describe the source of the data.

# Changelog

This Actor's version history is a separate document: https://apify.com/mjohnson7cd/walmart-scraper/changelog.md

# Actor input Schema

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

Keywords to search on Walmart.com, exactly as you would type them in the Walmart search box. Each query returns one row per product (about 40-50 unique products per results page).

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

Walmart product page URLs (https://www.walmart.com/ip/...). Each URL returns one product row with full details: UPC, model, category, specifications and all images.

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

Walmart item IDs (usItemId, the number at the end of a product URL). Same output as Product URLs.

## `maxPagesPerQuery` (type: `integer`):

How many search result pages to read for each query. Walmart shows about 40-50 unique products per page and stops at roughly 13 pages.

## `maxResultsPerQuery` (type: `integer`):

Stop a query after this many unique products, even if more pages are allowed.

## `includeSellerOffers` (type: `boolean`):

Open each product's page to add buy-box seller details, condition offers (new / pre-owned with prices), secondary offer price, UPC, model and specifications. Billed as the premium product event. Slower: one extra page per product.

## `includeReviews` (type: `boolean`):

Add customer review rows for every product found (rating, title, text, date, verified purchase, helpful votes). Each review is a separate row.

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

Maximum number of reviews to collect per product. Walmart serves 10 reviews per page.

## `useCache` (type: `boolean`):

Reuse a result fetched in the last few hours (3 hours by default, never more than 6 for price data) instead of fetching it again. Every row shows from_cache, cached_at and cache_age_seconds so you always know how fresh a price is. Turn off for a guaranteed-live read.

## `cacheMaxAgeHours` (type: `integer`):

Ignore cached results older than this many hours. Leave empty to accept anything within the cache lifetime (3 hours for prices, 24 hours for reviews).

## `forceRefresh` (type: `boolean`):

Fetch everything live for this run and refresh the cache with the new results.

## Actor input object example

```json
{
  "searchQueries": [
    "air fryer"
  ],
  "maxPagesPerQuery": 2,
  "maxResultsPerQuery": 100,
  "includeSellerOffers": false,
  "includeReviews": false,
  "maxReviewsPerProduct": 10,
  "useCache": true,
  "forceRefresh": false
}
```

# Actor output Schema

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

One row per product (row_type=product) and per review (row_type=review). Every row carries the same columns, plus freshness fields from_cache, cached_at and cache_age_seconds.

## `productsView` (type: `string`):

The same dataset opened on the Products table: price, was-price, rating, seller and stock columns.

## `sellerOffersView` (type: `string`):

The same dataset opened on the Seller & offers table: buy-box seller, condition offers and offer counts.

## `reviewsView` (type: `string`):

The same dataset opened on the Reviews table: rating, title, text, date and verified-purchase columns.

## `runStats` (type: `string`):

Rows per billing event, blocked or failed pages, items with a missing price, HTTP and proxy bandwidth used, and cache hit rate.

# 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"
    ]
};

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

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

```

## MCP server setup

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