# Walmart Scraper - Product Prices, Ratings & Sellers (`santhej/walmart-search-scraper`) Actor

Scrape Walmart products from any search or category page. Extract prices, ratings, sellers, stock and images. Export JSON/CSV. No API key.

- **URL**: https://apify.com/santhej/walmart-search-scraper.md
- **Developed by:** [Santhej Kallada](https://apify.com/santhej) (community)
- **Categories:** E-commerce, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

Pay per event

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Walmart Scraper — Products, Prices, Ratings & Sellers

Scrape Walmart search results and category pages at scale. Give it keywords or category URLs and get clean, structured product rows — no API key, no login, no proxy setup.

**$1.10 per 1,000 products.** One flat rate for every plan, including free.

### Features

- **Scrape Walmart search results by keyword** — one keyword or fifty per run
- **Scrape Walmart category pages** — paste any browse or category URL
- **Extract Walmart product prices** — current price, was-price and savings
- **Get Walmart product ratings and review counts**
- **Find Walmart marketplace sellers** — seller name and ID per listing
- **Check Walmart stock availability** — in stock, out of stock, availability text
- **Filter Walmart products by price range** — minimum and maximum
- **Sort Walmart results** — best match, price low/high, best sellers, new arrivals, highest rated
- **Extract Walmart product images and URLs**
- **Export Walmart data to JSON, CSV or Excel** — or pull it from the API

### What you get

Every product row includes:

| Field | Description |
|---|---|
| `usItemId` | Walmart's unique item ID — stable key for tracking a product over time |
| `name` | Full product title |
| `productUrl` | Clean canonical product URL (tracking params stripped) |
| `price` | Current price as a number |
| `priceDisplay` | Price as Walmart shows it, e.g. `$199.00` |
| `wasPrice` / `savingsAmount` | Strike-through price and discount, when on offer |
| `priceRange` | Range across variants, e.g. `Options from $199.00 – $228.99` |
| `rating` / `reviewCount` | Average star rating and number of reviews |
| `sellerName` / `sellerId` | Marketplace seller, or `Walmart.com` for first-party |
| `availabilityStatus` | `IN_STOCK`, `OUT_OF_STOCK`, etc., plus a display string |
| `badges` | `Best seller`, `Rollback`, `Reduced price`, … |
| `image` | Product thumbnail URL |
| `departmentName` / `categoryPathId` | Where the product sits in Walmart's taxonomy |
| `fulfillmentType` | Delivery, pickup or shipping |
| `variantType`, `offerId`, `snapEligible` | Variant and offer metadata |

Plus `sourceLabel` (the keyword or URL that found it), `sourcePage` and `scrapedAt`.

### Two modes

**Search** — pass keywords:

```json
{
  "mode": "search",
  "queries": ["laptop", "air fryer"],
  "maxItems": 200,
  "sort": "price_low",
  "minPrice": 100,
  "maxPrice": 500
}
```

**Category** — pass any Walmart category or browse URL:

```json
{
  "mode": "category",
  "categoryUrls": ["https://www.walmart.com/browse/electronics/3944"],
  "maxItems": 500
}
```

`maxItems` applies **per keyword or per URL**, so two keywords at 200 each returns up to 400 products.

### What it's good for

- **Price tracking** — monitor competitor pricing and rollbacks on a schedule
- **Catalogue mapping** — pull an entire category to see who sells what
- **Marketplace seller intel** — find third-party sellers by category and volume
- **Assortment research** — compare ranges, ratings and price bands before you list

### Things worth knowing

- **Walmart caps listings at ~500 products per query** (about 14 pages). Asking for more returns everything available, not an error. To go deeper, split one broad keyword into several narrower ones, or use price-band filters.
- **Duplicates are removed before you are billed.** Walmart repeats items across and within pages; we deduplicate on `usItemId` and only charge for unique products.
- **You are not billed for blocked or failed pages.** If Walmart serves a bot check, that target stops and no product charge is made.
- **Empty keywords cost $0.002.** A keyword that returns nothing still requires a page fetch, so it carries a small zero-result charge. Keywords that return products never do.

### Pricing

| Event | Price |
|---|---|
| Product returned | **$0.0011** ($1.10 per 1,000) |
| Zero-result keyword | $0.002 |
| Actor start | $0.0005 |

Flat across every Apify plan — no tier gating.

### Output example

```json
{
  "usItemId": "3193557250",
  "name": "Acer Chromebook 315 15.6 inch Laptop Intel Processor N4500 4GB RAM 64GB eMMC",
  "productUrl": "https://www.walmart.com/ip/Acer-Chromebook-315.../3193557250",
  "price": 199,
  "priceDisplay": "$199.00",
  "priceRange": "Options from $199.00 – $228.99",
  "rating": 4.3,
  "reviewCount": 20134,
  "sellerName": "Walmart.com",
  "availabilityStatus": "IN_STOCK",
  "badges": ["Best seller"],
  "sourceLabel": "laptop",
  "sourcePage": 1
}
```

### FAQ

**Do I need a Walmart API key or developer account?**
No. Nothing to register and no keys to manage.

**Are duplicate products billed?**
No. Walmart repeats items across and within pages; results are deduplicated on `usItemId` and only unique products are charged.

**What happens if Walmart blocks a page?**
Blocked pages are detected, skipped and never billed. Each run reports `blocked_pages` in its summary.

**Why do some products have no price?**
A small number of marketplace listings show no price in Walmart's results grid — the price only appears on the product page. Those rows return `price: null` rather than a misleading zero.

**Can I scrape a whole Walmart category?**
Yes — switch `mode` to `category` and pass any Walmart browse or category URL.

**Can I get product names in English?**
Yes. The `country` option controls the exit location, and it defaults to `us` so titles come back in English. Without it Walmart sometimes localises product names.

**Can I run this on a schedule?**
Yes — use Apify's scheduler for daily price tracking, or trigger it from your own pipeline via API.

### Support

Open an issue on the Actor's Issues tab and I'll take a look.

# Actor input Schema

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

Search Walmart by keyword, or paginate a Walmart category / browse URL.

## `queries` (type: `array`):

What to search on Walmart, e.g. 'laptop', 'air fryer'. One per line. Up to 50 per run. Used in search mode only.

## `categoryUrls` (type: `array`):

Walmart category or browse URLs, e.g. https://www.walmart.com/browse/electronics/3944. One per line. Up to 50 per run. Used in category mode only.

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

How many unique products to collect for EACH keyword or category URL. Walmart caps listings at roughly 500 products per query, so values above that return fewer results.

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

How Walmart should order results before we collect them.

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

Only return products at or above this price. Leave empty for no minimum.

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

Only return products at or below this price. Leave empty for no maximum.

## `country` (type: `string`):

Two-letter country code used when fetching. Controls the language and currency Walmart returns; without it product names can come back localised. Defaults to 'us'.

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

How many keywords or category URLs to process at once. Higher is faster but heavier; 3 suits most runs.

## `pageConcurrency` (type: `integer`):

Pages fetched in parallel within one keyword. Higher is substantially faster.

## Actor input object example

```json
{
  "mode": "search",
  "queries": [
    "laptop",
    "air fryer"
  ],
  "categoryUrls": [
    "https://www.walmart.com/browse/electronics/3944"
  ],
  "maxItems": 100,
  "sort": "best_match",
  "country": "us",
  "concurrency": 3,
  "pageConcurrency": 6
}
```

# Actor output Schema

## `dataset` (type: `string`):

All scraped Walmart products.

## `summary` (type: `string`):

Targets, product counts and pages fetched.

# 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 = {
    "queries": [
        "laptop",
        "air fryer"
    ],
    "categoryUrls": [
        "https://www.walmart.com/browse/electronics/3944"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("santhej/walmart-search-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 = {
    "queries": [
        "laptop",
        "air fryer",
    ],
    "categoryUrls": ["https://www.walmart.com/browse/electronics/3944"],
}

# Run the Actor and wait for it to finish
run = client.actor("santhej/walmart-search-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 '{
  "queries": [
    "laptop",
    "air fryer"
  ],
  "categoryUrls": [
    "https://www.walmart.com/browse/electronics/3944"
  ]
}' |
apify call santhej/walmart-search-scraper --silent --output-dataset

```

## MCP server setup

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