# Walmart Product Scraper (`xtracto/walmart-product-scraper`) Actor

Extract complete product details from Walmart product pages: price, ratings, availability, seller, specifications, images, and more.

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

## Pricing

from $2.00 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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 Scraper

Pull complete, structured product data from any Walmart product page — title, brand, price, availability, ratings, specifications, images, variants, and seller info in one record per URL.

### Why use this actor

- **Monitor competitor pricing** in near real time and alert when items move outside your target price band.
- **Track inventory and availability** of strategic SKUs across Walmart's catalog without manual checks.
- **Enrich your own catalog** with high-quality titles, full specification tables, and all product images from Walmart's listings.
- **Feed pricing intelligence models** with consistent, normalized fields across hundreds of products in a single run.
- **Analyze variant structures** — understand how Walmart surfaces size, color, and bundle options for any product.
- **Export to any format** — records land in Apify's Default Dataset and are ready as JSON, CSV, or Excel instantly.

### How it works

1. You provide a list of Walmart product page URLs (the `https://www.walmart.com/ip/...` format).
2. The actor fetches each product page and extracts the full structured data embedded in the page.
3. All fields — title, brand, price, specs, images, variants, seller, top reviews, and fulfillment flags — are parsed into a single flat record.
4. Records are written to the Default Dataset as they complete, so you can monitor progress in real time.
5. Download results as JSON, CSV, or Excel from the Apify Console, or pull them via the API into your own pipeline.

You don't need to manage any browsers or scrapers.

### Input

```json
{
  "productUrls": [
    { "url": "https://www.walmart.com/ip/Apple-AirPods-with-Charging-Case-2nd-Generation/604342441" },
    { "url": "https://www.walmart.com/ip/Samsung-55-Class-4K-Crystal-UHD-Smart-TV/123456789" }
  ],
  "maxConcurrency": 5,
  "maxRequestRetries": 6,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "US"
  }
}
````

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `productUrls` | array of objects | Yes | — | List of Walmart product URLs in `{ "url": "..." }` format. |
| `maxConcurrency` | integer | No | `5` | Number of parallel requests (1–50). |
| `maxRequestRetries` | integer | No | `6` | Retries per request before giving up. |
| `proxyConfiguration` | object | No | Apify RESIDENTIAL | Proxy settings. RESIDENTIAL group recommended. |

### Output

One record per product URL:

```json
{
  "url": "https://www.walmart.com/ip/Apple-AirPods-with-Charging-Case-2nd-Generation/604342441",
  "productId": "604342441",
  "title": "Apple AirPods with Charging Case (2nd Generation)",
  "brand": "Apple",
  "price": 89.0,
  "listPrice": 129.0,
  "currency": "USD",
  "availability": "In stock",
  "rating": 4.7,
  "reviewCount": 70601,
  "seller": "Walmart.com",
  "category": "Electronics / Headphones / Wireless Earbuds",
  "description": "The Apple AirPods (2nd generation) feature the Apple H1 chip, hands-free Siri access, and up to 24 hours of battery life with the Charging Case.",
  "specifications": [
    { "name": "Brand", "value": "Apple" },
    { "name": "Model", "value": "MV7N2LL/A" },
    { "name": "Color", "value": "White" },
    { "name": "Wireless Technology", "value": "Bluetooth" }
  ],
  "images": [
    "https://i5.walmartimages.com/seo/Apple-AirPods-2nd-gen_abc123.jpg",
    "https://i5.walmartimages.com/seo/Apple-AirPods-2nd-gen_xyz789.jpg"
  ],
  "variants": [
    {
      "name": "AirPods with Charging Case",
      "price": 89.0,
      "available": true,
      "url": "https://www.walmart.com/ip/604342441"
    },
    {
      "name": "AirPods with MagSafe Charging Case",
      "price": 149.0,
      "available": true,
      "url": "https://www.walmart.com/ip/647645989"
    }
  ],
  "topReviews": [
    {
      "rating": 5,
      "title": "Best purchase I've made",
      "text": "Sound quality is excellent and battery life holds up perfectly all day."
    }
  ],
  "upc": "190198869692",
  "scrapedAt": "2026-05-30T04:43:00Z"
}
```

| Field | Type | Description |
|---|---|---|
| `url` | string | The product page URL that was scraped. |
| `productId` | string | Walmart item ID. |
| `title` | string | Full product title. |
| `brand` | string | Brand name. |
| `price` | number | Current selling price in USD. |
| `listPrice` | number | Original / was-price (same as `price` when no discount). |
| `currency` | string | Always `"USD"` for Walmart US. |
| `availability` | string | Stock status for the selected variant. |
| `rating` | number | Average customer rating (0–5). |
| `reviewCount` | integer | Total number of customer ratings. |
| `seller` | string | Selling entity — `"Walmart.com"` or a marketplace seller name. |
| `category` | string | Breadcrumb category path. |
| `description` | string | Product description text. |
| `specifications` | array | Key-value spec table entries. |
| `images` | array | All product image URLs. |
| `variants` | array | Selectable options with per-variant price, availability, and URL. |
| `topReviews` | array | Up to 10 customer review excerpts included inline. |
| `upc` | string | Universal Product Code where available. |
| `scrapedAt` | string | ISO 8601 timestamp of when this record was collected. |

### Other Walmart Scrapers

| Actor | What it does |
|---|---|
| [Walmart Search Scraper](https://apify.com/store/walmart-search-scraper) | Keyword search results — ranking, pricing, and sponsored flags across any number of queries. |
| [Walmart Product Scraper](https://apify.com/store/walmart-product-scraper) | Full product detail pages — specs, variants, images, top reviews, and fulfillment info. |
| [Walmart Reviews Scraper](https://apify.com/store/walmart-reviews-scraper) | Complete review dataset per product — aggregate summary and individual review rows. |
| [Walmart Seller Scraper](https://apify.com/store/walmart-seller-scraper) | Marketplace seller profiles — identity, ratings, contact info, and featured products. |

# Actor input Schema

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

List of Walmart product URLs to scrape.

## `maxConcurrency` (type: `integer`):

Maximum number of parallel requests.

## `maxRequestRetries` (type: `integer`):

How many times a request will be retried before giving up.

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

Use Apify Proxy or your own proxies. RESIDENTIAL group is recommended.

## Actor input object example

```json
{
  "productUrls": [
    {
      "url": "https://www.walmart.com/ip/Apple-AirPods-with-Charging-Case-2nd-Generation/604342441"
    }
  ],
  "maxConcurrency": 5,
  "maxRequestRetries": 6,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# 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 = {
    "productUrls": [
        {
            "url": "https://www.walmart.com/ip/Apple-AirPods-with-Charging-Case-2nd-Generation/604342441"
        }
    ],
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("xtracto/walmart-product-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 = {
    "productUrls": [{ "url": "https://www.walmart.com/ip/Apple-AirPods-with-Charging-Case-2nd-Generation/604342441" }],
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("xtracto/walmart-product-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "productUrls": [
    {
      "url": "https://www.walmart.com/ip/Apple-AirPods-with-Charging-Case-2nd-Generation/604342441"
    }
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call xtracto/walmart-product-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=xtracto/walmart-product-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Walmart Product Scraper",
        "description": "Extract complete product details from Walmart product pages: price, ratings, availability, seller, specifications, images, and more.",
        "version": "1.0",
        "x-build-id": "peBjYlnJbXoD5faUx"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/xtracto~walmart-product-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-xtracto-walmart-product-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/xtracto~walmart-product-scraper/runs": {
            "post": {
                "operationId": "runs-sync-xtracto-walmart-product-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/xtracto~walmart-product-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-xtracto-walmart-product-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "productUrls"
                ],
                "properties": {
                    "productUrls": {
                        "title": "Product URLs",
                        "type": "array",
                        "description": "List of Walmart product URLs to scrape.",
                        "items": {
                            "type": "object",
                            "required": [
                                "url"
                            ],
                            "properties": {
                                "url": {
                                    "type": "string",
                                    "title": "URL of a web page",
                                    "format": "uri"
                                }
                            }
                        }
                    },
                    "maxConcurrency": {
                        "title": "Max concurrency",
                        "minimum": 1,
                        "maximum": 50,
                        "type": "integer",
                        "description": "Maximum number of parallel requests.",
                        "default": 5
                    },
                    "maxRequestRetries": {
                        "title": "Max retries per request",
                        "type": "integer",
                        "description": "How many times a request will be retried before giving up.",
                        "default": 6
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Use Apify Proxy or your own proxies. RESIDENTIAL group is recommended."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
