# Walmart Scraper - Products, Prices & Search (`innolabs/walmart-scraper`) Actor

Walmart scraper and API: extract Walmart product search results and category listings with prices, was-prices, ratings, reviews, seller, stock and fulfillment. No login.

- **URL**: https://apify.com/innolabs/walmart-scraper.md
- **Developed by:** [Tristan Leroux](https://apify.com/innolabs) (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 $0.54 / 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.
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

## Walmart Scraper - Products, Prices & Search

Get Walmart.com products as clean data: price, was-price and discount, rating and review
count, seller, stock status, delivery and pickup dates, sponsored flag, category and image
for every product in a search or category listing, and full product details (brand, model,
UPC, all images, specifications, description, rating breakdown, return policy, warranty)
from product pages. No Walmart account, no login, no API key. Export as JSON, CSV or Excel,
or use it as a Walmart API.

### What does Walmart Scraper do?

Enter keywords such as **tv** or **air fryer**, paste Walmart search or category URLs, or add
product links, and the scraper returns two kinds of records:

- **Listing products** (event `product`) — one per product in a Walmart search, category
  (`/browse/…`) or department (`/cp/…`) page: `price`, `wasPrice`, `savings`,
  `discountPercent`, `unitPrice`, `rating`, `reviewCount`, `sellerName`, `soldByWalmart`,
  `availability`, `fulfillmentType`, `deliveryDate`, `pickupDate`, badges (Rollback, Best
  seller), `isSponsored`, `walmartPlusEligible`, `snapEligible`, `category`, `image`,
  variants, plus the `searchQuery`, `page` and `position` it was found at.
- **Product details** (event `product-detail`) — one per product link: everything above plus
  `brand`, `model`, `upc`, `manufacturerProductId`, `ratingHistogram`,
  `recommendedPercent`, `sellerType`, `orderLimit`, `returnPolicy`, `returnWindowDays`,
  `warranty`, all `images`, `description`, `specifications` and `variantOptions`.

Data is read live from walmart.com (US) at run time. Sort order and price range filters work
for keywords and URLs.

### Use cases

- **Price monitoring** — track Walmart prices, Rollbacks and discounts for your products or
  your competitors' on a schedule.
- **Brand and seller tracking** — see which sellers list a brand, whether Walmart sells it
  itself, and whether items are in stock.
- **Assortment and market research** — map a category: price bands, top-rated products,
  review counts and best sellers.
- **Search ranking and ads** — record organic and sponsored positions for your keywords.
- **Catalog enrichment** — pull UPCs, model numbers, specifications and images for product
  databases and feeds.
- **AI agents and dashboards** — feed fresh Walmart data into Google Sheets, BI tools or an
  assistant.

### How much does it cost?

You pay only for the products you get (pay-per-event). Duplicates, failed inputs and
products above your limits are never charged.

| Event | What you pay for | Free plan | Paid plans (from) |
| --- | --- | --- | --- |
| `product` | One product from a Walmart search or category listing | $0.81 per 1,000 | $0.54 per 1,000 |
| `product-detail` | One detailed product record from a product page | $4.50 per 1,000 | $2.60 per 1,000 |

"Paid plans (from)" is the Gold-and-above price; Bronze ($0.72 / $3.90) and Silver
($0.63 / $3.20) sit in between.

Worked examples:

1. **Quick check** — the prefilled input (keyword `tv`, 40 products) costs
   40 × $0.81 / 1,000 = **$0.032** on the Free plan.
2. **Category price tracking** — 10 keywords × 200 products = 2,000 listing products plus
   100 product pages: 2,000 × $0.81 / 1,000 + 100 × $4.50 / 1,000 = **$2.07** on the Free
   plan, or 2,000 × $0.54 / 1,000 + 100 × $2.60 / 1,000 = **$1.34** on Gold+.

Apify Free plan includes $5 monthly credit, enough for about 6,000 listing products every
month.

### How to use Walmart Scraper

1. Open the actor in Apify Console and click **Try for free**.
2. Fill one or more of **Search keywords**, **Search or category URLs** and **Product URLs or
   item IDs**.
3. Optionally choose **Sort by**, a **Minimum / Maximum price** and **Max products per
   search**.
4. Click **Start**. 40 products take a few seconds.
5. Open the **Output** tab (Products and Product details views) and export as JSON, CSV,
   Excel or HTML.

Through the API:

1. Get your API token in Apify Console → Settings → Integrations.
2. Call the actor with your input JSON (see [Integrations and API](#integrations-and-api)).
3. Read the dataset items from the run.

### Input

| Field | Type | Default | Description |
| --- | --- | --- | --- |
| `searchQueries` | array | – | Keywords; each is a separate Walmart search. |
| `startUrls` | array | – | Walmart search (`/search?q=…`), category (`/browse/…`) or department (`/cp/…`) URLs. Filters in the URL are kept. |
| `productUrls` | array | – | Product links (`https://www.walmart.com/ip/<name>/<itemId>`) or numeric item IDs. Each returns a detailed record. |
| `sort` | string | `best_match` | `best_match`, `best_seller`, `price_low`, `price_high`, `rating_high`, `new`. |
| `minPrice` / `maxPrice` | integer | – | Price range in USD for keywords and URLs without their own price filter. |
| `maxItemsPerSearch` | integer | `200` | Cap per keyword or URL (Walmart shows up to about 1,000 per search). |
| `maxItems` | integer | `1000` | Hard cap on records for the whole run. |
| `proxyConfiguration` | object | Apify Proxy | Proxy settings. The default works; blocked requests are retried on a new IP. |
| `debug` | boolean | `false` | Verbose logs. |

Provide at least one keyword, URL or product.

Example — cheapest 4K TVs under $400:

```json
{
    "searchQueries": ["4k tv"],
    "sort": "price_low",
    "maxPrice": 400,
    "maxItemsPerSearch": 100
}
```

Example — a category plus two products in detail:

```json
{
    "startUrls": ["https://www.walmart.com/browse/electronics/tvs/3944_1060825_447913"],
    "productUrls": ["https://www.walmart.com/ip/18211860310", "470905078"],
    "maxItems": 300
}
```

### Output

Listing product from a real run on 2026-11-21 (some fields shortened):

```json
{
    "id": "10280316038",
    "usItemId": "10280316038",
    "productId": "4XUATTSX4OR9",
    "url": "https://www.walmart.com/ip/Sony-WF-C510-Truly-Wireless-Earbud-Headphones-Black/10280316038",
    "name": "Sony WF-C510 Truly Wireless Earbud Headphones, Black",
    "price": 44,
    "currency": "USD",
    "wasPrice": 54,
    "savings": 10,
    "discountPercent": 19,
    "rating": 4.4,
    "reviewCount": 409,
    "sellerName": "Walmart.com",
    "soldByWalmart": true,
    "availability": "IN_STOCK",
    "inStock": true,
    "condition": "New",
    "badges": ["Rollback"],
    "isRollback": true,
    "isSponsored": false,
    "fulfillmentType": "STORE",
    "deliveryDate": "2026-11-21T14:00:00.000Z",
    "category": "Electronics/Audio/Headphones/Shop Headphones by Type/Earbuds and In-Ear Headphones",
    "searchQuery": "headphones",
    "page": 1,
    "position": 1,
    "scrapedAt": "2026-11-21T10:38:55Z"
}
```

Product detail records add `brand`, `model`, `upc`, `ratingHistogram`
(`{"5": 3795, "4": 553, …}`), `recommendedPercent`, `returnPolicy`
(`"Free Holiday returns until Jan 31"`), `warranty` (`"1 Year Manufacturer Warranty"`),
`images`, `description` and `specifications` (`[{"name": "Screen size", "value": "65 in"}, …]`).
A run summary (items, duplicates, errors, charged events) is saved as `SUMMARY` in the
key-value store.

### Integrations and API

Run it from any language with the Apify API, for example:

```bash
curl -X POST "https://api.apify.com/v2/acts/innolabs~walmart-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchQueries": ["air fryer"], "maxItems": 50}'
```

Or use the Apify Python/JavaScript clients, schedules, webhooks, and integrations with Google
Sheets, Make, Zapier, n8n, Slack and AI agents through the Apify MCP server.

### FAQ

#### Do I need a Walmart account or API key?

No. The scraper reads public walmart.com pages. You only need an Apify account.

#### How many products can one search return?

Walmart shows up to 25 pages of about 40 products (around 1,000) per search. For more, split
by price range (`minPrice`/`maxPrice`), sort order or several keywords.

#### Which Walmart site is supported?

Walmart.com (United States, USD). Prices and delivery dates are those Walmart shows to a
visitor without a saved store or address.

#### Why are product pages priced higher than listing products?

Product pages are more strongly protected and return much more data (UPC, specifications,
images, description, rating breakdown), so they take more requests. Use listings when price,
rating and stock are enough.

#### Are sponsored products included?

Yes, as Walmart shows them in the listing, flagged with `isSponsored: true`, so you can filter
them out or analyse them.

### Limits

- Walmart.com (US) only; no reviews, Q\&A or third-party offer lists.
- About 1,000 products per search or category URL (Walmart's own pagination limit).
- Prices, stock and delivery dates reflect a default location, not a specific store or ZIP code.
- Product pages occasionally hit Walmart's bot check; they are retried on new IPs and
  reported in `SUMMARY` if all attempts fail.

# Changelog

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

# Actor input Schema

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

Keywords to search on walmart.com, e.g. "tv" or "air fryer". Each keyword is a separate search; results follow the sort and price filters below.

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

Walmart.com pages that list products: search URLs copied from your browser (https://www.walmart.com/search?q=...\&facet=brand:Samsung), category pages (https://www.walmart.com/browse/electronics/tvs/3944_1060825_447913) or department pages (/cp/...). Filters already in the URL are kept.

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

Walmart.com product pages (https://www.walmart.com/ip/<name>/<itemId>) or numeric item IDs. Each returns a detailed product record with brand, model, UPC, all images, specifications, description, rating breakdown, return policy and warranty. Product pages are more strongly bot-protected than searches, so they take longer.

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

Order of search and category results.

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

Only products at or above this price. Applies to keywords and to URLs that do not set their own price filter.

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

Only products at or below this price. Applies to keywords and to URLs that do not set their own price filter.

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

Cap per keyword or URL. Walmart shows up to 25 pages of about 40 products (around 1,000) per search; use price ranges or several keywords to go beyond that.

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

Hard cap on dataset items for the whole run. The run stops cleanly when reached.

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

Walmart blocks repeated requests from one IP. Apify Proxy (default) gives every retry a fresh IP.

## `debug` (type: `boolean`):

Verbose logs for troubleshooting.

## Actor input object example

```json
{
  "searchQueries": [
    "tv"
  ],
  "sort": "best_match",
  "maxItemsPerSearch": 200,
  "maxItems": 40,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "debug": false
}
```

# Actor output Schema

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

All products from the run: listing records (event product, with searchQuery/position) and product-page records (event product-detail, with brand, UPC, specifications).

# 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": [
        "tv"
    ],
    "maxItems": 40
};

// Run the Actor and wait for it to finish
const run = await client.actor("innolabs/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": ["tv"],
    "maxItems": 40,
}

# Run the Actor and wait for it to finish
run = client.actor("innolabs/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": [
    "tv"
  ],
  "maxItems": 40
}' |
apify call innolabs/walmart-scraper --silent --output-dataset

```

## MCP server setup

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