# Walmart Scraper | Enterprise Grade (`fatihtahta/walmart-scraper`) Actor

Scrape structured product data from Walmart.com including prices, brands, ratings, stock availability and more. Ideal for price tracking, catalog enrichment, or market research. Fast, reliable, and export-ready.

- **URL**: https://apify.com/fatihtahta/walmart-scraper.md
- **Developed by:** [Fatih Tahta](https://apify.com/fatihtahta) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 51 total users, 10 monthly users, 88.0% runs succeeded, 7 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.70 / 1,000 product listings

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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 web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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 Scraper | $1 / 1k | Fast & Reliable

**Slug:** `fatihtahta/walmart-scraper`\
**Price:** **$1.00 per 1,000 saved products**

Turn any Walmart search, category, or product collection into a structured product feed you can trust. Whether you are tracking competitors, updating your catalog, or analyzing assortment coverage, this actor delivers clean, normalized Walmart product data at scale.

***

### 💡 Why choose this Walmart scraper?

- **Comprehensive coverage** – Capture products from search results, curated lists, or direct item URLs in one run.
- **Structured product data** – Every record is standardized so it drops straight into spreadsheets, BI tools, or apps without manual cleanup.
- **Flexible targeting** – Mix and match keywords, departments, or exact URLs to pinpoint the Walmart products you care about.
- **Fast turnaround** – Optimized for quick execution even when you request thousands of items.
- **Ready to export** – Download results in JSON, CSV, Excel, or connect via API.

Perfect for **price monitoring**, **assortment comparisons**, **catalog enrichment**, and **market research** teams that rely on reliable Walmart data.

***

### 📥 Input configuration

Configure the actor from the **Input** tab. Key fields include:

- `startUrls` *(array of strings)* — Walmart search, category, or product page URLs to process.
- `query` *(string, optional)* — Keyword phrase to run through Walmart search.
- `limit` *(integer, optional, default `50000`)* — Cap the total number of items for the entire run.

***

### 🧪 Example input

```
{
  "startUrls": [
    "https://www.walmart.com/browse/electronics/laptops/3944_3951_1089430"
  ],
  "query": "2 in 1 laptop",
  "limit": 300
}
```

***

### 📦 Output

Each saved dataset row is a normalized Walmart `product` record. Standard runs save the core product fields available from Walmart result pages. When `enrich_data` is enabled, the same record shape is used and richer detail fields are added when available.

Key output groups:

- `record_id`, `product_id`, `walmart_item_id`, `name`, `brand`, `url` – Product identity and stable IDs.
- `pricing` – Numeric price, source display price, currency, unit price, was price, savings, and reduced-price signals when enriched.
- `availability` – Walmart availability status and source availability code when enriched.
- `metrics` – Rating and review counts.
- `media` – Product image URLs, including detail-page image galleries when enriched.
- `seller` – Seller name, source seller ID, seller type, storefront, and seller rating details when available.
- `fulfillment` – Walmart fulfillment and shipping labels, plus pickup/shipping/delivery options when enriched.
- `policies` – Return policy details when enriched.
- `attributes` – Optional enriched details such as descriptions, condition, UPC, badges, variants, promotions, order limits, eligibility flags, category path, highlights, and specifications.
- `source_context` – Source domain, search or URL scope, saved timestamp, result-section metadata, enrichment status, and additional Walmart source IDs.

Example enriched record:

```json
{
  "record_type": "product",
  "record_id": "387147270",
  "url": "https://www.walmart.com/ip/Miracle-Gro-Garden-Soil-All-Purpose-For-In-Ground-Use-1-5-cu-ft/387147270",
  "product_id": "6XW7QUMP16W5",
  "walmart_item_id": "387147270",
  "name": "Miracle-Gro Garden Soil All Purpose, For In-Ground Use, 1.5 cu. ft.",
  "brand": "Miracle-Gro",
  "availability": {
    "status": "In stock"
  },
  "pricing": {
    "current_price": 8,
    "display_price": "$8.00",
    "currency": "USD"
  },
  "metrics": {
    "average_rating": 4.6,
    "review_count": 3421
  },
  "media": {
    "primary_image_url": "https://i5.walmartimages.com/seo/Miracle-Gro-Garden-Soil-All-Purpose-For-In-Ground-Use-1-5-cu-ft_d425b210-8838-4383-8b70-0ba41792b2e8.f5e36161fc079dd420a1551f84c6b73a.jpeg"
  },
  "seller": {
    "name": "Walmart.com",
    "seller_id": "F55CDC31AB754BB68FE0B39041159D63"
  },
  "fulfillment": {
    "fulfillment_type": "FC"
  },
  "attributes": {
    "short_description": "Grow bigger, more beautiful plants with Miracle-Gro Garden Soil All Purpose.",
    "description": "Grow bigger, more beautiful plants with Miracle-Gro Garden Soil All Purpose.",
    "product_type": "UNKNOWN",
    "condition": "New",
    "upc": "032247035958",
    "badges": [
      {
        "text": "Best seller",
        "type": "LABEL"
      }
    ],
    "variants": [
      {
        "name": "Pack Size",
        "options": [
          {
            "name": "Single",
            "selected": true
          }
        ]
      }
    ]
  },
  "source_context": {
    "source_domain": "walmart.com",
    "source_url": "https://www.walmart.com/search?query=garden+soil",
    "loaded_url": "https://www.walmart.com/search?query=garden+soil",
    "search_query": "garden soil",
    "scraped_at": "2026-06-14T09:08:12.683Z",
    "result_stack": {
      "id": 0,
      "name": "SBE_EMM_1",
      "title": "Results for \"garden soil\"",
      "type": "DEFAULT"
    },
    "external_ids": {
      "offer_id": "4358651AC3AF42D9A24D2FB5976BDCA3",
      "primary_shelf_id": "2074623"
    },
    "enrichment": {
      "enabled": true,
      "status": "enriched"
    }
  }
}
```

> Output downloads are available as JSON, CSV, Excel, or via the Apify API.

***

### 🚀 How to run the actor

1. **Open** **Walmart Scraper | $1 / 1k | Fast & Reliable** on Apify.\
   *(Slug: `fatihtahta/walmart-scraper`)*
2. **Configure** your `startUrls`, `query`, limits, and enrichment setting in the **Input** tab.
3. **Start** the actor.
4. **Monitor** progress in the Run console.
5. **Download** the dataset from the Storage tab in your preferred format.

***

### 💰 Pricing

- **$1.00 per 1,000 saved products.**
- Billing is based solely on the number of items stored in the dataset.

***

### ⚖️ Responsible use

This actor collects information that is publicly available on Walmart. Depending on your jurisdiction, saved data may be considered personal or proprietary. Ensure you have a lawful basis for processing, follow Walmart's terms, and comply with relevant regulations (GDPR, CCPA, etc.).

***

### ❓ Support & custom requests

Need help, have feature requests, or want a tailored workflow? Open an issue in the **Issues** tab on the actor page and it will be resolved around the clock.

Happy scraping,
**Fatih**

# Actor input Schema

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

Paste one or more Walmart search, category, or product page URLs.

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

Keyword phrase to search for directly on Walmart.

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

Only return products priced at or above this value (USD).

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

Only return products priced at or below this value (USD).

## `enrich_data` (type: `boolean`):

Enable this for more complete product listings. This may make the run slower because the actor may spend more time collecting details for each result. Turn it off for faster runs when the standard result fields are enough.

## `limit` (type: `integer`):

Stop the run after this number of listings has been saved.

## Actor input object example

```json
{
  "startUrls": [
    "https://www.walmart.com/search?query=garden+soil&min_price=0&max_price=2"
  ],
  "enrich_data": false,
  "limit": 50000
}
```

# Actor output Schema

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

Normalized Walmart product records saved by this run.

# 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 = {
    "startUrls": [
        "https://www.walmart.com/search?query=garden+soil&min_price=0&max_price=2"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("fatihtahta/walmart-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 = { "startUrls": ["https://www.walmart.com/search?query=garden+soil&min_price=0&max_price=2"] }

# Run the Actor and wait for it to finish
run = client.actor("fatihtahta/walmart-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 '{
  "startUrls": [
    "https://www.walmart.com/search?query=garden+soil&min_price=0&max_price=2"
  ]
}' |
apify call fatihtahta/walmart-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/GZpshlNbNjgh3vXIb/builds/6fcuoJUnOgrZARLVY/openapi.json
