# Walmart Reviews Scraper (`royal_niche/walmart-review-delta`) Actor

Scrape up to 300 Walmart reviews per product, plus price and availability. Repeat runs can return only the reviews you have not seen yet.

- **URL**: https://apify.com/royal_niche/walmart-review-delta.md
- **Developed by:** [kiwan kim](https://apify.com/royal_niche) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.60 / 1,000 reviews

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 Reviews Scraper

Scrapes **up to 300 reviews per product** — plus price and availability — from Walmart product pages, and can return **only the reviews you have not seen yet** on repeat runs.

Two modes, one Actor:

- `mode: "full"` (default) — every run returns every review it read. What a reviews scraper is expected to do.
- `mode: "delta"` — returns only reviews this Actor has not returned before. A daily monitor of 50 products then does not pay for the same 500 reviews twenty times.

The depth is the part most Walmart Actors skip: each product page carries the newest 10 reviews, and older ones are still server-rendered on `/reviews/product/{id}?page=N`. This Actor follows those pages, one request per 10 reviews, up to 300 per product.

### What it returns

One row per returned review:

```json
{
  "type": "review",
  "reviewId": "…",
  "rating": 5,
  "title": "Great value",
  "text": "…",
  "author": "…",
  "verifiedPurchase": true,
  "helpfulVotes": 3,
  "submittedAt": "2026-10-27",
  "productId": "16935510",
  "productName": "Blanca Nieves Laundry Detergent",
  "productUrl": "https://www.walmart.com/ip/16935510"
}
```

Plus one row per product with the change flags:

```json
{
  "type": "product",
  "productId": "16935510",
  "price": "$13.49",
  "previousPrice": "$14.00",
  "priceChanged": true,
  "availability": "IN_STOCK",
  "availabilityChanged": false,
  "reviewsReturned": 20,
  "newReviewsThisRun": 20,
  "firstRun": false,
  "mode": "full"
}
```

One row per returned review, plus one product row, and an `{"type": "error"}` row — instead of failing the run — when a product cannot be read.

Pricing is per returned review (pay-per-event), so a run that reads 1,000 reviews costs the same whether they came from 5 products at 200 each or 100 products at 10 each.

### full vs delta

| | `mode: "full"` | `mode: "delta"` |
|---|---|---|
| First run | all reviews read | all reviews read (`firstRunBehavior: "all"`) or none (`"onlyNew"`) |
| Repeat run | all reviews read again | only reviews whose `reviewId` was not returned before |
| Billing | per returned review | per returned review, so repeats cost the customer little |
| Use it for | one-off exports, scheduled full snapshots | monitoring a product list daily without re-paying for old reviews |

State lives in the key-value store named by `stateKey` (default `walmart-review-delta-state`); change the name or delete the store to start over. `full` mode still writes state, because that is where the previous price comes from.

### Input

| Field | Default | Meaning |
|---|---|---|
| `productUrls` | — | Walmart product URLs. Also accepts a bare item ID. |
| `maxReviewsPerProduct` | 20 | Reviews to read per product (max 300). The newest 10 come from the product page; each further 10 costs one extra request. |
| `mode` | `full` | `full` returns everything each run; `delta` returns only unseen reviews. |
| `firstRunBehavior` | `all` | delta mode only: `all` or `onlyNew` on a product's first run. |
| `stateKey` | `walmart-review-delta-state` | Key-value store used for the seen-review state. |
| `concurrency` | 5 | Product pages fetched at once. Wall time is proxy latency, not CPU, so this is what keeps a 50-product run cheap. |
| `proxyConfiguration` | Apify Unblocker | Walmart blocks datacenter and residential IPs; Unblocker is the default. |

### How it reads a page (and what it costs)

Walmart is a Next.js app: every product page ships its whole payload, reviews included, inside `__NEXT_DATA__` in the initial HTML. So there is no browser at all — one proxied HTTP request per product, parsed from the raw HTML.

- **One Unblocker request per 10 reviews.** The product page carries the newest 10; `/reviews/product/{id}?page=N` still server-renders older ones, one request per page. Unblocker bills 10 units per successful request ($0.0015 on the Free plan), so 1,000 reviews cost about $0.15 in proxy whether you read one product or a hundred.
- **Failover, not rendering:** if an egress hangs (20 s timeout) or comes back without `__NEXT_DATA__`, the Actor retries on a US-pinned egress and then on a fresh one. A rejected IP costs one request; the browser it replaces cost a 4 GB container and seconds of CPU per product.
- **Parallel fetches** (`concurrency`, default 5) because latency, not CPU, is the wall time. 1 GB is enough now that no browser is launched (peak RSS 221 MB).

Measured on 2026-10-30, three products:

| Run | Memory | Wall time | Compute | Unblocker | Results | Cost |
|---|---|---|---|---|---|---|
| First run, 4 GB build | 4 GB | 42 s | $0.0094 | 3 × $0.0015 | 33 rows | $0.0139 |
| First run | 2 GB | 55 s | $0.0062 | 3 × $0.0015 | 33 rows | $0.0107 |
| First run | 1 GB | 63 s | $0.0036 | 2 × $0.0015 | 23 rows | $0.0066 |

That is **$0.32 per 1,000 rows** on the 2 GB run, against $1.17 for the previous browser version (71 s, 18 reviews, $0.021). Only successful Unblocker requests are billed, so retries on a failed egress are free apart from the CPU they hold.

The previous browser version of this Actor took ~20–30 s **per product** at 4 GB and failed with `ERR_TOO_MANY_RETRIES` whenever Unblocker handed it a challenged IP.

### Limits

- Reads reviews from `__NEXT_DATA__` on the product page (newest 10) and on `/reviews/product/{id}?page=N` (10 per page). Pagination stops at the first empty batch or 30 pages, whichever comes first; coverage varies by product — a 6,534-review item still returned reviews at page 31, a 281-review item stopped at page 9.
- `?page=` on `/ip/...` does nothing; only the dedicated `/reviews/product/...` route paginates. This was measured on 2026-10-30.
- Walmart returns a "Robot or human?" wall to some egresses. Every attempt is retried on a fresh Unblocker IP; if all attempts fail, an `error` row is written. `ignoreHTTPSErrors` is set because Unblocker terminates TLS.
- Unblocker latency is 9–30 s per request and a hung egress is common; the 20 s timeout is deliberate. With `concurrency` at 5, a 50-product run takes roughly 2–4 minutes.
- Which 10 reviews the page embeds can differ between egresses, so a second run can report an old review as new. Treat `newReviewsThisRun` as "reviews I have not returned before", not "reviews posted since yesterday".
- Walmart changes its page structure; the parser is defensive about the exact path, but a redesign can still break it.
- No written guarantee of completeness: treat `newReviewsThisRun: 0` as "nothing new on the page this run", not "no review exists".
- Because a monitor re-reads every product on every run, cost tracks **products checked**, not reviews returned. A run that finds nothing new still costs one request per product.

# Actor input Schema

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

Product URLs such as https://www.walmart.com/ip/16935510. One row per new review is returned.

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

Reviews to read per product. Newest 10 come from the product page, older ones from /reviews/product/{id}?page=N at one request per 10 reviews. 300 is the practical ceiling.

## `mode` (type: `string`):

full = every review read on every run. delta = only reviews this Actor has not returned before, which makes repeat runs cheaper.

## `concurrency` (type: `integer`):

How many product pages are fetched at the same time. Wall time is proxy latency, so parallelism is what keeps compute cost down on long product lists.

## `firstRunBehavior` (type: `string`):

(delta mode only) What to return the first time a product is seen: 'all' = every review read this run, 'onlyNew' = return none, just record the baseline.

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

Where seen review IDs and the last price are kept. Used by delta mode; full mode still uses it for price/availability comparison.

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

Walmart blocks datacenter and residential IPs. Apify Unblocker is the default.

## Actor input object example

```json
{
  "productUrls": [
    "https://www.walmart.com/ip/16935510"
  ],
  "maxReviewsPerProduct": 20,
  "mode": "full",
  "concurrency": 5,
  "firstRunBehavior": "all",
  "stateKey": "walmart-review-delta-state",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "UNBLOCKER"
    ]
  }
}
```

# Actor output Schema

## `newReviews` (type: `string`):

Dataset of rows with type=review, type=product or type=error.

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

Counters for this run: products, failures, new reviews, changed products.

# 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 = {
    "productUrls": [
        "https://www.walmart.com/ip/16935510"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "UNBLOCKER"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("royal_niche/walmart-review-delta").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 = {
    "productUrls": ["https://www.walmart.com/ip/16935510"],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["UNBLOCKER"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("royal_niche/walmart-review-delta").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 '{
  "productUrls": [
    "https://www.walmart.com/ip/16935510"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "UNBLOCKER"
    ]
  }
}' |
apify call royal_niche/walmart-review-delta --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,royal_niche/walmart-review-delta"
        }
    }
}
```

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/w2aRevl6KUbpJpsAC/builds/dMvMrx7Z5C746hjgg/openapi.json
