# Walmart Products Scraper (`crw/walmart-products-scraper`) Actor

Scrape product search results from Walmart US (walmart.com) and Canada (walmart.ca) by keyword or category. Extract product name, price, discount, rating, images, availability, delivery date, and seller details. Supports sorting and category/department filters for targeted data collection.

- **URL**: https://apify.com/crw/walmart-products-scraper.md
- **Developed by:** [CRW](https://apify.com/crw) (community)
- **Categories:** E-commerce, Developer tools, Automation
- **Features:** Limited permissions
- **Stats:** 30 total users, 9 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.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?

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

Scrape Walmart product listings by keyword — from walmart.com (US) or walmart.ca (Canada). Get prices, ratings, delivery dates, seller details, and more. **$0.003 per product. No compute billing.**

***

### Who Uses This?

- **E-commerce sellers** — Monitor competitor prices before adjusting your own listings
- **Dropshippers** — Find profitable products sorted by lowest price across any department
- **Price comparison apps** — Pull real-time Walmart prices for US and Canadian markets in one tool
- **Market researchers** — Track availability, ratings, and seller trends by category over time

***

### What You Get Per Product

| Data | Example |
|---|---|
| Product name | "Samsung Galaxy Watch8 Classic 46mm BT" |
| Current price | $370.49 |
| Original price / discount | $416.48 → Save $45.99 |
| Rating | 4.6 ★ (189 reviews) |
| Estimated delivery | June 2 |
| Seller | Gadget Source (Marketplace) |
| In stock? | YES |
| Sponsored listing? | flagged via `is_sponsored` |

> Full field reference in the [Output Fields](#output-fields) section below.

***

### Pricing

| Products collected | Cost |
|---|---|
| 40 | $0.12 |
| 100 | $0.30 |
| 400 | $1.20 |

Charged per result item only. No monthly fee. No compute billing. You pay nothing if the run returns zero results.

***

### How to Use

#### Input Parameters

| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
| `market` | string | No | `"US"` | Target market. `"US"` (walmart.com) or `"CA"` (walmart.ca) |
| `keyword` | string | Yes | — | Search keyword (e.g. `"wireless earbuds"`) |
| `cat_id` | string | No | `""` | Category / Department ID to filter results. [How to find it →](#category--department-id-guide) |
| `sort` | string | No | `"best_match"` | Sort order. See options below |
| `max_items` | number | No | `40` | Maximum number of products to collect (1–400) |

#### Sort Options

| Value | Description |
|---|---|
| `best_match` | Best match (default) |
| `price_low` | Price low to high |
| `price_high` | Price high to low |

***

### Example Inputs

#### Competitor price monitoring — Electronics (US)

```json
{
  "market": "US",
  "keyword": "wireless earbuds",
  "cat_id": "3944",
  "sort": "price_low",
  "max_items": 100
}
```

Returns 100 cheapest wireless earbuds in Walmart's Electronics department, with prices, ratings, seller names, and delivery dates.

#### Find trending products — All categories (Canada)

```json
{
  "market": "CA",
  "keyword": "air fryer",
  "sort": "best_match",
  "max_items": 40
}
```

Returns top 40 Walmart Canada results for "air fryer" across all categories.

#### Deep category search (Canada)

```json
{
  "market": "CA",
  "keyword": "galaxy watch",
  "cat_id": "10007_20127_6000199028437_6000199028444",
  "sort": "best_match",
  "max_items": 40
}
```

***

### Category / Department ID Guide

`cat_id` is optional. Leave it empty to search across all categories.

> **Terminology differs by market**
>
> - **CA (walmart.ca)**: The filter is labeled **"Category"**
> - **US (walmart.com)**: The filter is labeled **"Departments"**
>
> Apply the filter on the Walmart website, then copy the `catId` value from the URL.

#### Finding the ID on walmart.ca

```
https://www.walmart.ca/en/search?q=galaxy+watch&catId=10007
                                                       ^^^^^
                                                       Copy this into cat_id
```

Subcategories join IDs with `_`:

```
https://www.walmart.ca/en/search?q=galaxy+watch&catId=10007_20127_6000199028437_6000199028444
                                                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                                                       Copy the entire string into cat_id
```

| Example `cat_id` | Meaning |
|---|---|
| `""` (empty) | All categories |
| `"10007"` | Electronics |
| `"10007_20127"` | Electronics > Smart Home & Security |

#### Finding the ID on walmart.com

```
https://www.walmart.com/search?q=galaxy+watch&catId=3944
                                                     ^^^^
                                                     Copy this into cat_id
```

| Example `cat_id` | Meaning |
|---|---|
| `""` (empty) | All Departments |
| `"3944"` | Electronics |
| `"3891"` | Jewelry |

***

### Output

Results are pushed to the Apify dataset. Each record represents one product.

#### Example Output

```json
{
  "id": "4KBY87WGMT36",
  "name": "Samsung Galaxy Watch8 Classic 46mm BT",
  "brand": "Samsung",
  "canonical_url": "https://www.walmart.ca/en/ip/Samsung-Galaxy-Watch8-Classic-46mm-BT/2OSGTAGB7F13",
  "thumbnail_url": "https://i5.walmartimages.com/asr/7b7c8007-...",
  "current_price": 370.49,
  "current_price_str": "$370.49",
  "was_price": 416.48,
  "savings_str": "Save $45.99",
  "currency": "CAD",
  "average_rating": 4.6,
  "number_of_reviews": 189,
  "availability": "IN_STOCK",
  "delivery_date": "2026-06-02",
  "seller_name": "Gadget Source",
  "seller_type": "EXTERNAL",
  "badge_keys": ["REDUCED_PRICE"],
  "category_path": "Electronics > Wearable Technology > Smart Watches",
  "is_sponsored": false,
  "market": "CA"
}
```

#### Output Fields

> **Market availability**
>
> - `US, CA` — available in both markets
> - `CA only` — returns `null` for US

| Field | Type | Market | Description |
|---|---|---|---|
| `id` | string | US, CA | Walmart internal product ID |
| `us_item_id` | string | US, CA | Product page URL identifier |
| `offer_id` | string | US, CA | Offer ID |
| `seller_id` | string | US, CA | Seller unique ID |
| `name` | string | US, CA | Full product name |
| `brand` | string | CA only | Brand name. US search API does not return brand. |
| `class_type` | string | US, CA | `VARIANT` / `REGULAR` etc. |
| `short_description` | string | US, CA | Product description (may contain HTML tags) |
| `canonical_url` | string | US, CA | Full product page URL |
| `thumbnail_url` | string | US, CA | Thumbnail image URL |
| `all_images` | array | US, CA | All product image URLs. CA: full list. US: thumbnail only (API limitation). |
| `current_price` | number | US, CA | Current selling price |
| `current_price_str` | string | US, CA | Current price formatted (e.g. `"$29.98"`) |
| `was_price` | number | CA | Original price before discount. May be `null` in US. |
| `was_price_str` | string | CA | Original price formatted. May be `null` in US. |
| `savings_amount` | number | CA | Discount amount. May be `null` in US. |
| `savings_percent` | number | CA | Discount percentage. May be `null` in US. |
| `savings_str` | string | CA | Discount text (e.g. `"Save $45.99"`). May be `null` in US. |
| `currency` | string | US, CA | Currency code. `"USD"` for US, `"CAD"` for CA. |
| `average_rating` | number | US, CA | Rating score (0–5) |
| `number_of_reviews` | number | US, CA | Total review count |
| `availability` | string | US, CA | Stock status (e.g. `"IN_STOCK"`) |
| `fulfillment_type` | string | US, CA | Fulfillment type (e.g. `"FC"`, `"MARKETPLACE"`) |
| `delivery_date` | string | US, CA | Estimated delivery date (ISO 8601) |
| `order_limit` | number | CA | Maximum order quantity. May be `null` in US. |
| `seller_name` | string | US, CA | Seller name |
| `seller_type` | string | CA | `"EXTERNAL"` or `"WALMART"`. May be `null` in US. |
| `wfs_enabled` | boolean | CA | Walmart Fulfillment Services. May be `null` in US. |
| `returnable` | boolean | CA | Whether the item is returnable. May be `null` in US. |
| `free_returns` | boolean | CA | Whether returns are free. May be `null` in US. |
| `badge_keys` | array | US, CA | Badge list (e.g. `["BESTSELLER", "FF_SHIPPING"]`) |
| `variant_count` | number | CA | Number of variants. May be `null` in US. |
| `category_path` | string | US, CA | CA: human-readable (e.g. `"Electronics > Smart Watches"`). US: raw ID path (e.g. `"0:3944:1229723"`). |
| `is_sponsored` | boolean | US, CA | Whether the product is a sponsored ad |
| `market` | string | US, CA | Source market (`"US"` or `"CA"`) |

***

### Benchmarking Beyond Walmart

Walmart prices don't exist in a vacuum. If you're using this data for pricing decisions, you likely need to know what the same product costs elsewhere.

#### Resale market — [eBay Search Scraper](https://apify.com/crw/ebay-search-scraper)

Walmart shows you the retail floor. eBay shows you what buyers actually pay in the open market — including used, refurbished, and hard-to-find items that Walmart doesn't carry.

| | Walmart Products Scraper | eBay Search Scraper |
|---|---|---|
| **Pricing** | Fixed retail price, rollback deals | Auction, Buy It Now, Best Offer |
| **Condition** | New only | New, used, refurbished, parts |
| **Best for** | Retail benchmarking, inventory tracking | Resale margin analysis, collectibles |

#### Supply-side pricing — [Temu Products Scraper](https://apify.com/crw/temu-products-scraper)

Curious why certain products are cheaper on Temu than Walmart? Pull Temu listings by the same keyword for a direct price comparison.

***

### Notes

- **Markets**: `US` = walmart.com (USD), `CA` = walmart.ca (CAD). Default is `US`.
- **No authentication required.** Session cookies are automatically issued on first request.
- **Page size**: 40 per request (web default). Each page may include sponsored products.
- **Max collectible**: `max_items` is capped at 400.
- **Sponsored products** are included in results and flagged via `is_sponsored: true`. Filter them out if needed.

# Actor input Schema

## `market` (type: `string`):

Target Walmart market. US = walmart.com (USD), CA = walmart.ca (CAD).

## `keyword` (type: `string`):

The keyword to search for on Walmart (e.g. "wireless earbuds").

## `cat_id` (type: `string`):

Filter results by category (CA) or department (US). CA: copy the catId value from the walmart.ca URL (e.g. '10007' or '10007_20127'). US: copy the catId value from the walmart.com URL (e.g. '3944'). Leave empty to search across all categories.

## `sort` (type: `string`):

Sort order for search results.

## `max_items` (type: `integer`):

Maximum number of products to collect (10–100).

## Actor input object example

```json
{
  "market": "US",
  "keyword": "wireless earbuds",
  "cat_id": "",
  "sort": "best_match",
  "max_items": 40
}
```

# Actor output Schema

## `api` (type: `string`):

REST API endpoint to download the dataset programmatically.

# 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 = {
    "market": "US",
    "keyword": "wireless earbuds",
    "cat_id": "",
    "sort": "best_match",
    "max_items": 40
};

// Run the Actor and wait for it to finish
const run = await client.actor("crw/walmart-products-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 = {
    "market": "US",
    "keyword": "wireless earbuds",
    "cat_id": "",
    "sort": "best_match",
    "max_items": 40,
}

# Run the Actor and wait for it to finish
run = client.actor("crw/walmart-products-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 '{
  "market": "US",
  "keyword": "wireless earbuds",
  "cat_id": "",
  "sort": "best_match",
  "max_items": 40
}' |
apify call crw/walmart-products-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,crw/walmart-products-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/GbxPFk7GSFJJgtfbD/builds/vBABmmOKacPYld3pU/openapi.json
