# Walmart Product Detail Scraper (`w3crawler/walmart-product-detail-scraper`) Actor

Extract public Walmart product details, offers, ratings, sellers, and optional variants.

- **URL**: https://apify.com/w3crawler/walmart-product-detail-scraper.md
- **Developed by:** [w3crawler](https://apify.com/w3crawler) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.99 / 1,000 product details

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

### What does Walmart Product Detail Scraper do?

**Walmart Product Detail Scraper** extracts product information exposed on public [Walmart.com](https://www.walmart.com) pages. It is a **Walmart product API alternative** for catalog enrichment, price monitoring, assortment research, and seller comparison. It reads public pages only and does not bypass sign-in, CAPTCHA, rate limits, or other access controls.

### Why use Walmart Product Detail Scraper?

Provide product, search, or category URLs and receive normalized names, brands, offers, images, ratings, UPCs, sellers, shipping text, return policy text, and optional variants. Apify adds scheduling, API access, integrations, proxy configuration, and run monitoring.

### What data can it extract?

| Field | Type | Description |
| --- | --- | --- |
| `productId` | string | Walmart product identifier |
| `name` / `brand` | string | Public product identity |
| `price` / `currency` | number / string | Current offer |
| `rating` / `reviewCount` | number / integer | Public review signals |
| `sku` / `upc` | string | Public catalog identifiers |
| `sellerName` | string | Offer seller |
| `variantName` | string | Variant label when enabled |
| `url` | URL | Product or variant page |

### How to scrape Walmart products

1. Open the Actor in Apify Console and inspect the input tab.
2. Add public Walmart product, search, or category URLs.
3. Choose the product limit per URL and enable variants if needed.
4. Start the run and download JSON, HTML, CSV, or Excel, or use the API tab.

### How much will it cost?

Cost follows normal Apify compute and network usage. Keep `maxProductsPerStartUrl` focused and enable variants only when needed. Apify offers a free allowance and paid plans for larger scheduled catalogs.

### Input

See the input tab for full configuration options. `startUrls` is required and must contain official HTTPS Walmart.com or Walmart.ca pages; `enqueueProductVariants` controls variant records. `fixtureFile` is for deterministic local validation only.

### Output

You can download the dataset in various formats such as JSON, HTML, CSV, or Excel. Example:

```json
{
  "productId": "16935510",
  "name": "Laundry Detergent",
  "price": 12.98,
  "currency": "USD",
  "rating": 4.5,
  "reviewCount": 27,
  "url": "https://www.walmart.com/ip/Laundry-Detergent/16935510"
}
```

### Tips and troubleshooting

Walmart fronts the site with bot screening: plain HTTP requests can receive an HTTP 307 redirect to a `/blocked` interstitial and a `_pxhd` cookie, and the same challenge can apply to browser sessions. Common 200-level challenge markers are treated as source-unavailable rather than parsed as products. If a run returns `NO_PRODUCTS_FOUND`, inspect the run log and retry later with a focused URL rather than increasing concurrency. Category pages can expose fewer fields than a product detail page.

### FAQ, disclaimer, and support

This Actor extracts public product information only. Our Actors are ethical and do not extract private user data. Respect Walmart terms, seller rights, applicable copyright, and privacy regulations. Use the Issues tab for feedback and the API tab for programmatic access.

# Actor input Schema

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

Public Walmart product, search, or category page URLs.

## `maxProductsPerStartUrl` (type: `integer`):

Maximum product records (including optional variants) emitted for each start URL.

## `enqueueProductVariants` (type: `boolean`):

Emit each publicly exposed variant as its own product record.

## `fixtureFile` (type: `string`):

Optional repository-relative HTML fixture for deterministic local validation.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://www.walmart.com/ip/16935510"
    }
  ],
  "maxProductsPerStartUrl": 10,
  "enqueueProductVariants": false
}
```

# Actor output Schema

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

No description

## `runSummary` (type: `string`):

No description

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("w3crawler/walmart-product-detail-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 = {}

# Run the Actor and wait for it to finish
run = client.actor("w3crawler/walmart-product-detail-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 '{}' |
apify call w3crawler/walmart-product-detail-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,w3crawler/walmart-product-detail-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/Ul1aEVd6Nm5y5AEfm/builds/UFpZSObKqagcD5tXc/openapi.json
