# Walmart Scraper - Product Prices, Stock & Reviews

> Scrape Walmart.com products by keyword, category URL, product URL or item ID: price, was-price, unit price, stock, pickup/delivery, seller (Walmart vs marketplace), UPC/GTIN, variants, specs, images, ratings and optional reviews. Fast HTTP, no browser, auto-retries blocked requests.

- Category: E-commerce & reviews
- Price: $3.50 per 1,000 × product with full details, billed per result by Apify (no subscription); any other billed events are listed on the Store page. Cap any run with `maxTotalChargeUsd`.
- Store page: https://apify.com/wrenfield-data/walmart-product-scraper?fpr=qx6tzs
- Human page: https://wrenfielddata.com/tools/walmart-product-scraper/
- OpenAPI 3 spec: https://api.apify.com/v2/acts/wrenfield-data~walmart-product-scraper/builds/default/openapi.json
- MCP tool: https://mcp.apify.com?tools=wrenfield-data/walmart-product-scraper (appears as `wrenfield-data--walmart-product-scraper`)

## Call it

Synchronous run that returns the dataset rows as JSON (use `/runs` for long jobs and poll; see the OpenAPI spec):

```bash
curl -X POST \
  "https://api.apify.com/v2/acts/wrenfield-data~walmart-product-scraper/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"searchKeywords": ["coffee"], "startUrls": [{"url": "https://www.walmart.com/browse/food/coffee/976759_1086446"}], "productIds": ["578550306"], "maxItems": 5, "maxItemsPerQuery": 40, "includeDetails": true, "sort": "best_match", "includeReviews": false, "maxReviewsPerProduct": 20, "reviewsSort": "relevancy", "proxyConfiguration": {"useApifyProxy": true}, "residentialFallback": true, "maxConcurrency": 10, "maxRetries": 8}'
```

## Input

| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| `searchKeywords` | array |  |  | Keywords to search on Walmart.com, one per line (e.g. coffee, air fryer). Each keyword returns up to Max products per search/category products. |
| `startUrls` | array |  |  | Walmart URLs: category pages (/browse/..., /cp/...), search result pages with filters (/search?q=...), brand/shop pages, or product pages (/ip/...). |
| `productIds` | array |  |  | Walmart item IDs (the number at the end of a product URL, e.g. 578550306) or full /ip/ product URLs, one per line. |
| `maxItems` | integer |  | `50` | Maximum number of product rows for the whole run (reviews are not counted). Duplicate products across keywords/categories are skipped automatically. |
| `maxItemsPerQuery` | integer |  | `40` | How many products to take from each keyword or category URL. Walmart shows about 40 products per page and up to 25 pages (about 1,000 products) per search. |
| `includeDetails` | boolean |  | `true` | Open each product page for brand, UPC/GTIN, specifications, variants, description, all images, seller details and pickup/delivery options. Turn off for a faster, cheaper listing-only scrape (title, price, rating, seller, availability from the search grid). |
| `sort` | string |  | `"best_match"` | Sort order for keyword searches and category pages. |
| `minPrice` | integer |  |  | Only products at or above this price (search and category pages). |
| `maxPrice` | integer |  |  | Only products at or below this price (search and category pages). |
| `zipCode` | string |  |  | Optional 5-digit US ZIP code. Prices, stock, delivery dates and the pickup store (Walmart picks the nearest store) are returned for this ZIP. Every product row includes the location Walmart actually used, so you can verify it. Leave empty for Walmart's default location for the proxy IP. |
| `includeReviews` | boolean |  | `false` | Also scrape customer reviews for every product (output rows with type = review). |
| `maxReviewsPerProduct` | integer |  | `20` | Reviews are loaded 10 per page. |
| `reviewsSort` | string |  | `"relevancy"` | Order of the reviews. |
| `proxyConfiguration` | object |  | `{"useApifyProxy": true}` | Defaults to Apify datacenter proxy. Choose the RESIDENTIAL group to use US residential IPs for the whole run. The Actor stays on the proxy you choose: if Walmart blocks it, it backs off and stops early with the results collected so far (no automatic switch to another proxy). |
| `maxConcurrency` | integer |  | `10` | Parallel requests. |
| `maxRetries` | integer |  | `8` | Each blocked page is retried with a new IP and browser fingerprint, with backoff. |

## Example input

```json
{
  "searchKeywords": [
    "coffee"
  ],
  "startUrls": [
    {
      "url": "https://www.walmart.com/browse/food/coffee/976759_1086446"
    }
  ],
  "productIds": [
    "578550306"
  ],
  "maxItems": 5,
  "maxItemsPerQuery": 40,
  "includeDetails": true,
  "sort": "best_match",
  "includeReviews": false,
  "maxReviewsPerProduct": 20,
  "reviewsSort": "relevancy",
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "residentialFallback": true,
  "maxConcurrency": 10,
  "maxRetries": 8
}
```

## Output fields

One flat row per result:

| Field | Type | Description |
|---|---|---|
| `type` | string | Row type: product, review or error (errors are free) |
| `itemId` | string | Walmart item ID (usItemId) |
| `productId` | string | Walmart catalog product ID |
| `title` | string | Product title |
| `brand` | string | Brand |
| `url` | string | Product URL |
| `price` | number | Current price |
| `wasPrice` | number | Previous price (strike-through) |
| `listPrice` | number | List price |
| `unitPrice` | number | Price per unit |
| `unitPriceString` | string | Unit price as shown, e.g. 50.0 ¢/oz |
| `unitOfMeasure` | string | Unit of measure |
| `currency` | string | Currency |
| `savingsAmount` | number | Savings vs was-price |
| `rating` | number | Average rating 1-5 |
| `reviewCount` | integer | Number of ratings/reviews |
| `sellerId` | string | Seller ID |
| `sellerName` | string | Seller name |
| `sellerType` | string | WALMART (1P) or MARKETPLACE (3P) |
| `fulfilledByWalmart` | boolean | Sold or fulfilled by Walmart (WFS) |
| `offerCount` | integer | Number of offers for the item |
| `availability` | string | IN_STOCK, OUT_OF_STOCK, ... |
| `inStock` | boolean | In stock |
| `shipping` | object | Shipping option: available, date, price, label |
| `pickup` | object | Store pickup option: store, date, aisle |
| `delivery` | object | Delivery-from-store option |
| `location` | object | ZIP / store Walmart used for price and availability |
| `image` | string | Main image URL |
| `images` | array | All image URLs |
| `categories` | array | Category breadcrumb |
| `upc` | string | UPC |
| `gtin14` | string | GTIN-14 (UPC zero-padded) |
| `model` | string | Model number |
| `variants` | array | Variants with item ID, attributes, price, availability |
| `specifications` | object | Specifications name -> value |
| `description` | string | Long description (plain text) |
| `shortDescription` | string | Short description |
| `badges` | array | Badges, e.g. Rollback, Best seller |
| `isSponsored` | boolean | Sponsored placement in search |
| `detailsScraped` | boolean | True when the product page was scraped (full details) |
| `source` | object | Where the product came from: search/category/product input, page, position |
| `reviewId` | string | Review ID |
| `text` | string | Review text |
| `date` | string | Review date (YYYY-MM-DD) |
| `userNickname` | string | Reviewer nickname |
| `verifiedPurchase` | boolean | Verified purchase |
| `error` | string | Error message for type = error |
| `scrapedAt` | string | Scrape time (UTC) |

## Notes

- Auth: an Apify API token as `Authorization: Bearer <token>`; the MCP server also supports OAuth sign-in.
- Failed or empty results are not charged on most tools; check the pricing on the Store page.
- Questions: hello@wrenfielddata.com
- Apify Store links on this page are referral links. They may earn us a commission, at no extra cost to you.
