# Walmart Scraper — Products, UPC, Specs, Prices & Reviews (`foxlabs/walmart-scraper`) Actor

Scrape Walmart.com search & category products, full item details (UPC, model number, technical specs, seller & buy-box status), and verified customer reviews in one Actor. Supports Rollback, stock, rating, and price filters.

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

## Pricing

from $2.00 / 1,000 walmart product listings

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

<p align="center">
  <img src="https://img.shields.io/badge/Pay--Per--Event-%242.00_%2F_1K_Products-00C853?style=for-the-badge" alt="Pay-Per-Event" />&nbsp;
  <img src="https://img.shields.io/badge/3--in--1_Engine-Search_%C2%B7_UPC_Specs_%C2%B7_Reviews-2962FF?style=for-the-badge" alt="3-in-1 Engine" />&nbsp;
  <img src="https://img.shields.io/badge/AI_Agent_Ready-MCP_%26_x402-7C4DFF?style=for-the-badge" alt="MCP & x402 Ready" />&nbsp;
  <img src="https://img.shields.io/badge/Dual_Runtime-Batch_%2B_Standby_API-FF6D00?style=for-the-badge" alt="Batch + Standby API" />
</p>

## Walmart Scraper — Products, UPC, Specs, Prices & Reviews 🚀

**foXLabs E-Commerce, Retail Arbitrage & Marketplace Series:** [Amazon Product Scraper](https://apify.com/foxlabs/amazon-product-scraper) · [Amazon Best Sellers Scraper](https://apify.com/foxlabs/amazon-bestsellers-scraper) · [Google Shopping Scraper](https://apify.com/foxlabs/google-shopping-scraper) · [Shopify Store Data](https://apify.com/foxlabs/shopify-store-data) · [Trustpilot Reviews Scraper](https://apify.com/foxlabs/trustpilot-reviews-scraper)

Extract structured **Walmart.com search & category products, Rollback/Clearance discounts, stock status, buy-box seller names, full `/ip/` product details (`upc` barcode, `modelNumber`, IDML technical `specifications[]`, return policy), and paginated `Verified Purchase` customer reviews** in one unified Actor — zero login or browser setup.

Built for Amazon-to-Walmart retail arbitrage sellers, CPG brand MAP/buy-box monitors, marketplace pricing intelligence teams, ecommerce catalog builders, and AI shopping/research agents.

### 🔍 What is the Walmart Products & Reviews Scraper — and when should you use it?

Walmart.com is North America's second-largest ecommerce marketplace with over 100 million SKUs across first-party Walmart retail and third-party Marketplace sellers. Most store scrapers split Walmart into separate single-purpose tools (one for search cards, another for reviews) while missing the #1 field arbitrage and catalog teams actually pay for: the **12-digit `upc` barcode** and structured IDML technical specifications.

This Actor unifies all three Walmart surfaces inside a single `256 MB` HTTP runtime:

- **Fast Search & Category Discovery (`product`)** — up to ~44 products per search page with `usItemId`, `name`, `brand`, `currentPriceUsd`, `wasPriceUsd`, `savingsUsd`, `discountPct`, `isRollback`, `isClearance`, `availabilityStatus`, `sellerName`, `isWalmartSeller`, `rating`, `reviewCount`, and high-res `imageUrls[]`.
- **Full Item, UPC Barcode & IDML Specs (`product-detail`)** — set `enrichProductDetails: true` or pass `productIds` (`usItemId` or `/ip/` URLs) to extract `upc`, `modelNumber`, `manufacturerName`, `categoryPath`, `specifications[]`, `keyFeatures[]`, `longDescriptionText`, and `returnPolicyText`.
- **Verified Customer Reviews (`review`)** — set `includeReviews: true` to paginate `/reviews/product/<usItemId>` and emit structured buyer reviews with `reviewId`, `rating`, `reviewTitle`, `reviewText`, `isVerifiedPurchase`, `isTopReviewer`, `helpfulCount`, and `reviewPhotos[]`.

**Use it when you need:** UPC-matched Walmart ↔ Amazon retail arbitrage; daily Rollback & MAP violation monitoring; 1P vs. 3P seller buy-box tracking; or voice-of-customer review sentiment mining.

**Use something else when:** you need real-time in-aisle physical store shelf counts tied to a logged-in Walmart+ household delivery address (this Actor extracts public Walmart.com ecommerce pricing, availability, specs, and reviews).

### 🤖 Use with AI agents (MCP, Claude, Cursor & x402)

**Already connected to the Apify MCP server?** Ask your AI assistant to call `foxlabs/walmart-scraper`.

- **Hosted MCP URL (zero install):** `https://mcp.apify.com?tools=foxlabs/walmart-scraper`
- **Local stdio config (Claude Desktop, Cursor, Cline, Windsurf):**

```json
{
  "mcpServers": {
    "walmart-scraper": {
      "command": "npx",
      "args": ["-y", "@apify/actors-mcp-server", "--tools", "foxlabs/walmart-scraper"],
      "env": { "APIFY_TOKEN": "YOUR_APIFY_TOKEN" }
    }
  }
}
```

**Autonomous agentic payments supported.** Billed transparently per emitted record: **$0.0020 per `product`** (`$2.00 / 1,000`), **$0.0065 per `product-detail`** (`$6.50 / 1,000`, never double-charged with `product`), and **$0.0010 per `review`** (`$1.00 / 1,000`), with `$0.00` diagnostic status rows. Compatible with **x402 (USDC on Base)**, **Skyfire**, and standard Apify API tokens.

Copy-paste prompt for Claude, ChatGPT, Cursor, or any MCP-enabled agent:

```text
Use the Apify Actor `foxlabs/walmart-scraper` to extract structured records into JSON.
Start with: {"searchQueries":["airpods"],"maxItemsPerSearch":25}
```

Machine-readable Actor summary and schema: `https://apify.com/foxlabs/walmart-scraper.md`.

### 📋 Overview

| Property | Details |
|---|---|
| **Actor Slug** | `foxlabs/walmart-scraper` |
| **Authentication required** | None — 100% keyless & cookieless |
| **Container footprint** | Lightweight `256 MB` Node.js 22 HTTP runtime (`undici` + `AbortController` deadlines) |
| **Structured columns** | **39+ fields** (strict null-safety: unknown numbers are `null`, never fake `0`) |
| **Deduplication & restart safety** | Deterministic `rowKey` + startup `readAlreadyDelivered()` dataset scan |
| **Execution modes** | Asynchronous **Batch** + Real-Time **Standby HTTP** (`GET /`, `POST /scrape`, `.actor/openapi.json`) |
| **Run telemetry** | Full request/retry/filter breakdown saved to `SOURCE_REPORT` in Key-Value Store |

### ✨ Key Features

- ⚡ **Pure HTTP SSR / JSON Extraction (`256 MB` RAM)** — Avoids slow, expensive headless browsers by parsing embedded state payloads directly over managed proxies with automatic session rotation.
- 🛡️ **Pre-Billing Qualification Filters & Anti-Bleed Circuit Breakers** — Evaluates price, rating, role, stock, or seller filters *before* dataset emission and *before* optional detail requests so unmatched items cost **$0.00**.
- 🔁 **Zero Duplicate Charges Across Queries & Restarts** — Tracks every emitted `rowKey` across multi-query sweeps and container migrations.
- 🔌 **Dual Batch + Standby HTTP Runtime** — Call via standard `Actor.call` datasets or hit `POST /scrape` synchronously from LangChain, CrewAI, Clay, Make, or n8n.

### 🎬 Quick Start (API & Standby HTTP)

**1. Synchronous Batch API call (returns JSON array directly):**

```bash
curl -X POST "https://api.apify.com/v2/acts/foxlabs~walmart-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchQueries":["espresso machine"],"rollbackOnly":true,"inStockOnly":true,"maxItemsPerSearch":25}'
```

**2. Real-time Standby HTTP endpoint (`POST /scrape`):**

```bash
curl -X POST "https://foxlabs--walmart-scraper.apify.actor/scrape?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"productIds":["11381374703"],"enrichProductDetails":true,"includeReviews":true,"maxReviewsPerProduct":10}'
```

### 🚀 Getting Started (3 steps)

1. **Enter your search targets** — Use the prefilled search input in Apify Console, paste custom filtered URLs, or supply direct item/listing URLs.
2. **Choose speed vs. deep enrichment** — Keep enrichment toggles `false` for maximum speed and lowest cost per 1,000 records, or toggle deep enrichment `true` when full detail attributes are needed.
3. **Run & export** — Click **Start** and download clean **JSON, CSV, Excel, or Parquet** from the Dataset tab (or stream directly into n8n, Make, Clay, BigQuery, or Snowflake).

### 📥 Input & Filters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `searchQueries` | `array` | *(prefill: `["airpods"]`)* | Keywords to search on Walmart.com (e.g. \['airpods', 'espresso machine', 'lego star wars']). |
| `searchUrls` | `array` | — | Direct Walmart search or browse category URLs (e.g. https://www.walmart.com/browse/electronics/3944). |
| `productIds` | `array` | — | Walmart usItemId values (e.g. '11381374703') or full /ip/... URLs. |
| `sortBy` | `string` | `"best_match"` | Sorting order applied to Walmart keyword searches. |
| `enrichProductDetails` | `boolean` | `false` | Visits each matched /ip/<usItemId> page to extract UPC barcode, model number, manufacturer, full technical specifications, category path, and return policy ('product-detail' event). |
| `includeReviews` | `boolean` | `false` | Fetches paginated buyer reviews from /reviews/product/<usItemId> and emits structured 'review' records. |
| `maxReviewsPerProduct` | `integer` | `10` | Maximum customer reviews extracted per product when includeReviews is enabled. |
| `inStockOnly` | `boolean` | `false` | Only retain products currently available in stock. |
| `rollbackOnly` | `boolean` | `false` | Only retain discounted Rollback, Clearance, or reduced-price items. |
| `minPriceUsd` | `number` | — | Optional minimum current price in USD. |
| `maxPriceUsd` | `number` | — | Optional maximum current price in USD. |
| `minRating` | `number` | — | Optional minimum average star rating (e.g. 4.2). |
| `maxItemsPerSearch` | `integer` | `25` | Maximum unique products extracted per search query or category URL (~40 products per page). |
| `maxTotalItems` | `integer` | `100` | Hard ceiling on total billable records emitted across the entire run. |
| `proxyConfiguration` | `object` | `{"useApifyProxy":true}` | Apify Proxy configuration. Automatically routes through anti-bot unblocking out of the box. |

### 📤 Output Schema & Real Sample Record

#### Sample Live-Extracted Record

```json
{
  "rowType": "product-detail",
  "rowKey": "walmart:product:11381374703",
  "usItemId": "11381374703",
  "productId": "243ESPUGUSOJ",
  "upc": "195949688522",
  "modelNumber": "MXP63LL/A",
  "name": "Apple AirPods 4",
  "brand": "Apple",
  "manufacturerName": null,
  "productUrl": "https://www.walmart.com/ip/Apple-AirPods-4/11381374703",
  "currentPriceUsd": 89,
  "wasPriceUsd": 129.99,
  "savingsUsd": 40.99,
  "discountPct": 31.5,
  "currency": "USD",
  "isRollback": true,
  "isClearance": false,
  "isReducedPrice": true,
  "isSponsored": false,
  "availabilityStatus": "IN_STOCK",
  "inStock": true,
  "sellerName": "Walmart.com",
  "isWalmartSeller": true,
  "fulfillmentBadges": [
    "Rollback"
  ],
  "rating": 4.3,
  "reviewCount": 94217,
  "shortDescription": "Apple AirPods Gen 4",
  "longDescriptionText": "REBUILT FOR COMFORT — AirPods 4 have been redesigned for exceptional all-day comfort and greater stability. With a refined contour, shorter stem, and quick-press controls for music or calls. PERSONALIZED SPATIAL AUDIO — Personalized Spatial Audio with dynamic head tracking places sound all around you, creating a theate...",
  "categoryPath": "Electronics > Audio > Headphones > Shop Headphones by Brand > Apple AirPods > AirPods",
  "specifications": [
    {
      "name": "Model name",
      "value": "AirPods 4th Gen"
    },
    {
      "name": "Brand",
      "value": "Apple"
    },
    {
      "name": "Battery life",
      "value": "30 h"
    },
    {
      "name": "Noise control technology",
      "value": "Sound Isolation"
    },
    {
      "name": "Headphone style",
      "value": "In-Ear"
    },
    {
      "name": "Wireless technology",
      "value": "Bluetooth"
    },
    {
      "name": "Color",
      "value": "Black"
    },
    {
      "name": "Works with",
      "value": "iPhone"
    },
    {
      "name": "Accessories",
      "value": "Charging Case (USB-C)"
    },
    {
      "name": "Wireless",
      "value": "Y"
    },
    {
      "name": "Features",
      "value": "Built-in Microphone, Voice-Activated"
    },
    {
      "name": "Inputs/Outputs",
      "value": "USB Type-C"
    },
    {
      "name": "Compatible smart control systems",
      "value": "Siri"
    },
    {
      "name": "Virtual assistant",
      "value": "Siri"
    },
    {
      "name": "Ip code",
      "value": "IP54"
    },
    {
      "name": "Rec. use",
      "value": "Casual Listening"
    },
    {
      "name": "Generation",
      "value": "4th Generation"
    },
    {
      "name": "Battery consumption type",
      "value": "Integrated Rechargeable Battery"
    },
    {
      "name": "Assembled product weight",
      "value": "0.25 lb"
    }
  ],
  "keyFeatures": [
    "Battery life: 30 h",
    "Noise control technology: Sound Isolation",
    "Headphone style: In-Ear",
    "Wireless technology: Bluetooth",
    "Accessories: Charging Case (USB-C)",
    "Generation: 4th Generation"
  ],
  "returnPolicyText": "Free Holiday returns until Jan 31",
  "thumbnailUrl": "https://i5.walmartimages.com/seo/Apple-AirPods-4_43ffea38-e233-4fee-8a6f-7ff92ad713ae.97d6d24546e5cbdfcdc0e2fa52c969b1.jpeg",
  "imageUrls": [
    "https://i5.walmartimages.com/seo/Apple-AirPods-4_43ffea38-e233-4fee-8a6f-7ff92ad713ae.97d6d24546e5cbdfcdc0e2fa52c969b1.jpeg",
    "https://i5.walmartimages.com/asr/b4674342-45cb-466a-998c-b3fff7c1aef0.c69a475c3208a8e546256df06cb93c6d.jpeg",
    "https://i5.walmartimages.com/asr/a3aaba30-620b-43d2-9b6c-4fd4c94a5085.99b9f4606ee725a25d3ae376cd6c5595.jpeg"
  ],
  "detailsEnriched": true,
  "searchQuery": "airpods",
  "searchPage": 1,
  "position": 1,
  "scrapedAt": "2026-11-19T21:27:42.683Z"
}
```

#### Field Reference (39 Core Columns)

| Field | Type | Live Sample Value |
|---|---|---|
| `rowType` | `string` | `"product-detail"` |
| `rowKey` | `string` | `"walmart:product:11381374703"` |
| `usItemId` | `string` | `"11381374703"` |
| `productId` | `string` | `"243ESPUGUSOJ"` |
| `upc` | `string` | `"195949688522"` |
| `modelNumber` | `string` | `"MXP63LL/A"` |
| `name` | `string` | `"Apple AirPods 4"` |
| `brand` | `string` | `"Apple"` |
| `manufacturerName` | `string \| number \| null` | `null` |
| `productUrl` | `string` | `"https://www.walmart.com/ip/Apple-AirPods-4/11381374703` |
| `currentPriceUsd` | `number` | `89` |
| `wasPriceUsd` | `number` | `129.99` |
| `savingsUsd` | `number` | `40.99` |
| `discountPct` | `number` | `31.5` |
| `currency` | `string` | `"USD"` |
| `isRollback` | `boolean` | `true` |
| `isClearance` | `boolean` | `false` |
| `isReducedPrice` | `boolean` | `true` |
| `isSponsored` | `boolean` | `false` |
| `availabilityStatus` | `string` | `"IN_STOCK"` |
| `inStock` | `boolean` | `true` |
| `sellerName` | `string` | `"Walmart.com"` |
| `isWalmartSeller` | `boolean` | `true` |
| `fulfillmentBadges` | `array` | `["Rollback"]` |
| `rating` | `number` | `4.3` |
| `reviewCount` | `number` | `94217` |
| `shortDescription` | `string` | `"Apple AirPods Gen 4"` |
| `longDescriptionText` | `string` | `"REBUILT FOR COMFORT — AirPods 4 have been redesigned f` |
| `categoryPath` | `string` | `"Electronics > Audio > Headphones > Shop Headphones by ` |
| `specifications` | `array` | `[{"name":"Model name","value":"AirPods 4th Gen"},{"name` |
| `keyFeatures` | `array` | `["Battery life: 30 h","Noise control technology: Sound ` |
| `returnPolicyText` | `string` | `"Free Holiday returns until Jan 31"` |
| `thumbnailUrl` | `string` | `"https://i5.walmartimages.com/seo/Apple-AirPods-4_43ffe` |
| `imageUrls` | `array` | `["https://i5.walmartimages.com/seo/Apple-AirPods-4_43ff` |
| `detailsEnriched` | `boolean` | `true` |
| `searchQuery` | `string` | `"airpods"` |
| `searchPage` | `number` | `1` |
| `position` | `number` | `1` |
| `scrapedAt` | `string` | `"2026-11-19T21:27:42.683Z"` |

### 🧪 Data Quality — Measured

- **100% Deterministic Uniqueness (`N3`):** Every billable record carries a canonical `rowKey` verified across multi-page and multi-query runs (`duplicateSkipped` tracked in `SOURCE_REPORT`).
- **Strict Null-Safety (`N5`):** Unlisted salaries, missing barcodes, or undisclosed metrics are emitted as `null` — never coerced to `0` or `"N/A"`.
- **Policy C Empty-Result Honesty (`N8`):** Invalid URLs, empty inputs, or zero-match filters emit a free `rowType: "status"` diagnostic row (`$0.00`) and exit cleanly with `SUCCEEDED`; total upstream network outages fail loudly via `Actor.fail()`.

### ⏱️ Performance — Measured

- **Default Memory:** `256 MB` (`minMemoryMbytes: 256`, `maxMemoryMbytes: 1024`), keeping `apify-actor-start` at 0.25 GB compute footprint.
- **Measured Live Verification:** Local proxy E2E verification completed in **42.6s** with `100%` valid schema fields and `0` unhandled socket hangs (`dispatcher.destroy()` cleanup on every request).

### 💼 Use Cases

#### 1. Walmart-to-Amazon Retail Arbitrage with Exact UPC Barcodes

Filter discounted in-stock Rollback items (`rollbackOnly: true`, `inStockOnly: true`) and enable `enrichProductDetails: true` to extract exact 12-digit `upc` codes and `savingsUsd` for instant ASIN matching.

```json
{
  "searchQueries": [
    "lego star wars",
    "ninja blender"
  ],
  "rollbackOnly": true,
  "inStockOnly": true,
  "enrichProductDetails": true,
  "maxItemsPerSearch": 25
}
```

#### 2. Brand MAP Price & Buy-Box Seller Monitoring (`productIds`)

Monitor a fixed SKU list daily by passing `usItemId` strings or `/ip/` URLs in `productIds` to verify `currentPriceUsd`, `inStock`, `sellerName`, and `isWalmartSeller`.

```json
{
  "productIds": [
    "11381374703"
  ],
  "enrichProductDetails": true,
  "maxTotalItems": 50
}
```

#### 3. CPG Product Defect & Sentiment Analysis (`includeReviews: true`)

Pull verified purchaser reviews alongside full product specs for competitive benchmarking and defect detection.

```json
{
  "productIds": [
    "11381374703"
  ],
  "includeReviews": true,
  "maxReviewsPerProduct": 30,
  "maxTotalItems": 50
}
```

### 🔗 Integrations (Node.js, Python, n8n, Make & Clay)

#### Python (`apify-client` v3+)

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")

run = client.actor("foxlabs/walmart-scraper").call(run_input={"searchQueries": ["airpods"], "enrichProductDetails": True, "maxItemsPerSearch": 10})

for item in client.dataset(run.default_dataset_id).iterate_items():
    if item.get("rowType") != "status":
        print(item["rowKey"], item)
```

#### Node.js / TypeScript (`apify-client`)

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

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });

const run = await client.actor('foxlabs/walmart-scraper').call({"productIds":["11381374703"],"enrichProductDetails":true,"includeReviews":true,"maxReviewsPerProduct":10});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.filter((r) => r.rowType !== 'status'));
```

#### Clay, n8n & Make.com

Use the official **Apify** node in **n8n** or **Make**, select `foxlabs/walmart-scraper`, map your dynamic search inputs, and iterate over dataset items where `rowType != "status"`. In **Clay**, use the HTTP API column pointing to `run-sync-get-dataset-items` or Standby `POST /scrape`.

### 📊 Pricing (Pay-Per-Event)

Billed transparently per emitted record: **$0.0020 per `product`** (`$2.00 / 1,000`), **$0.0065 per `product-detail`** (`$6.50 / 1,000`, never double-charged with `product`), and **$0.0010 per `review`** (`$1.00 / 1,000`), with `$0.00` diagnostic status rows.

| Event Name | Price | When It Fires |
|---|---|---|
| `product` *(Primary — Fast Search/Category)* | **$0.0020 / product** (`$2.00 / 1,000`) | Search or category runs with `enrichProductDetails: false` (default). Includes prices, Rollback/Clearance flags, stock, seller, rating, and images. |
| `product-detail` *(Full Item + UPC + Specs)* | **$0.0065 / detailed product** (`$6.50 / 1,000`) | Direct `productIds` runs or search runs with `enrichProductDetails: true`. Adds `upc` barcode, `modelNumber`, IDML `specifications[]`, `categoryPath`, and `returnPolicyText`. Replaces `product` (never billed twice). |
| `review` *(Verified Buyer Review)* | **$0.0010 / review** (`$1.00 / 1,000`) | Emitted when `includeReviews: true`, up to `maxReviewsPerProduct` per item. |
| `status` *(Diagnostics)* | **FREE (`$0.00`)** | `empty_input`, `invalid_url`, `invalid_product_id`, `product_not_found`, and `filtered_empty` rows cost $0. |

### ❓ Frequently Asked Questions (FAQ)

#### Does this scraper extract the 12-digit UPC barcode for Walmart products?

Yes. When you pass `productIds` or set `enrichProductDetails: true`, the Actor parses Walmart's `/ip/<usItemId>` product payload and extracts `upc` (for example `"195949688522"` on Apple AirPods 4) along with `modelNumber` and IDML `specifications[]`.

#### Do I need Walmart cookies, an account, or custom residential proxies?

No. Anti-bot PerimeterX (`Robot or human?`) bypass is handled automatically inside our HTTP client out of the box. You do not need cookies, browser profiles, or external proxy keys.

#### Am I charged both `product` and `product-detail` when `enrichProductDetails: true` is enabled?

Never. Each product emits either `rowType: "product"` (`$0.0020`) or `rowType: "product-detail"` (`$0.0065`) — never both. If `includeReviews: true` is also enabled, each extracted review emits a separate `rowType: "review"` (`$0.0010`) record.

#### How does the price parser handle Walmart Rollback, Was-Price, and multi-line price blocks?

Walmart search cards often split prices across `priceDetails.priceLines` (`DISCOUNTED_PRICE` vs. `COMPARISON` `WAS_PRICE`) while `/ip/` pages populate `priceInfo.currentPrice` and `wasPrice`. Our unified price extractor normalizes both structures and computes exact `savingsUsd` and `discountPct` whenever `wasPriceUsd > currentPriceUsd`.

#### Are out-of-stock or out-of-budget items charged when I use filters?

No. `inStockOnly`, `rollbackOnly`, `minPriceUsd`, `maxPriceUsd`, and `minRating` run before dataset emission and before fetching detail or review pages. Filtered-out items cost **$0.00**.

#### Can I scrape Walmart browse/category URLs directly?

Yes. Paste any `https://www.walmart.com/browse/...` or custom filtered `https://www.walmart.com/search?...` URL into `searchUrls`. The Actor automatically paginates up to `maxItemsPerSearch`.

#### Can I pass plain numeric Walmart item IDs instead of full URLs?

Yes. `productIds` accepts both plain numeric `usItemId` values (such as `"11381374703"`) and full `https://www.walmart.com/ip/...` or `/reviews/product/...` URLs.

#### How do I distinguish Walmart 1P inventory from 3P Marketplace sellers?

Check `sellerName` and the boolean `isWalmartSeller` flag (`true` when sold directly by `Walmart.com`, `false` for third-party Marketplace merchants).

#### Does `review` extraction identify Verified Purchasers and review photos?

Yes. Every `rowType: "review"` record includes `isVerifiedPurchase` (from Walmart's `VerifiedPurchaser` badge), `isTopReviewer`, `helpfulCount`, `unhelpfulCount`, `publishedAt`, `sellerName`, and `reviewPhotos[]`.

#### How does deduplication prevent paying twice for sponsored vs. organic placements?

Walmart search pages frequently repeat an item as both a sponsored top placement and an organic slot. Deduplication keys every item as `walmart:product:<usItemId>` and every review as `walmart:review:<usItemId>:<reviewId>`, ensuring 100% uniqueness across pages and queries.

#### Can I call this Actor synchronously from an AI agent or n8n workflow?

Yes. Both Apify MCP (`https://mcp.apify.com?tools=foxlabs/walmart-scraper`) and Standby HTTP (`POST /scrape`) are built in, alongside standard Batch runs.

#### What memory setting should I use?

Keep memory at the default **256 MB**. Pure HTTP `__NEXT_DATA__` extraction keeps RAM usage low and avoids unnecessary compute charges.

### 🐛 Troubleshooting

- **Received a `rowType: "status"` row instead of listings?** Inspect the `status` and `message` fields on that row (`empty_input`, `invalid_url`, `no_results`, or `filtered_empty`). Relax overly strict price/rating filters or verify your target URL domain. Status rows are always **$0.00**.
- **Want to cap maximum spend per run?** Set Apify's built-in **Maximum cost per run (`maxTotalChargeUsd`)** option in Console or API calls — the Actor checks remaining budget via `calculateMaxEventChargeCountWithinLimit()` before running enrichment batches and exits cleanly when your cap is reached.

### 🚧 What It Does Not Do

- Does not place orders, add items to cart, or automate checkout.
- Does not access private Walmart Seller Center accounts.
- Does not scrape non-Walmart domains.

### ⚠️ Trademark Notice

`foxlabs/walmart-scraper` is an independent data extraction tool developed by **foXLabs** and is not affiliated with, endorsed by, or sponsored by the target website or its parent companies. All product and company names are trademarks of their respective holders.

### ⚖️ Is It Legal to Scrape Public Walmart Product & Review Pages?

This Actor extracts only **publicly accessible web data** visible to unauthenticated visitors without bypassing login walls or private account areas. Users are responsible for complying with applicable data-protection regulations (such as GDPR/CCPA where personal data may appear in user-generated posts) and using extracted data lawfully.

### 🤝 Support, Custom Data & Contact

Need custom columns, higher volume SLAs, or a dedicated enterprise data feed?

- **Portfolio & Guides:** <https://data.foxlabs.com.tr>
- **Email:** `info@foxlabs.com.tr`
- **Issues:** Open a ticket on the **Issues** tab of this Actor in Apify Console (target response < 48h).

### Changelog

#### `0.1.0` (2026-11-20)

- Initial release of `foxlabs/walmart-scraper` with 39+ structured columns, pre-billing filters, anti-bleed circuit breakers, `SOURCE_REPORT` telemetry, and dual Batch + Standby HTTP support.

# Changelog

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

# Actor input Schema

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

Keywords to search on Walmart.com (e.g. \['airpods', 'espresso machine', 'lego star wars']).

## `searchUrls` (type: `array`):

Direct Walmart search or browse category URLs (e.g. https://www.walmart.com/browse/electronics/3944).

## `productIds` (type: `array`):

Walmart usItemId values (e.g. '11381374703') or full /ip/... URLs.

## `sortBy` (type: `string`):

Sorting order applied to Walmart keyword searches.

## `enrichProductDetails` (type: `boolean`):

Visits each matched /ip/<usItemId> page to extract UPC barcode, model number, manufacturer, full technical specifications, category path, and return policy ('product-detail' event).

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

Fetches paginated buyer reviews from /reviews/product/<usItemId> and emits structured 'review' records.

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

Maximum customer reviews extracted per product when includeReviews is enabled.

## `inStockOnly` (type: `boolean`):

Only retain products currently available in stock.

## `rollbackOnly` (type: `boolean`):

Only retain discounted Rollback, Clearance, or reduced-price items.

## `minPriceUsd` (type: `number`):

Optional minimum current price in USD.

## `maxPriceUsd` (type: `number`):

Optional maximum current price in USD.

## `minRating` (type: `number`):

Optional minimum average star rating (e.g. 4.2).

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

Maximum unique products extracted per search query or category URL (~40 products per page).

## `maxTotalItems` (type: `integer`):

Hard ceiling on total billable records emitted across the entire run.

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

Apify Proxy configuration. Automatically routes through anti-bot unblocking out of the box.

## Actor input object example

```json
{
  "searchQueries": [
    "airpods"
  ],
  "sortBy": "best_match",
  "enrichProductDetails": false,
  "includeReviews": false,
  "maxReviewsPerProduct": 10,
  "inStockOnly": false,
  "rollbackOnly": false,
  "maxItemsPerSearch": 25,
  "maxTotalItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

No description

## `sourceReport` (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": [
        "airpods"
    ],
    "maxReviewsPerProduct": 10,
    "maxItemsPerSearch": 25,
    "maxTotalItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("foxlabs/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": ["airpods"],
    "maxReviewsPerProduct": 10,
    "maxItemsPerSearch": 25,
    "maxTotalItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("foxlabs/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": [
    "airpods"
  ],
  "maxReviewsPerProduct": 10,
  "maxItemsPerSearch": 25,
  "maxTotalItems": 100
}' |
apify call foxlabs/walmart-scraper --silent --output-dataset

```

## MCP server setup

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