# Walmart Product Search Scraper (`data_dino/walmart-products`) Actor

💰 $1.00 per 1000 comments❗Search Walmart.com for products and extract structured product data including names, prices, URLs, thumbnails, ratings, and review counts.

- **URL**: https://apify.com/data\_dino/walmart-products.md
- **Developed by:** [Data Dino](https://apify.com/data_dino) (community)
- **Categories:** E-commerce, SEO tools, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 results

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?

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 Product Search Scraper

Search Walmart.com for any product and get structured results with names, prices, URLs, thumbnails, ratings, and review counts. This Apify actor turns a simple search query into a ready-to-use product dataset — ideal for price monitoring, market research, competitive analysis, and e-commerce intelligence.

### Why use this actor?

- **Simple search-based input** — just enter a product query; no URLs or category navigation needed.
- **Structured product data** — every result includes name, price, product URL, thumbnail, average rating, and review count.
- **Configurable result volume** — set the maximum number of records to collect per run (up to 1,000).
- **Cost-conscious** — scrape only the products you need instead of crawling entire categories.
- **Reliable extraction** — browser-based rendering bypasses Walmart's bot detection, so you get consistent results even when Walmart blocks HTTP-based scrapers.
- **Apify-native workflow** — schedule runs, monitor progress, and export the resulting dataset in JSON, CSV, Excel, or other supported formats.

### What you can collect

Each product record includes the following fields:

| Field | Description |
|---|---|
| `name` | Product name as displayed on Walmart.com |
| `price` | Current listed price (line price or item price) |
| `url` | Direct product URL on Walmart.com |
| `thumbnail` | Product thumbnail image URL |
| `averageRating` | Average customer rating (if available) |
| `numberOfReviews` | Number of customer reviews (if available) |

### Input

| Field | Type | Required | Description | Default |
|---|---|---:|---|---|
| `query` | String | Yes | The product search term to look up on Walmart.com | `hair dryer` |
| `maxRecords` | Integer | No | Maximum number of product records to collect | `5` |

#### Example input

```json
{
    "query": "laptop",
    "maxRecords": 10
}
```

### Output

The actor pushes one dataset item per product found. A representative result:

```json
{
    "name": "Revlon One-Step Hair Dryer and Volumizer Hot Air Brush",
    "price": "$34.97",
    "url": "https://www.walmart.com/ip/Revlon-One-Step-Hair-Dryer/123456789",
    "thumbnail": "https://i5.walmartimages.com/asr/abc123.jpg",
    "averageRating": 4.5,
    "numberOfReviews": 12453
}
```

### Built for practical workflows

- **Price monitoring** — track product prices over time for specific search terms.
- **Market research** — collect product listings to analyze pricing trends and competitive positioning.
- **E-commerce intelligence** — build structured product catalogs from Walmart search results.
- **Review analysis** — gather ratings and review counts to assess product popularity.

### How to run

1. Open the actor in Apify.
2. Enter your search query in the `query` field.
3. Optionally adjust `maxRecords` to control how many products to collect.
4. Start the run.
5. Review the dataset or export it as JSON, CSV, Excel, or another supported format.

### Important limitations

- Results depend on what Walmart.com displays for the search query at run time.
- Walmart may block or modify responses for automated requests; the actor uses browser-based extraction to mitigate this.
- Product availability, pricing, and ratings may change between runs.
- The actor collects search-result-level data; it does not visit individual product detail pages.
- Very large `maxRecords` values will increase run duration and resource usage.

Use the collected information in accordance with Walmart's terms of service, applicable privacy requirements, and your organization's data-use policies.

# Actor input Schema

## `query` (type: `string`):

The product search term to look up on Walmart.com (e.g. 'laptop', 'hair dryer', 'wireless headphones').

## `maxRecords` (type: `integer`):

Maximum number of product records to collect from the search results. The scraper paginates through search pages until this limit is reached.

## Actor input object example

```json
{
  "query": "hair dryer",
  "maxRecords": 5
}
```

# Actor output Schema

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

Walmart product records stored in the default dataset, one item per product found.

# 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 = {
    "query": "hair dryer",
    "maxRecords": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("data_dino/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 = {
    "query": "hair dryer",
    "maxRecords": 5,
}

# Run the Actor and wait for it to finish
run = client.actor("data_dino/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 '{
  "query": "hair dryer",
  "maxRecords": 5
}' |
apify call data_dino/walmart-products --silent --output-dataset

```

## MCP server setup

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