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

Scrape Walmart.com search results: prices, was-prices, ratings, review counts, sellers, stock status and badges. Fast HTTP scraper, no browser.

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

## Pricing

from $1.60 / 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 Product Scraper – Prices, Ratings & Sellers

Scrape **Walmart.com** search results fast and cheaply. HTTP-only (no browser), automatic proxy fallback, and you pay only for products you receive.

### What you get

| Field | Example |
|---|---|
| `name` | Apple AirPods 4 |
| `price` / `wasPrice` / `currency` | 89.00 / 129.99 / USD |
| `rating` / `reviewCount` | 4.3 / 94744 |
| `sellerName` / `sellerId` / `otherSellersCount` | Walmart.com / F55CDC31… / 13 |
| `availability` / `inStock` | IN_STOCK / true |
| `badge` | Rollback |
| `isSponsored` | false |
| `category` | Electronics/Audio/Headphones/… |
| `itemId`, `productId`, `url`, `image`, `brand`, `keyword`, `page`, `position`, `scrapedAt` | |

### Features

- 🔎 Multiple keywords per run, automatic pagination
- ↕️ Sort by best match, price, best sellers, rating or newest; price range filter
- 🧹 Option to drop sponsored listings
- 🛡️ No proxy setup needed – the Actor switches to Apify Proxy automatically if Walmart blocks a request
- 💸 Pay per product; respects your spending limit

### Input example

```json
{
  "keywords": ["coffee maker", "air fryer"],
  "maxItems": 200,
  "sort": "best_seller",
  "minPrice": 20,
  "maxPrice": 150
}
```

### Use cases

Price monitoring · Competitor and assortment research · Finding best sellers and rollback deals · Product sourcing for e-commerce

### Notes

Collects publicly visible product listings only. No login, no personal data. Use the data in line with Walmart's terms and applicable laws.

# Actor input Schema

## `keywords` (type: `array`):

One Walmart search per keyword, e.g. "airpods", "coffee maker".

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

Stop after this many products for each keyword. Walmart shows up to ~1,000 results per search.

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

Order of search results.

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

Optional minimum price in USD.

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

Optional maximum price in USD.

## `includeSponsored` (type: `boolean`):

Keep paid/sponsored listings in the results.

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

Usually not needed: the Actor automatically switches to Apify Proxy when Walmart blocks a request. Set a proxy here only to force one.

## Actor input object example

```json
{
  "keywords": [
    "airpods"
  ],
  "maxItems": 100,
  "sort": "best_match",
  "includeSponsored": true,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `products` (type: `string`):

All scraped products (name, price, was-price, rating, reviews, seller, stock, badge, URL).

# 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 = {
    "keywords": [
        "airpods"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("thony-data/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 = {
    "keywords": ["airpods"],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("thony-data/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 '{
  "keywords": [
    "airpods"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call thony-data/walmart-scraper --silent --output-dataset

```

## MCP server setup

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