Walmart Search Scraper
Pricing
from $15.00 / 1,000 results
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
Maintained by CommunityActor stats
0
Bookmarked
2
Total users
1
Monthly active users
7 hours ago
Last modified
Categories
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 π οΈ
- Set your search URLs and parameters in the Actor input
- The scraper navigates to Walmart search result pages
- Extracts product list items
- Stores list data temporarily in memory
- Navigates to each product detail page (up to
maxItems) - Extracts product specifications from Redux state and DOM
- Merges list + detail data and outputs complete product records
- Handles pagination automatically until reaching
maxItemslimit
Input Parameters π
| Parameter | Type | Description | Default |
|---|---|---|---|
startUrls | object[] | Array of URLs to search (e.g., https://www.walmart.com/search?q=laptop) | Required |
maxItems | integer | Maximum products to extract per search | 50 |
includeDetails | boolean | Extract detailed product information from detail pages | true |
proxyConfiguration | object | Apify 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.
| Field | Description |
|---|---|
position | Product rank/position on search page (1-based) |
title | Product title from search result |
price | Product price from detail page (finalPrice) |
rating | Average rating (e.g., 4.5) |
reviewCount | Total number of reviews |
link | Original tracking URL from search result |
thumbnail | Product thumbnail image URL |
listPageUrl | The search page URL |
productUrl | Decoded product detail page URL |
details | Object containing detailed product information |
Details Object
| Field | Description |
|---|---|
title | Full product title from detail page |
brand | Product brand/manufacturer |
model | Product model number/name |
finalPrice | Product price with formatting |
rating | Average star rating |
reviewCount | Number of customer reviews |
availability | Stock status (In stock / Out of stock) |
description | Product description text |
sellerName | Selling merchant name |
shippingInfo | Shipping details |
returnPolicy | Return policy text |
highlights | Array of product highlights/features |
specifications | Object of product specifications |
images | Array of product image URLs (up to 40) |
rawReduxExists | Boolean 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_TOKENenvironment 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.webdriverto 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 dependenciesnpm install# Run the scrapernpm 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}