Walmart Search Scraper avatar

Walmart Search Scraper

Pricing

from $15.00 / 1,000 results

Go to Apify Store
Walmart Search Scraper

Walmart Search Scraper

Scrapes product listings from Walmart search results including title, price, rating, reviews, seller, and more.

Pricing

from $15.00 / 1,000 results

Rating

5.0

(1)

Developer

ScrapeAI

ScrapeAI

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

7 hours ago

Last modified

Share

Walmart Search Scraper πŸ›οΈ

A high-performance Walmart product scraper built with Playwright and the Apify SDK. Scrapes Walmart search results and extracts complete product data including list page information and detailed product specifications from individual product pages.

Features ✨

  • πŸ” Search Walmart using keywords with flexible search URLs
  • πŸ“‹ Extract product list data: position, title, price, rating, review count, thumbnail, and link
  • πŸ”— Automatic tracking URL decoding for /sp/track?rd=... links
  • πŸ“„ Deep product detail extraction from individual product pages
  • πŸ“Š Complete product data merge: list data + detail specifications
  • ⚑ Multi-page pagination support with configurable item limits
  • πŸ”„ Auto-retry on failed requests (up to 2 retries per URL)
  • 🌐 Proxy rotation using Apify Proxy (optional)
  • πŸ’Ύ Redux state extraction for accurate detail data
  • πŸ–ΌοΈ Image collection from product pages (up to 40 per product)
  • ⭐ Rating and review count extraction from aria-labels
  • πŸ“€ Dataset output compatible with JSON, CSV, and Excel export via Apify
  • πŸ‘» Headless browser support (configurable)

How It Works πŸ› οΈ

  1. Set your search URLs and parameters in the Actor input
  2. The scraper navigates to Walmart search result pages
  3. Extracts product list items
  4. Stores list data temporarily in memory
  5. Navigates to each product detail page (up to maxItems)
  6. Extracts product specifications from Redux state and DOM
  7. Merges list + detail data and outputs complete product records
  8. Handles pagination automatically until reaching maxItems limit

Input Parameters πŸ“

ParameterTypeDescriptionDefault
startUrlsobject[]Array of URLs to search (e.g., https://www.walmart.com/search?q=laptop)Required
maxItemsintegerMaximum products to extract per search50
includeDetailsbooleanExtract detailed product information from detail pagestrue
proxyConfigurationobjectApify proxy config (groups, country, etc.)Optional

Input Example

{
"startUrls": [
{
"url": "https://www.walmart.com/search?q=laptop"
},
{
"url": "https://www.walmart.com/search?q=gaming+monitor"
}
],
"maxItems": 50,
"includeDetails": true,
"proxyConfiguration": {
"useApifyProxy": true,
"apifyProxyGroups": ["RESIDENTIAL"]
}
}

Output πŸ“Š

Each product result is saved as a separate dataset item with merged list and detail data.

FieldDescription
positionProduct rank/position on search page (1-based)
titleProduct title from search result
priceProduct price from detail page (finalPrice)
ratingAverage rating (e.g., 4.5)
reviewCountTotal number of reviews
linkOriginal tracking URL from search result
thumbnailProduct thumbnail image URL
listPageUrlThe search page URL
productUrlDecoded product detail page URL
detailsObject containing detailed product information

Details Object

FieldDescription
titleFull product title from detail page
brandProduct brand/manufacturer
modelProduct model number/name
finalPriceProduct price with formatting
ratingAverage star rating
reviewCountNumber of customer reviews
availabilityStock status (In stock / Out of stock)
descriptionProduct description text
sellerNameSelling merchant name
shippingInfoShipping details
returnPolicyReturn policy text
highlightsArray of product highlights/features
specificationsObject of product specifications
imagesArray of product image URLs (up to 40)
rawReduxExistsBoolean indicating if Redux data was available

Output Example

{
"position": 1,
"title": "Lenovo IdeaPad 5 16\" Touchscreen 2-in-1 Laptop",
"price": "$679.00",
"rating": 4.5,
"reviewCount": 730,
"link": "https://www.walmart.com/sp/track?rd=...",
"thumbnail": "https://i5.walmartimages.com/seo/product-image.jpeg",
"listPageUrl": "https://www.walmart.com/search?q=laptop",
"productUrl": "https://www.walmart.com/ip/Lenovo-IdeaPad-5-16-Touchscreen-2-in-1-Laptop-Ryzen-7-16GB-1TB-SSD-83DS0056US/13186557746",
"details": {
"title": "Lenovo IdeaPad 5 16\" Touchscreen 2-in-1 Laptop, Ryzen 7, 16GB, 1TB SSD",
"brand": "Lenovo",
"model": "IdeaPad 5",
"finalPrice": "$679.00",
"rating": 4.5,
"reviewCount": 730,
"availability": "In stock",
"description": "Powerful performance with AMD Ryzen processor...",
"sellerName": "Walmart",
"shippingInfo": "Free 2-day shipping on orders over $35",
"returnPolicy": "Free 30-day returns",
"highlights": [
"16-inch FHD touchscreen display",
"AMD Ryzen 7 processor",
"16GB RAM for multitasking",
"1TB SSD for fast storage"
],
"specifications": {
"Processor": "AMD Ryzen 7",
"RAM": "16GB",
"Storage": "1TB SSD",
"Display": "16-inch FHD"
},
"images": [
"https://i5.walmartimages.com/asr/image1.jpeg",
"https://i5.walmartimages.com/asr/image2.jpeg"
],
"rawReduxExists": true
}
}

Proxy Configuration 🌐

For best results, use the RESIDENTIAL proxy group to avoid blocks:

{
"proxyConfiguration": {
"useApifyProxy": true,
"apifyProxyGroups": ["RESIDENTIAL"]
}
}

Note: When running locally, Apify Proxy requires a proxy password or an APIFY_TOKEN environment variable.

Use Cases πŸ’‘

  • πŸ›’ E-commerce price monitoring and competitor analysis
  • πŸ“Š Product data aggregation and catalog building
  • πŸ’° Price comparison and market research
  • πŸ“ˆ Trend analysis on product availability and ratings
  • 🏷️ Deal discovery and price tracking
  • πŸ“± Mobile app data feeds
  • πŸ€– Machine learning datasets for product classification

Anti-Detection Measures πŸ›‘οΈ

  • Masks navigator.webdriver to avoid bot detection
  • Uses Apify RESIDENTIAL proxies for real IP rotation
  • Random delays between scroll and navigation actions
  • Blocks heavy media resources to reduce fingerprint
  • Automatic retry on timeout or network errors
  • Session rotation on repeated failures

Running Locally

# Install dependencies
npm install
# Run the scraper
npm start

Reads input from INPUT.json when no Actor input is provided.

INPUT.json Example

{
"startUrls": [
{
"url": "https://www.walmart.com/search?q=laptop"
}
],
"maxItems": 50,
"includeDetails": true
}