# Walmart Product Scraper - Prices, Stock, Ratings (`blackfalcondata/walmart-scraper`) Actor

Scrape Walmart.com products by keyword, category URL or product link. Each record carries the full pricing picture and every size and colour variant with its own price. It also names the store the price came from, because Walmart prices differ by location.

- **URL**: https://apify.com/blackfalcondata/walmart-scraper.md
- **Developed by:** [Black Falcon Data](https://apify.com/blackfalcondata) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.90 / 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/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

### What does Walmart Product Scraper do?

Walmart Product Scraper extracts structured listing data from [walmart.com](https://walmart.com) — including full descriptions, prices, location data, and seller ratings. It supports keyword search, location filters, and controllable result limits, so you can run the same query consistently over time. The actor also offers detail enrichment (full descriptions) where the source provides them.

### How to use this actor

- 👉 **Register for a free Apify account** — no credit card required.
- 🎉 Just click **[Sign up free on Apify →](https://console.apify.com/sign-up?fpr=1h3gvi)** and complete a quick signup.
- 💰 A free Apify account includes $5 in monthly credits — enough to test this actor.
- ⏳ Scrape during the free trial, with no commitment or upfront payment required.

### Key features

- **🔎 Three ways in** — search by keyword, paste a category or search URL, or feed product links directly — all three drive the same extractor.
- **💲 Pricing in plain columns** — current price, was-price, savings amount and currency on every record, flattened instead of left nested.
- **⭐ Rating breakdown included** — star counts (5/4/3/2/1), review count, recommended percentage and how many reviews carry text.
- **📦 Stock and seller** — availability, in-stock flag, fulfilment type, seller name and seller ID — third-party marketplace sellers included.
- **🏷️ Catalogue identifiers** — UPC, model, brand and brand URL, so records join to your own catalogue without fuzzy title matching.
- **🔁 Only what changed** — incremental mode reports what is new or changed since the last run; different search settings are tracked separately.
- **🔔 Push to your channel** — Send new or changed products to Telegram, Discord, Slack, WhatsApp or your own webhook.

### What data can you extract from Walmart?

Each result includes Core listing fields (`listingId`, `listingKey`, `title`, `subtitle`, `entityName`, `category`, `subcategory`, and `location`, and more) and detail fields when enrichment is enabled (`description`, `descriptionText`, `descriptionHtml`, `descriptionMarkdown`, and `detailFetched`). In standard mode, all fields are always present — unavailable data points are returned as `null`, never omitted. In compact mode, only core fields are returned.

Enable detail enrichment in the input to get richer fields such as full descriptions where the source provides them.

### Input

The main inputs are a search keyword, an optional location filter, and a result limit. Additional filters and options are available in the input schema.

Key parameters:

- **`query`** — Listing search keywords. Required if no startUrls provided.
- **`startUrls`** — Paste raw search URLs from the target site. Each URL becomes its own search task; results are merged and deduped by listing ID across all URLs. When provided AND parseable, startUrls REPLACE the query/location fields (each URL becomes one task). Implement parseStartUrl() in src/searchTasks.ts for your target site — without it, all URLs are skipped and the actor falls back to query/location. Reference: blackfalcondata/willhaben-scraper for full per-URL parsing pattern. (default: `[]`)
- **`productUrls`** — Paste Walmart product page links (or bare item IDs) to scrape those exact products, skipping search. Each link returns one record with the full product detail. When provided, search fields are ignored. (default: `[]`)
- **`country`** — Which market to search. (default: `"US"`)
- **`maxResults`** — Maximum total results (0 = unlimited). (default: `25`)
- **`sortBy`** — Order the search results. Ignored when you paste your own Start URL — that URL already carries its own sort. (default: `"best_match"`)
- **`minPrice`** — Only products at or above this price (USD).
- **`maxPrice`** — Only products at or below this price (USD).
- **`onSaleOnly`** — Only products with a price cut. (default: `false`)
- **`inStockOnly`** — Only products available for delivery or pickup today. (default: `false`)
- **`brands`** — Limit to these brands, e.g. Ninja, Keurig. Exact brand names as Walmart spells them. (default: `[]`)
- **`includeDetails`** — Fetch full listing details. (default: `true`)
- ...and 22 more parameters

### Input examples

**Basic search** — Keyword-driven search with a result cap.

→ Full payload per result — all standard fields populated where the source provides them.

```json
{
  "query": "laptop",
  "maxResults": 50
}
```

**Incremental tracking** — Only emit listings that changed since the previous run with this `stateKey`.

→ First run builds the baseline state. Subsequent runs emit only records that are new or whose tracked content changed. Set `emitUnchanged: true` to include unchanged records as well.

```json
{
  "query": "laptop",
  "maxResults": 200,
  "incrementalMode": true,
  "stateKey": "laptop-tracker"
}
```

**Compact output for AI agents** — Return only core fields for AI-agent and MCP workflows.

→ Small payload with the most important fields — ideal for piping into LLMs without token overhead.

```json
{
  "query": "laptop",
  "maxResults": 50,
  "compact": true
}
```

### Output

Each run produces a dataset of structured listing records. Results can be downloaded as JSON, CSV, or Excel from the Dataset tab in Apify Console.

### Example listing record

```json
{
  "listingId": "48c2be7748a3145fe1de953f7352b6752c611b2c750dfcea68723f29e52bc1c2",
  "listingKey": "3479324898",
  "title": "Beautiful Perfect Grind™ Programmable Single Serve Coffee Maker with Build-In Grinder, White Icing by Drew Barrymore",
  "entityName": "Walmart.com",
  "category": "Coffee Makers",
  "subcategory": "Home",
  "description": "Exact-Xtract ™ technology extracts 2x more flavor vs Keurig Classic Model #5000068875 using Keurig’s Dunkin Donuts Original Blend Medium Roast pods at the 10oz brew cup size setting Integrated burr gr...",
  "descriptionText": "Exact-Xtract ™ technology extracts 2x more flavor vs Keurig Classic Model #5000068875 using Keurig’s Dunkin Donuts Original Blend Medium Roast pods at the 10oz brew cup size setting Integrated burr gr...",
  "descriptionHtml": "<ul>  <li>Exact-Xtract ™ technology extracts 2x more flavor vs Keurig Classic Model #5000068875 using Keurig’s Dunkin Donuts Original Blend Medium Roast pods at the 10oz brew cup size setting</li>  <l...",
  "descriptionMarkdown": "- Exact-Xtract ™ technology extracts 2x more flavor vs Keurig Classic Model #5000068875 using Keurig’s Dunkin Donuts Original Blend Medium Roast pods at the 10oz brew cup size setting\n- Integrated bur...",
  "priceText": "$109.00",
  "priceValue": 109,
  "priceCurrency": "USD",
  "listingType": "VARIANT",
  "url": "https://www.walmart.com/ip/Beautiful-Perfect-Grind-Programmable-Single-Serve-Coffee-Maker-White-Icing-by-Drew-Barrymore/3479324898?classType=VARIANT",
  "portalUrl": "https://www.walmart.com/ip/Beautiful-Perfect-Grind-Programmable-Single-Serve-Coffee-Maker-White-Icing-by-Drew-Barrymore/3479324898?classType=VARIANT",
  "imageUrl": "https://i5.walmartimages.com/seo/Beautiful-Perfect-Grind-Programmable-Single-Serve-Coffee-Maker-White-Icing-by-Drew-Barrymore_0a22182f-02df-4853-bb23-ceb42290ebb9.c8910989af95c71ffd45c495cb0391bc.jpeg...",
  "galleryUrls": [
    "https://i5.walmartimages.com/seo/Beautiful-Perfect-Grind-Programmable-Single-Serve-Coffee-Maker-White-Icing-by-Drew-Barrymore_0a22182f-02df-4853-bb23-ceb42290ebb9.c8910989af95c71ffd45c495cb0391bc.jpeg",
    "https://i5.walmartimages.com/asr/f8693472-bbd6-48f0-a9fb-f87f79be358a.94932580d355e9f740445421145ded9b.jpeg",
    "https://i5.walmartimages.com/asr/9bad9718-ac64-4822-ab67-0deb4bed6c25.d0e159d2e6a0a77f7eb079d02b44699d.jpeg",
    "https://i5.walmartimages.com/asr/3d5451e6-b3e5-4fb6-8f57-15dc7a18aad3.25537d0c21ca2803c64be9e0dac8f693.jpeg",
    "https://i5.walmartimages.com/asr/92b6415b-6652-447b-aef3-a5f3cac4d2e9.c6b19a1ba6ebd8eeccecb2ed931ca9b0.jpeg",
    "... 11 more items"
  ],
  "sellerName": "Walmart.com",
  "searchQuery": "coffee maker",
  "contentQuality": "full",
  "detailFetched": true,
  "scrapedAt": "2026-08-08T08:29:16.665Z",
  "source": "walmart.com",
  "isRepost": false,
  "itemId": "3479324898",
  "brand": "Beautiful",
  "rating": 3.8,
  "reviewCount": 4606,
  "savingsAmount": 0,
  "availability": "In stock",
  "inStock": true,
  "isSponsored": true,
  "sellerId": "F55CDC31AB754BB68FE0B39041159D63",
  "fulfillmentType": "FC",
  "categoryPath": [
    "Home",
    "Appliances",
    "Kitchen Appliances",
    "Coffee Shop",
    "Coffee Makers"
  ],
  "upc": "829486193323",
  "model": "19332",
  "brandUrl": "https://www.walmart.com/search?q=Beautiful&facet=brand:Beautiful",
  "returnPolicyText": "Free 90-day returns",
  "returnWindowDays": 90,
  "variantCount": 8,
  "ratingBreakdown": {
    "five": 2728,
    "four": 453,
    "three": 280,
    "two": 279,
    "one": 866
  },
  "recommendedPercentage": 54,
  "reviewsWithTextCount": 2148,
  "offerCount": 1,
  "secondaryOfferPrice": 94,
  "orderMinLimit": 1,
  "orderLimit": 99,
  "manufacturerProductId": "19332",
  "variants": [
    {
      "itemId": "3479324898",
      "name": "The perfect cup of coffee isn’t something reserved for coffee shops. It’s something you can have every day with the Beautiful Perfect Grind™ Single Serve Coffee Maker. Hot or iced. Whole beans or grou...",
      "options": "Actual Color: White Icing",
      "priceValue": 109,
      "availability": "IN_STOCK",
      "inStock": true,
      "url": "https://www.walmart.com/ip/Beautiful-Perfect-Grind-Programmable-Single-Serve-Coffee-Maker-White-Icing-by-Drew-Barrymore/3479324898",
      "imageUrl": "https://i5.walmartimages.com/seo/Beautiful-Perfect-Grind-Programmable-Single-Serve-Coffee-Maker-White-Icing-by-Drew-Barrymore_0a22182f-02df-4853-bb23-ceb42290ebb9.c8910989af95c71ffd45c495cb0391bc.jpeg",
      "isCurrent": true
    },
    {
      "itemId": "5150283653",
      "options": "Actual Color: Lavender",
      "priceValue": 109,
      "availability": "IN_STOCK",
      "inStock": true,
      "url": "https://www.walmart.com/ip/Beautiful-Perfect-Grind-Programmable-Single-Serve-Coffee-Maker-Lavender-by-Drew-Barrymore/5150283653",
      "imageUrl": "https://i5.walmartimages.com/seo/Beautiful-Perfect-Grind-Programmable-Single-Serve-Coffee-Maker-Lavender-by-Drew-Barrymore_8810010a-2730-4a6e-a7ed-67374369acf9.632aa681e17990dd79e329e37d313b1d.jpeg",
      "isCurrent": false
    },
    {
      "itemId": "2553065799",
      "options": "Actual Color: Black Sesame",
      "priceValue": 109,
      "availability": "IN_STOCK",
      "inStock": true,
      "url": "https://www.walmart.com/ip/Beautiful-Perfect-Grind-Programmable-Single-Serve-Coffee-Maker-Black-Sesame-by-Drew-Barrymore/2553065799",
      "imageUrl": "https://i5.walmartimages.com/seo/Beautiful-Perfect-Grind-Programmable-Single-Serve-Coffee-Maker-Black-Sesame-by-Drew-Barrymore_fb07b345-cdfd-41bc-b413-1a9a4465d4a5.092ef1eb4f658cc96143b38eb5e1537b.jpe...",
      "isCurrent": false
    },
    {
      "itemId": "7513766092",
      "options": "Actual Color: Rose",
      "priceValue": 109,
      "availability": "IN_STOCK",
      "inStock": true,
      "url": "https://www.walmart.com/ip/Beautiful-Perfect-Grind-Programmable-Single-Serve-Coffee-Maker-Rose-by-Drew-Barrymore/7513766092",
      "imageUrl": "https://i5.walmartimages.com/seo/Beautiful-Perfect-Grind-Programmable-Single-Serve-Coffee-Maker-Rose-by-Drew-Barrymore_c7b6dcb1-3299-4182-a98a-109985ad7d64.418c2cd3a811da0dc09452dd980a92d2.jpeg",
      "isCurrent": false
    },
    {
      "itemId": "2588145882",
      "options": "Actual Color: Cornflower Blue",
      "priceValue": 109,
      "availability": "IN_STOCK",
      "inStock": true,
      "url": "https://www.walmart.com/ip/Beautiful-Perfect-Grind-Programmable-Single-Serve-Coffee-Maker-Cornflower-Blue-by-Drew-Barrymore/2588145882",
      "imageUrl": "https://i5.walmartimages.com/seo/Beautiful-Perfect-Grind-Programmable-Single-Serve-Coffee-Maker-Cornflower-Blue-by-Drew-Barrymore_500cfd2f-1901-4d8a-8f3d-3bad6cfd4f36.7d4b629783d29decf803e5702bd6d81f....",
      "isCurrent": false
    },
    "... 3 more items"
  ],
  "unitOfMeasure": "EA",
  "isOnSale": false,
  "storeId": "872",
  "storeCity": "Pearland",
  "storeState": "TX",
  "storePostalCode": "77584",
  "specifications": [
    {
      "name": "Compatible form",
      "value": "Grounds"
    },
    {
      "name": "Features",
      "value": "Programmable"
    },
    {
      "name": "Finish",
      "value": "White Icing"
    },
    {
      "name": "Material",
      "value": "Stainless Steel"
    },
    {
      "name": "Number of preset cup sizes",
      "value": "6"
    },
    "... 1 more items"
  ]
}
```

### Incremental fields

When incremental mode is on, each record also carries:

- `changeType` — one of `NEW`, `UPDATED`, `UNCHANGED`, `REAPPEARED`, `EXPIRED`. Default output covers `NEW` / `UPDATED` / `REAPPEARED`; set `emitUnchanged: true` or `emitExpired: true` to opt into the others.
- `isRepost`, `repostOfId`, `repostDetectedAt` — populated when a new listing matches the tracked content of a previously expired one. Set `skipReposts: true` to drop detected reposts from the output.

### How to scrape Walmart

1. Go to [Walmart Product Scraper](https://apify.com/blackfalcondata/walmart-scraper?fpr=1h3gvi) in Apify Console.
2. Enter a search keyword and optional location filter.
3. Set `maxResults` to control how many results you need.
4. Enable `includeDetails` if you need full descriptions.
5. Click **Start** and wait for the run to finish.
6. Export the dataset as JSON, CSV, or Excel.

### Use cases

- Extract listing data from Walmart for market research and competitive analysis.
- Track pricing trends across regions and categories over time.
- Monitor new and changed listings on scheduled runs without processing the full dataset every time.
- Use structured location data for regional analysis, mapping, and geo-targeting.
- Feed structured data into AI agents, MCP tools, and automated pipelines using compact mode.
- Export clean, structured data to dashboards, spreadsheets, or data warehouses.
- Benchmark seller / dealer reputation using rating fields.

### How much does it cost to scrape Walmart?

Walmart Product Scraper uses [pay-per-event](https://docs.apify.com/platform/actors/paid-actors/pay-per-event) pricing. You pay a small fee when the run starts and then for each result that is actually produced.

- **Run start:** $0.00005 per run
- **Per result (primary event):** $0.0009

You are billed only for the events your run actually triggers. Prices below are the Free plan tier.

| Event | Price (Free tier) | Charged when |
|---|---|---|
| Actor Start | $0.00005 (one-time) | Charged when the Actor starts running. Number of events charged depends on Actor memory (one event per GB, minimum one event). |
| Result (primary) | $0.0009 | Single result in the default dataset. |
| Product detail | $0.0009 | Added when a product is enriched with its full detail page: long description, all images, full specifications, ratings breakdown and return policy. Charged only for products that were actually enriched. |

Example costs (primary event only — other events above add cost when they fire):

- 10 results: **$0.00905**
- 25 results: **$0.023**
- 100 results: **$0.09**
- 200 results: **$0.18**
- 500 results: **$0.45**

#### Example: recurring monitoring savings

These examples compare full re-scrapes with incremental runs at different churn rates. Churn is the share of listings that are new or whose tracked content changed since the previous run. Actual churn depends on your query breadth, source activity, and polling frequency — the scenarios below are examples, not predictions.

Example setup: 100 listings per run, daily polling (30 runs/month). Costs scale linearly with the number of listings.

Numbers below are for the primary **Result** event. Other events (**Product detail**) are billed separately when they fire.

| Churn rate | Full re-scrape run cost | Incremental run cost | Savings vs full re-scrape | Monthly cost after baseline |
|---|---:|---:|---:|---:|
| 5% — stable niche query | $0.09 | $0.00455 | $0.09 (95%) | $0.14 |
| 15% — moderate broad query | $0.09 | $0.01 | $0.08 (85%) | $0.41 |
| 30% — high-volume aggregator | $0.09 | $0.03 | $0.06 (70%) | $0.81 |

Full re-scrape monthly cost at the same cadence: $2.70. First month with incremental costs $0.22 / $0.48 / $0.87 for the 5% / 15% / 30% scenarios because the first run builds baseline state at full cost before incremental savings apply.

Platform usage is included in the per-result fee shown above.

### FAQ

#### How many results can I get from Walmart?

The number of results depends on the search query and available listings on Walmart. Use the `maxResults` parameter to control how many results are returned per run.

#### Does Walmart Product Scraper support recurring monitoring?

Yes. Enable incremental mode to only receive new or changed listings on subsequent runs. This is ideal for scheduled monitoring where you want to track changes over time without re-processing the full dataset.

#### Can I integrate Walmart Product Scraper with other apps?

Yes. Walmart Product Scraper works with Apify's [integrations](https://apify.com/integrations?fpr=1h3gvi) to connect with tools like Zapier, Make, Google Sheets, Slack, and more. You can also use webhooks to trigger actions when a run completes.

#### Can I use Walmart Product Scraper with the Apify API?

Yes. You can start runs, manage inputs, and retrieve results programmatically through the [Apify API](https://docs.apify.com/api/v2). Client libraries are available for JavaScript, Python, and other languages.

#### Can I use Walmart Product Scraper through an MCP Server?

Yes. Apify provides an [MCP Server](https://apify.com/apify/actors-mcp-server?fpr=1h3gvi) that lets AI assistants and agents call this actor directly. Use compact mode, `descriptionMaxLength`, a single `descriptionFormat`, and `excludeEmptyFields` to keep payloads manageable for LLM context windows.

#### Is it legal to scrape Walmart?

This actor extracts publicly available data from Walmart. Web scraping of public information is generally considered legal, but you should always review the target site's terms of service and ensure your use case complies with applicable laws and regulations, including GDPR where relevant.

#### Your feedback

If you have questions, need a feature, or found a bug, please [open an issue](https://apify.com/blackfalcondata/walmart-scraper/issues?fpr=1h3gvi) on the actor's page in Apify Console. Your feedback helps us improve.

### You might also like

- [🚗 mobile.de \[$0.6/1K💰\] Fast Scraper · Finance · Dealer GPS](https://apify.com/blackfalcondata/mobile-de-scraper?fpr=1h3gvi) — Scrape mobile.de — Germany's largest car marketplace (1.4M+ listings) at $0.6 / 1,000 results. Get.
- [ALDI Scraper — Grocery Prices, 14 Countries](https://apify.com/blackfalcondata/aldi-scraper?fpr=1h3gvi) — Scrape ALDI grocery products and prices across 14 countries — the UK, Ireland, Germany, Austria,.
- [ALDI US Scraper — Grocery Prices by ZIP Code](https://apify.com/blackfalcondata/aldi-us-scraper?fpr=1h3gvi) — Scrape aldi.us grocery products with prices, sizes, brands, categories, per-unit pricing and stock..
- [AutoScout24 \[Just 💰$0.8\] — European Cars + Dealer Data](https://apify.com/blackfalcondata/autoscout24-scraper?fpr=1h3gvi) — 💰 $0.8 per 1,000 cars. Scrape autoscout24.com — Europe's largest used-car marketplace covering.
- [Autotrader AU \[$0.9💰\] Car & Caravan Scraper 🇦🇺](https://apify.com/blackfalcondata/autotrader-au-scraper?fpr=1h3gvi) — Scrape autotrader.com.au car & caravan listings — advertised + previous price with a computed.
- [AutoTrader Canada — used car listings](https://apify.com/blackfalcondata/autotrader-ca-scraper?fpr=1h3gvi) — Scrape autotrader.ca — filter by make model year & price · full vehicle specs with listing photos ·.
- [Autotrader UK \[$0.75💰/1K\] - Car Scraper, Full Detail](https://apify.com/blackfalcondata/autotrader-uk-scraper?fpr=1h3gvi) — Scrape UK car listings from Auto Trader by make, model, price, year, mileage, fuel, and body type..
- [Bilbasen — Denmark's Car Marketplace](https://apify.com/blackfalcondata/bilbasen-scraper?fpr=1h3gvi) — Scrape bilbasen.dk — Denmark's largest car marketplace with full vehicle specs · seller contacts ·.

### Getting started with Apify

New to Apify? [Create a free account with $5 credit](https://console.apify.com/sign-up?fpr=1h3gvi) — no credit card required.

1. Sign up — $5 platform credit included
2. Open this actor and configure your input
3. Click **Start** — export results as JSON, CSV, or Excel

Need more later? [See Apify pricing](https://apify.com/pricing?fpr=1h3gvi).

### Disclaimer

This actor accesses only publicly available data on walmart.com. You are responsible for how you use the extracted data — in particular any personal information such as names, phone numbers, or email addresses — and for complying with Walmart Product's terms of use, applicable data-protection law (including the GDPR where it applies), and the anti-spam rules of your jurisdiction.

This actor is not affiliated with, endorsed by, or connected to Walmart Product.

### Search keywords

walmart scraper, walmart api, apify walmart, walmart data extraction, walmart product scraper, walmart product api, apify walmart product, walmart product data extraction, walmart.com scraper, walmart.com data, walmart.com api.

# Actor input Schema

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

Listing search keywords. Required if no startUrls provided.

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

Paste raw search URLs from the target site. Each URL becomes its own search task; results are merged and deduped by listing ID across all URLs. When provided AND parseable, startUrls REPLACE the query/location fields (each URL becomes one task). Implement parseStartUrl() in src/searchTasks.ts for your target site — without it, all URLs are skipped and the actor falls back to query/location. Reference: blackfalcondata/willhaben-scraper for full per-URL parsing pattern.

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

Paste Walmart product page links (or bare item IDs) to scrape those exact products, skipping search. Each link returns one record with the full product detail. When provided, search fields are ignored.

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

Which market to search.

## `maxResults` (type: `integer`):

Maximum total results (0 = unlimited).

## `sortBy` (type: `string`):

Order the search results. Ignored when you paste your own Start URL — that URL already carries its own sort.

## `minPrice` (type: `integer`):

Only products at or above this price (USD).

## `maxPrice` (type: `integer`):

Only products at or below this price (USD).

## `onSaleOnly` (type: `boolean`):

Only products with a price cut.

## `inStockOnly` (type: `boolean`):

Only products available for delivery or pickup today.

## `brands` (type: `array`):

Limit to these brands, e.g. Ninja, Keurig. Exact brand names as Walmart spells them.

## `includeDetails` (type: `boolean`):

Fetch full listing details.

## `descriptionMaxLength` (type: `integer`):

Truncate description to N chars. 0 = no truncation.

## `compact` (type: `boolean`):

Core fields only (for AI-agent/MCP workflows).

## `incrementalMode` (type: `boolean`):

Compare against the previous run and report what is new or changed. Runs with different search settings are tracked separately, so they never overwrite each other.

## `stateKey` (type: `string`):

Optional. Stable identifier for the tracked search universe. Leave empty to auto-generate from search inputs.

## `skipReposts` (type: `boolean`):

When incremental, skip listings whose content matches an expired listing from a prior run (cross-run duplicate detection).

## `telegramToken` (type: `string`):

Telegram bot token (from @BotFather). Required for Telegram notifications.

## `telegramChatId` (type: `string`):

Telegram chat or channel ID (e.g. "-100123456789"). Required when telegramToken is set.

## `discordWebhookUrl` (type: `string`):

Discord incoming webhook URL. Server Settings → Integrations → Webhooks → New Webhook.

## `slackWebhookUrl` (type: `string`):

Slack incoming webhook URL. api.slack.com/messaging/webhooks.

## `notificationLimit` (type: `integer`):

Maximum number of listings included in each notification message (1–20).

## `notifyOnlyChanges` (type: `boolean`):

When Incremental Mode is on, only send notifications for NEW and UPDATED listings. Has no effect outside incremental mode.

## `whatsappAccessToken` (type: `string`):

WhatsApp Cloud API permanent access token (System User token from Meta Business). Recipient must have messaged the business number within the last 24h (service-conversation window — free since Nov 2024).

## `whatsappPhoneNumberId` (type: `string`):

Your WhatsApp Business phone-number ID (numeric, from Meta dashboard). Required when whatsappAccessToken is set.

## `whatsappTo` (type: `string`):

Recipient phone in E.164 format without + (e.g. "436641234567"). Recipient must have messaged your business number within last 24h.

## `webhookUrl` (type: `string`):

Receives a JSON POST with {metadata, items} after each run. Universal escape hatch for n8n / Make / Zapier / custom backends.

## `webhookHeaders` (type: `object`):

Optional JSON object of custom headers (e.g. {"Authorization":"Bearer ..."}).

## `appConnector` (type: `string`):

Optional. Pick a connected app under Settings → API & Integrations to receive your results (including any contact details). Best-effort across MCP connectors as Apify expands its catalog.

## `mcpIssueTeam` (type: `string`):

Only when the connected app is an issue tracker: the team (name or ID) the summary issue is created under, if that app requires one.

## `descriptionFormat` (type: `string`):

Pick a single description representation. `all` keeps every variant; `text` / `html` / `markdown` drop the others.

## `excludeEmptyFields` (type: `boolean`):

Drop null, empty-string, and empty-array fields from each record before push. Smaller payloads for AI agents and dashboards.

## `emitUnchanged` (type: `boolean`):

When incremental mode is on, also emit listings whose content has not changed since the last run.

## `emitExpired` (type: `boolean`):

When incremental mode is on, also emit listings that were seen before but are no longer found.

## Actor input object example

```json
{
  "query": "laptop",
  "startUrls": [],
  "productUrls": [],
  "country": "US",
  "maxResults": 5,
  "sortBy": "best_match",
  "onSaleOnly": false,
  "inStockOnly": false,
  "brands": [],
  "includeDetails": true,
  "descriptionMaxLength": 0,
  "compact": false,
  "incrementalMode": false,
  "skipReposts": false,
  "notificationLimit": 5,
  "notifyOnlyChanges": false,
  "descriptionFormat": "all",
  "excludeEmptyFields": false,
  "emitUnchanged": false,
  "emitExpired": false
}
```

# Actor output Schema

## `results` (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 = {
    "query": "laptop",
    "productUrls": [],
    "maxResults": 5,
    "onSaleOnly": false,
    "inStockOnly": false,
    "includeDetails": false,
    "descriptionFormat": "all",
    "excludeEmptyFields": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("blackfalcondata/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 = {
    "query": "laptop",
    "productUrls": [],
    "maxResults": 5,
    "onSaleOnly": False,
    "inStockOnly": False,
    "includeDetails": False,
    "descriptionFormat": "all",
    "excludeEmptyFields": False,
}

# Run the Actor and wait for it to finish
run = client.actor("blackfalcondata/walmart-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 '{
  "query": "laptop",
  "productUrls": [],
  "maxResults": 5,
  "onSaleOnly": false,
  "inStockOnly": false,
  "includeDetails": false,
  "descriptionFormat": "all",
  "excludeEmptyFields": false
}' |
apify call blackfalcondata/walmart-scraper --silent --output-dataset

```

## MCP server setup

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