# Walmart Scraper: Products, Prices, Stock & Sellers (`tacps126/walmart-products`) Actor

Walmart.com search results, category listings and product pages: price, was-price, rating, reviews, seller, stock, delivery and pickup, sponsored flag, specs, description, rating breakdown and top reviews. Filters and price/stock change monitoring.

- **URL**: https://apify.com/tacps126/walmart-products.md
- **Developed by:** [Tapaswai Choudhary](https://apify.com/tacps126) (community)
- **Categories:** E-commerce, Automation, Business
- **Features:** Limited permissions, Single-tenant, Server interface
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.70 / 1,000 products

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
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, Stock & Sellers

Products from **Walmart.com** for any search, category or product link: price and was-price, rating and review count, seller, stock, delivery and pickup, sponsored flag and badges. Turn on **Product details** for brand, model, UPC, full specifications, description, seller rating, return policy, rating breakdown, review highlights and top reviews. Schedule it with **Only new or changed** to get price and stock alerts with a price history.

**Built for** e-commerce sellers and brands, pricing and assortment analysts, resellers and dropshippers, market researchers and AI agents.

### What you get

| Field | Meaning |
|---|---|
| `itemId`, `name`, `brand`, `url`, `image` | The product |
| `price`, `wasPrice`, `unitPrice`, `savings` | Prices in USD |
| `rating`, `reviewsCount` | Ratings |
| `seller`, `sellerId` | Who sells it (Walmart or a marketplace seller) |
| `availability`, `inStock`, `fulfillment` | Stock and delivery / pickup options |
| `sponsored`, `badges`, `category`, `position`, `page` | Placement in the results |

**With Product details:** `model`, `manufacturerPartNumber`, `upc`, `specifications`, `description`, `features`, `variants`, `images`, `sellerRating`, `sellerReviewsCount`, `shippingPrice`, `deliveryDate`, `returnPolicy`, `ratingBreakdown`, `reviewSummary`, `reviewAspects`, `topReviews`.

**With Only new or changed:** `changeType` (new or changed), `changes` (old and new price, stock or seller) and `priceHistory`.

### Why this Actor

- **Search, category and product links** in one run, up to 25 result pages per search.
- **Filters:** price range, minimum rating, in stock only, leave out sponsored placements; sort by price, best sellers, rating or newest.
- **Price and stock monitoring** with change details and history.
- **Fast and low cost:** a few seconds per results page.
- **For AI agents.** Callable as an MCP tool.

### How to use it

```json
{ "searchQueries": ["air fryer"], "maxItemsPerSearch": 200, "sortBy": "best_seller", "minRating": 4 }
```

Daily price and stock alerts for a category:

```json
{ "startUrls": ["https://www.walmart.com/browse/electronics/laptops/3944_3951"], "onlyChanges": true, "monitorName": "laptops" }
```

### Pricing

**$3 per 1,000 products** plus a small start fee per run; **product details** add **$2.20 per 1,000** product pages, so a product with full details is $5.20 per 1,000. Higher Apify plans pay less (up to 15% off). On the Apify free plan a run returns up to 100 products.

### Good to know

- Public product pages only, as shown to a US visitor; nothing behind a sign-in.
- Prices and stock change often; `scrapedAt` says when each row was read.
- Need another field? **Contact tacps126@gmail.com**.

# Actor input Schema

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

Words as you would type them on Walmart.com.

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

Search, category (browse) or product links, or product item ids.

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

Walmart shows up to 25 pages per search.

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

Order of search results.

## `minPrice` (type: `number`):

Only products at or above this price.

## `maxPrice` (type: `number`):

Only products at or below this price.

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

e.g. 4 for four stars and up.

## `excludeSponsored` (type: `boolean`):

Drop sponsored (ad) placements.

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

Drop products shown as out of stock.

## `includeDetails` (type: `boolean`):

Open each product page for brand, model, UPC, specifications, description, seller rating, return policy, rating breakdown and top reviews (charged per product page).

## `onlyChanges` (type: `boolean`):

Schedule the Actor and each run returns only products that are new or changed price, stock or seller since the last run, with the change and a price history.

## `monitorName` (type: `string`):

Optional name for the "only new" history, so several monitors can run side by side.

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

Most products returned per run.

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

Not needed in most runs; refused pages are retried through a proxy automatically.

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

Save extra diagnostics with the run (for support requests).

## Actor input object example

```json
{
  "searchQueries": [
    "laptop"
  ],
  "maxItemsPerSearch": 100,
  "sortBy": "best_match",
  "excludeSponsored": false,
  "inStockOnly": false,
  "includeDetails": false,
  "onlyChanges": false,
  "maxItems": 1000,
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "debug": false
}
```

# Actor output Schema

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

The produced items (default dataset items).

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

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

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

```

## MCP server setup

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

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/OIxsJ5DaZzAsgy36W/builds/VTQ8zJkP7ypM0GHkr/openapi.json
