# Walmart Category Scraper (`fastdataapi/walmart-category-scraper`) Actor

Walmart Category Scraper scrapes Walmart.com and Walmart.ca category products in bulk: price, rating, review count, brand, availability, variations and sponsored flag, with store, ZIP and state localisation. Export JSON, CSV or Excel, or use the API.

- **URL**: https://apify.com/fastdataapi/walmart-category-scraper.md
- **Developed by:** [Fast Data API](https://apify.com/fastdataapi) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.67 / 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/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 Category Scraper — Price, Rating, Brand, Stock and Sponsored Flag

Walmart Category Scraper pulls every product listed in a Walmart.com or Walmart.ca category: title, current and original price, star rating, written-review count, brand, availability, seller, image and sponsored flag. Every response is structured JSON — ready to pass directly to an LLM, index into a vector store, or feed a pricing or catalog-monitoring pipeline. No Walmart account or cookies needed. Start with one category id, then scale to every department you track.

![Walmart Category Scraper - hero image: what it collects and the JSON output](https://api.apify.com/v2/key-value-stores/Lg9lp51Levfro6SrV/records/aa-walmart-category-hero.webp)

***

### What data can I extract with Walmart Category Scraper?

Using this Walmart Category API, you will be able to extract the following Walmart product data:

| 🏷️ Title | 💲 Current & original price | ⭐ Rating (average + count) | 🏬 Availability |
|---|---|---|---|
| 📝 Description | 🏢 Brand | 🛒 Seller (+ seller id) | 📣 Sponsored flag |
| 💬 Written-review count | 🖼️ Image | 🔀 Variations (size/color options) | 🆔 Catalog id |
| 📂 Category id & name | | | |

***

### How to use Walmart Category Scraper

Anyone who tracks Walmart pricing, assortment or competitor catalogs can run this actor and get every product in a category back as clean JSON in one call.

**Copy to your AI assistant:**

```text
fastdataapi/walmart-category-scraper is an Apify Actor that returns Walmart category products as structured JSON: title, current and original price, currency, star rating and rating count, written-review count, brand, seller, availability, sponsored flag, image and size/color variations. Use it whenever someone needs Walmart category data without cookies, a login, or a browser - price monitoring, catalog/assortment tracking, and competitor research. Run it with curl: curl -X POST "https://api.apify.com/v2/acts/fastdataapi~walmart-category-scraper/run-sync-get-dataset-items?token=APIFY_TOKEN" -H "Content-Type: application/json" -d '{"categoryIds": ["3944"], "maxItems": 20, "country": "US", "sort": "price_low"}'. Or in Python: ApifyClient("APIFY_TOKEN").actor("fastdataapi/walmart-category-scraper").call(run_input={"categoryIds": ["3944"], "maxItems": 20}) then client.dataset(run["defaultDatasetId"]).list_items().items. Inputs: categoryIds (array, Walmart category ids such as 3944), urls (array, full category links), maxItems (integer, products per category/URL, default 20), country ("US" | "CA", default "US"), sort ("best_match" | "price_low" | "price_high" | "best_seller" | "top_rated"), minPrice/maxPrice (number), refinement (facet token such as brand:Apple), excludeSponsored (boolean), zipCode/state/storeId (store localisation), includeBrand/includeReviewsCount/strictPriceFilter (boolean, default true), page/cursor (continue a previous run). Walmart lists at most ~1,000 products per category (25 pages); the output reports the real total found. Full input schema, every enum and default, and the complete output field list: GET https://api.apify.com/v2/acts/fastdataapi~walmart-category-scraper/builds/default
```

#### Walmart Category Scraper MCP Server: use these Actors from ChatGPT, Claude or Cursor

Point your AI assistant at this actor and it can read Walmart category data on its own. No glue code, no scraping logic in your prompts.

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=fastdataapi/walmart-category-scraper"
```

#### Step by step

1. [Create a free Apify account](https://console.apify.com/sign-up).
2. Open [Walmart Category Scraper](https://apify.com/fastdataapi/walmart-category-scraper) in the Apify Store.
3. Enter a Walmart category id or category URL.
4. Click **Start**.
5. Download or stream your results in JSON, CSV or Excel.

#### How to scale Walmart Category Scraper to bulk

`categoryIds` and `urls` both take an array — one id or link per line, each returning its own products up to `maxItems`. Mix category ids from walmart.com with full walmart.ca links in the same run; each input keeps its own filters (sort, price range, facet) when they are carried in its URL. For a full category beyond one page, leave `maxItems` higher or pass the `cursor` from a previous run's `pagination.next_cursor` to continue exactly where it left off.

***

### ✨ Features

Walmart Category Scraper fetches clean, structured products from Walmart ⚡ at low cost 💸. It's ideal for daily price monitoring, assortment/catalog audits, competitor research and feeding product data to AI shopping agents. It extracts, per product:

- **Current & original price** – what the product costs now and its regular price, with currency
- **Rating** – average star rating and number of ratings
- **Written-review count** – how many reviews include text, separate from the star-rating count
- **Brand** – filled from the product page, since Walmart never includes it in category rows
- **Sponsored flag** – marks paid-placement rows so you can filter them out
- **Variations** – linked size/color/configuration options with their own ids and URLs

⚡ Localises results to a store by ZIP code, state or store id, and filters out sponsored placements on request.

***

### Use cases 💡

- **Pricing analyst** — track current vs. original price across a category every day.
- **Catalog manager** — audit brand and availability coverage for a department.
- **Competitor researcher** — compare assortment and pricing between Walmart categories.
- **Shopping agent builder** — feed live product JSON (price, rating, stock) to an LLM-based shopping assistant.

Building an AI agent? [Connect Walmart Category Scraper over MCP](#walmart-category-scraper-mcp-server-use-these-actors-from-chatgpt-claude-or-cursor) and let it call the actor on its own.

***

### Why choose this actor?

1. **Every category input gets its own full page of results.** A recorded run returned 5 products from one category in 16.5 seconds, with price, rating, brand and image already filled.
2. **More than a bare listing.** A recorded Electronics category item came back with brand, a 4.6 average rating over 15,794 ratings, 2,213 written reviews and 3 linked configuration variations in one row.
3. **Sponsored rows, handled.** The sponsored flag on every row plus an `excludeSponsored` filter — on the same run, turning it on dropped 9 extra paid-placement rows out of 49 while still delivering the full count requested.

***

### ⬇️ Input

![Walmart Category Scraper input form with example values](https://api.apify.com/v2/key-value-stores/Lg9lp51Levfro6SrV/records/aa-walmart-category-input.webp)

Enter one or more Walmart category ids or category URLs; at least one of `categoryIds` / `urls` is required.

| Parameter | Required | Type | Description | Example value |
|---|---|---|---|---|
| categoryIds | one of categoryIds/urls | array | Walmart category ids, one per line | `["3944"]` |
| urls | one of categoryIds/urls | array | Full Walmart category links (filters in the link are kept) | `["https://www.walmart.com/browse/electronics/3944"]` |
| maxItems | no | integer | Products per category id/URL, 1–1000, default 20 | `20` |
| country | no | string | `US` (walmart.com) or `CA` (walmart.ca), default `US` | `US` |
| sort | no | string | `best_match` | `price_low` | `price_high` | `best_seller` | `top_rated`, default `best_match` | `price_low` |
| minPrice / maxPrice | no | number | Price range to keep | `20` / `200` |
| refinement | no | string | A facet token from the category (e.g. `brand:Apple`) | `brand:Apple` |
| excludeSponsored | no | boolean | Drop paid-placement rows, default `false` | `true` |
| zipCode | no | string | Localise to the nearest store (US) | `90210` |
| state | no | string | Localise to a store in this US state (used if zipCode is empty) | `CA` |
| storeId | no | string | A specific Walmart store id | `3081` |
| includeBrand | no | boolean | Fill brand from the product page, default `true` | `true` |
| includeReviewsCount | no | boolean | Fill written-review count, default `true` | `true` |
| strictPriceFilter | no | boolean | Also drop rows outside minPrice/maxPrice, default `true` | `true` |
| page / cursor | no | integer / string | Continue an earlier run | `1` / `""` |
| proxyConfiguration | no | object | Optional proxy to start with | `{"useApifyProxy": false}` |

#### Example input

```json
{
  "categoryIds": ["3944"],
  "urls": [],
  "maxItems": 20,
  "country": "US",
  "sort": "price_low",
  "minPrice": 20,
  "maxPrice": 200,
  "refinement": "",
  "excludeSponsored": true,
  "zipCode": "90210",
  "state": "",
  "storeId": "",
  "includeBrand": true,
  "includeReviewsCount": true,
  "strictPriceFilter": true,
  "page": 1,
  "cursor": "",
  "proxyConfiguration": {"useApifyProxy": false}
}
```

#### Free plan limits

Users on the Apify free plan can fetch up to 20 products per run (all categories/URLs together)
and 200 products per month. When the limit is reached the run finishes successfully with a
status message explaining the limit. Upgrade to any paid Apify plan to remove these limits.

***

### ⬆️ Output

![Walmart Category Scraper output fields with example values](https://api.apify.com/v2/key-value-stores/Lg9lp51Levfro6SrV/records/aa-walmart-category-output.webp)

Every product is one typed, normalized JSON item with the same schema on every run. Export your results as JSON, CSV or Excel.

#### Example output

```json
{
  "id": "17852302051",
  "url": "https://www.walmart.com/ip/PlayStation-5-Digital-Console-Slim/17852302051?classType=VARIANT",
  "title": "PlayStation 5 Digital Console Slim - 825GB",
  "description": "PlayStation 5 Digital Console Slim - 825GB",
  "seller": "Walmart.com",
  "brand": "PlayStation",
  "price": {"current": 599, "original": null, "currency": "USD"},
  "rating": {"average": 4.6, "count": 15794},
  "image_urls": "https://i5.walmartimages.com/seo/PlayStation-5-Digital-Console-Slim_3d7b0255.png",
  "availability": "In stock",
  "reviews_count": 2213,
  "sponsored": false,
  "variations": [
    {"id": "17852302051", "title": "PS5 Digital", "url": "https://www.walmart.com/ip/PlayStation-5-Digital-Console-Slim/17852302051", "category": "configuration"}
  ],
  "seller_id": "F55CDC31AB754BB68FE0B39041159D63",
  "catalog_id": "3SHEG52U9MFA",
  "category_id": "3944",
  "category_name": "Electronics",
  "search_query": "3944",
  "scraped_at": "2026-11-15T16:28:49+00:00"
}
```

***

### How does it work?

Walmart Category Scraper reads the same public category pages and data endpoints any visitor's browser loads when they browse a Walmart category — no account, login or cookies needed. Requests go out directly; if Walmart's bot protection refuses one, the actor switches to a rotating proxy and keeps going. It returns only publicly visible data — the same prices, ratings and stock status shown to any shopper. The output schema stays stable and normalized even when Walmart changes its page layout.

***

### How do you integrate Walmart Category Scraper into your stack?

Walmart Category Scraper works with what you already use: a REST API from any language, MCP for AI agents, and no-code automation tools.

#### Using Walmart Category Scraper with the Apify API

```python
import requests

resp = requests.post(
    "https://api.apify.com/v2/acts/fastdataapi~walmart-category-scraper/run-sync-get-dataset-items",
    params={"token": "APIFY_TOKEN"},
    json={"categoryIds": ["3944"], "maxItems": 20, "sort": "price_low"},
)
for item in resp.json():
    print(item["title"], item["price"]["current"])
```

*Works in Go, Ruby, Node.js, cURL — any language that can make an HTTP request.*

#### MCP integration for AI agents

```bash
claude mcp add --transport http apify "https://mcp.apify.com?tools=fastdataapi/walmart-category-scraper"
```

This registers Walmart Category Scraper as a tool your agent can call directly. Works with Claude Code, Cursor and Windsurf.

#### No-code tools (n8n, Make, LangChain)

In n8n, use the Apify node's "Run an Actor" action, or the HTTP Request node pointed at the run-sync endpoint with your token. In Make, use the Apify app's "Run an Actor" module, then "Get Dataset Items". In LangChain, install `langchain-apify` and use `ApifyActorsTool("fastdataapi/walmart-category-scraper")`.

***

### Is it legal to scrape Walmart data?

Scraping publicly available web data is generally considered legal, as confirmed by cases such as hiQ Labs v. LinkedIn. Walmart Category Scraper returns only publicly available data — the same prices, ratings and stock status any shopper sees without logging in. Scraping public data is generally permissible under GDPR, but storing and using it must still comply with local data-protection law. Consult legal counsel if your use case involves bulk storage of personal data.

***

### Frequently asked questions

#### What fields does Walmart Category Scraper return?

Price (current and original), star rating, written-review count, brand, availability and the sponsored flag, among others. See [the data fields section](#what-data-can-i-extract-with-walmart-category-scraper).

#### Does Walmart Category Scraper require a Walmart account or login?

No. Only public category and product-page data is extracted. No credentials needed.

#### How fast does Walmart Category Scraper run?

A recorded run returned 5 products from one category in 16.5 seconds (cold start). Data is read live on every run, never cached.

#### What happens if a category id doesn't exist?

The run reports a clean error for that entry ("category has no products - check the id and country") instead of failing the whole run; other categories in the same run still complete.

#### Can I scrape multiple Walmart categories at once?

Yes. `categoryIds` and `urls` both take an array — add as many category ids or links as you need in one run, each with its own `maxItems`.

#### Does Walmart Category Scraper work with Claude, ChatGPT, and other AI agent tools?

Yes — Walmart Category Scraper is available as an MCP tool. Use the command above to register it in Claude Code, Cursor or Windsurf. Any agent that can call an HTTP endpoint can use the REST API directly.

#### Does Walmart Category Scraper return data in a format LLMs can use directly?

Yes. Typed, normalized JSON with consistent field names. No HTML parsing, no selectors. Pass it straight to an LLM, index it into a vector store, or feed it to an agent tool.

#### What happens when Walmart changes its layout or updates its anti-bot system?

This actor is maintained and updated. When Walmart changes its site, the actor is updated — your calls keep returning the same JSON schema with no changes on your end.

#### Can I use Walmart Category Scraper without managing proxies or browser infrastructure?

Yes. Proxy rotation and anti-bot handling run on the actor's side. You send one request and get structured JSON back — no proxy accounts, no browser setup, no maintenance.

#### Which Walmart Category Scraper fields work best for AI training data and RAG indexing?

For RAG: the description, title and brand. For training data: price, rating, rating count and written-review count — all typed primitives (strings, numbers, booleans), no normalization needed.

***

### Your feedback

Found a bug or missing a field? Let us know through the actor's Issues tab. We read every report and ship fixes.

# Actor input Schema

## `categoryIds` (type: `array`):

Walmart category ids, one per line (e.g. 3944 or 3944_1089430 for a sub-category).

## `urls` (type: `array`):

Walmart category links, one per line (e.g. https://www.walmart.com/browse/electronics/3944). Filters already in the link (sort, facet, min/max price) are kept.

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

How many products to return for EACH category id and EACH category URL. Walmart lists at most ~1,000 products per category (25 pages). Free plan: up to 20 products per run (all inputs together) and 200 per month; paid plans have no limit.

## `country` (type: `string`):

Walmart.com (US) or Walmart.ca (Canada). A category URL's own domain overrides this for that input.

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

Order of the category results.

## `minPrice` (type: `number`):

Lowest price to include (must be below Max price).

## `maxPrice` (type: `number`):

Highest price to include (must be above Min price).

## `refinement` (type: `string`):

A facet token from the category (e.g. brand:Apple, or brand:Apple||retailer_type:Walmart for several). The run log lists a few available tokens for each category.

## `excludeSponsored` (type: `boolean`):

Drop the paid-placement products Walmart mixes into category results.

## `zipCode` (type: `string`):

Localise results (price, stock) to the Walmart store nearest this ZIP code (US) or postal code (CA, store localisation not supported by Walmart for anonymous CA requests).

## `state` (type: `string`):

Localise to a store in this US state (used only if ZIP code is empty).

## `storeId` (type: `string`):

A specific Walmart store id to localise to (overrides ZIP / state).

## `includeBrand` (type: `boolean`):

Fill the brand field from each product's page (Walmart never includes it in category rows).

## `includeReviewsCount` (type: `boolean`):

Fill reviews_count (written reviews, separate from the star-rating count) from Walmart's review summary.

## `strictPriceFilter` (type: `boolean`):

Also drop rows whose price lies outside Min price / Max price (Walmart's own facet is approximate).

## `page` (type: `integer`):

Category results start at this page (use with cursor empty).

## `cursor` (type: `string`):

pagination.next_cursor from a previous run's output – continues exactly where it left off (takes priority over Start page).

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

Optional proxy to start with.

## Actor input object example

```json
{
  "categoryIds": [
    "3944"
  ],
  "maxItems": 20,
  "country": "US",
  "sort": "best_match",
  "excludeSponsored": false,
  "includeBrand": true,
  "includeReviewsCount": true,
  "strictPriceFilter": true,
  "page": 1,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `pricing` (type: `string`):

No description

## `details` (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 = {
    "categoryIds": [
        "3944"
    ],
    "maxItems": 20,
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("fastdataapi/walmart-category-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 = {
    "categoryIds": ["3944"],
    "maxItems": 20,
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("fastdataapi/walmart-category-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 '{
  "categoryIds": [
    "3944"
  ],
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call fastdataapi/walmart-category-scraper --silent --output-dataset

```

## MCP server setup

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