# Walmart Fast Product Scraper (`w3crawler/walmart-fast-product-scraper`) Actor

Scrape product data from Walmart.com and Walmart.ca search and category pages, including name, priceInfo, availability, averageRating, and sellerName. Export data, run via API, schedule and monitor runs, or integrate with other tools.

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

## Pricing

from $2.99 / 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.

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

Extract product records from public Walmart.com and Walmart.ca search, category, and product pages over direct HTTP. The fast path reads JSON-LD and embedded page data to return product identity, URL, price and original price, currency, availability, rating and review count, seller, brand, category, description, images, SKU, and optional breadcrumbs, features, specifications, fulfillment, badges, and sponsored status when the page exposes them.

### Get started

1. Open the [Actor Store page](https://apify.com/w3crawler/walmart-fast-product-scraper) and select **Try for free**, or open the **Input** tab.
2. Add public Walmart search, category, or product URLs to `startUrls` or `productUrls`. If both lists are empty, the Actor searches for `query` instead.
3. Set `maxItems` to the number of products you need and keep the other limits small for the first run.
4. Start the Actor, open the dataset, and export the rows as JSON, CSV, or Excel. Open **Run summary** (`OUTPUT_SUMMARY`) to check records, blocked responses, and URL counts.

### Input

All fields are optional; the defaults below are ready to use. Unsupported field names and out-of-range values are rejected before requests start.

| Field | Type | Required? | Default | Meaning |
| --- | --- | --- | --- | --- |
| `query` | string | Optional | `wireless headphones` | Search phrase, up to 180 characters. Used only when both URL lists are empty; the Actor builds a Walmart search URL from it. |
| `startUrls` | string array | Optional | `[]` | Up to 50 public Walmart search, category, or product URLs, as plain strings rather than URL objects. |
| `productUrls` | string array | Optional | `[]` | Up to 50 additional public product-page URLs, combined with `startUrls`. |
| `maxItems` | integer | Optional | `50` | Maximum product records to save across all pages, from 1 to 500. |
| `requestTimeoutSecs` | integer | Optional | `45` | Maximum wait for each public request, from 5 to 180 seconds. |
| `requestDelayMillis` | integer | Optional | `700` | Pause between public requests, from 0 to 10,000 ms. |

Default input:

```json
{
  "query": "wireless headphones",
  "startUrls": [],
  "productUrls": [],
  "maxItems": 50,
  "requestTimeoutSecs": 45,
  "requestDelayMillis": 700
}
```

With this input, the Actor searches Walmart for wireless headphones because both URL lists are empty. Supplying `startUrls` or `productUrls` replaces the generated search. Both Walmart.com and Walmart.ca pages are accepted; prices and availability reflect the storefront and locale of the page actually returned. The Actor reads public HTML over direct HTTP and does not sign in, use a browser, or turn a blocked page into product data.

### Output

The dataset contains one row per source-backed product. Optional fields are omitted when the page does not publish them, and no diagnostic or placeholder rows are written.

| Field | Type | Availability | Meaning |
| --- | --- | --- | --- |
| `sourceUrl` | string | Always | Public Walmart search, category, or product URL that produced the row. |
| `name` | string | Always | Product name as displayed on the page. |
| `url` | string | Always | Public product detail URL. |
| `scrapedAt` | string | Always | UTC time the row was saved, in ISO 8601 format. |
| `productId` | string | When published | Walmart product identifier from the page data. |
| `gtin` | string | When published | GTIN, UPC, or EAN value when the page publishes one. |
| `price` | number | When published | Current price as a number in the row's `currency`. |
| `originalPrice` | number | When published | Pre-discount or was price when the page shows one. |
| `unitPrice` | number | When published | Unit price when Walmart publishes a per-unit value. |
| `currency` | string | When published | ISO currency code for the prices, such as `CAD` or `USD`. |
| `availability` | string | When published | Availability text, such as `In stock` or `Out of stock`. |
| `averageRating` | number | When published | Average product rating from 0 to 5. |
| `reviewCount` | integer | When published | Number of ratings or reviews shown for the product. |
| `sellerName` | string | When published | Seller or marketplace seller name. |
| `brand` | string | When published | Product brand. |
| `category` | string | When published | Category path shown by Walmart, joined with greater-than separators. |
| `breadcrumbs` | string array | When published | Breadcrumb labels when the page exposes them separately from `category`. |
| `description` | string | When published | Product description text from the page. |
| `features` | string array | When published | Feature bullets when the page exposes them. |
| `specifications` | object | When published | Specification key/value pairs; keys vary by product. |
| `fulfillment` | object, array, string, number, or boolean | When published | Fulfillment information as published, which can take different shapes by page. |
| `badges` | string array | When published | Visible merchandising badges, such as a best-seller label. |
| `sponsored` | boolean | When published | Whether the listing is marked as sponsored. |
| `imageUrls` | string array | When published | Absolute product image URLs from the page. |
| `sku` | string | When published | Walmart SKU or item identifier when published separately from `productId`. |

The example below is a real saved row from the 2026-09-08 run. The description is shortened with an ellipsis for readability; all other values are unchanged.

```json
{
  "sourceUrl": "https://www.walmart.ca/en/search?q=wireless+keyboard",
  "productId": "1YTYV6ZNUNUR",
  "name": "DarkBeacon Flux 68 HE Magnetic Switch Gaming Keyboard, Adjustable Actuation, RT",
  "url": "https://www.walmart.ca/en/ip/DarkBeacon-Flux-68-HE-Magnetic-Switch-Gaming-Keyboard-Adjustable-Actuation-RT/1YTYV6ZNUNUR",
  "price": 49.99,
  "originalPrice": 68.99,
  "currency": "CAD",
  "availability": "In stock",
  "averageRating": 5,
  "reviewCount": 1,
  "sellerName": "DarkBeacon Store",
  "brand": "DarkBeacon",
  "category": "Electronics > Laptops, Computers & Accessories > Computer Keyboards & Mice > PC Gaming Keyboards",
  "description": "Built for competitive control and everyday focus, DarkBeacon Flux 68 brings magnetic precision, a compact form, and a clean, purposeful presence into one cohesive system. Designed and engineered in-house, DB magnetic switches use Hall Effect sensing for contactless input and long-term stability. Built for consistency and precision, they form the foundation of Flux 68's next-generation magnetic key…",
  "imageUrls": [
    "https://i5.walmartimages.ca/asr/8d3b8ea6-0962-49ac-81db-b312c56adf2d.050c4e14bc154672fabc9aad569fda6d.jpeg"
  ],
  "sku": "1YTYV6ZNUNUR",
  "scrapedAt": "2026-09-08T12:13:13.190Z"
}
```

`price`, `originalPrice`, and `unitPrice` are numbers and share the row's `currency`; no conversion is performed. `specifications` is an object whose keys depend on the product, while `breadcrumbs`, `features`, and `badges` are string arrays. `fulfillment` is passed through in the shape the page uses, so it can be an object, array, string, number, or boolean. `productId` and `sku` can hold the same Walmart item ID, as in this row.

### Run summary

**Run summary** is stored separately from the dataset in the run's key-value store under `OUTPUT_SUMMARY`. This Actor does not write a separate `OUTPUT` key.

| Field | Meaning |
| --- | --- |
| `status` | Run outcome: `SUCCEEDED` when rows were saved or the crawl completed with no results, `FAILED` when a fatal error occurred before any usable row was saved. |
| `recordCount` | Number of records reported by the run; equals `productCount` in this run. |
| `productCount` | Number of product records saved to the dataset. |
| `diagnosticCount` | Number of source issues recorded outside the dataset. |
| `blockedCount` | Number of blocked or access-denied source responses. |
| `requestedUrls` | Number of source URLs requested by the run. |
| `processedUrls` | Number of source URLs processed to completion. |
| `fixtureCount` | QA only: pages served from the repository's bundled HTML fixtures; `0` for a live run. |
| `completedAt` | UTC time the summary was written, in ISO 8601 format. |

| Status | Meaning |
| --- | --- |
| `SUCCEEDED` | The run completed and saved every usable product, or genuinely found no matching products. |
| `FAILED` | A fatal error occurred before any source-backed product was saved. |

Example `OUTPUT_SUMMARY` from the saved run:

```json
{
  "status": "SUCCEEDED",
  "recordCount": 2,
  "productCount": 2,
  "diagnosticCount": 0,
  "blockedCount": 0,
  "requestedUrls": 1,
  "processedUrls": 1,
  "fixtureCount": 0,
  "completedAt": "2026-09-08T12:13:13.201Z"
}
```

### Coverage and limitations

The Actor reads public Walmart.com and Walmart.ca search, category, and product pages over direct HTTP. It does not sign in, bypass CAPTCHAs or access controls, use a private endpoint, or write an error page as a product. Page layouts differ between Walmart.com and Walmart.ca and can change without notice, so a successful page read does not guarantee every optional field. Missing values are omitted rather than inferred.

Prices, availability, seller offers, ratings, sponsored labels, and fulfillment messages are point-in-time values from the page actually returned; a different storefront, locale, or delivery location can show different results. Large categories can hit `maxItems` before the page is exhausted. Blocked, empty, oversized, redirected, or failed pages are counted in `OUTPUT_SUMMARY` and logs rather than saved as rows.

The repository also contains a QA-only `fixturePath` hook that serves bundled HTML from `test/fixtures`. It is not part of the public input schema, is not intended for Store runs, and appears in the summary only through `fixtureCount`, which is `0` for a live run.

### Usage and support

Cost depends on the number of source pages, product count, request delays, timeouts, and run time. Start with one search or product URL and a small `maxItems`, inspect the dataset and `OUTPUT_SUMMARY`, then scale. See the Actor's Pricing tab for current account rates.

Use the [Actor Issues page](https://apify.com/w3crawler/walmart-fast-product-scraper/issues) to report a problem. Include the run ID, the input used, and `OUTPUT_SUMMARY`; do not include tokens, cookies, or private data. This Actor is an independent community tool and is not affiliated with, endorsed by, or sponsored by Walmart. Use it only for public data and in accordance with Walmart's terms, robots guidance, and applicable law. Public pages can contain personal information; use the output only for lawful purposes.

# Actor input Schema

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

Search phrase used when startUrls is empty.

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

Public Walmart search, category, or product URLs.

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

Optional product-page URLs combined with startUrls.

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

Maximum product records to emit.

## `requestTimeoutSecs` (type: `integer`):

Maximum time allowed for each public request.

## `requestDelayMillis` (type: `integer`):

Delay between public requests.

## Actor input object example

```json
{
  "query": "wireless headphones",
  "startUrls": [],
  "productUrls": [],
  "maxItems": 50,
  "requestTimeoutSecs": 45,
  "requestDelayMillis": 700
}
```

# Actor output Schema

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

No description

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

Run status and counters stored by the Actor.

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

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

```

## MCP server setup

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