Build a Walmart price tracker for price drops and stock alerts

Walmart prices move. Rollbacks come and go, marketplace sellers reprice, and stock runs out. If you sell the same products, buy for resale, or just want one thing at the right price, checking the product pages by hand doesn't scale past a handful of items.
What you want is a list of products, checked on a schedule, that tells you only what changed. Here's how I set that up, and what Walmart's data looks like up close.
What to watch for
- Prices are local. Walmart shows prices, pickup and delivery text for a default store (currently a Sacramento, CA store). Prices in your own store can differ.
- Marketplace sellers are mixed in. Many results are sold by third-party sellers, not Walmart.
isWalmartSellerandsellerNametell you which, which matters if you're tracking a competitor. - Sponsored tiles rotate. Ads change between visits, so a monitor that counted them would report "new" products every run. They are flagged
isSponsoredand skipped in monitor modes. - About 40 products per results page. I measured 37-54 after de-duplication, and Walmart serves at most 25 pages (about 1,000 products) per search.
- Brand isn't on search tiles.
brandis filled only when product details are on. - Some tiles have no price. I saw it on 1 of 40 TV results (a bundle listing). Product details fill it in.
- US only. It reads walmart.com, not walmart.ca or other countries, and no review text.
Getting the data
I packaged this as an Apify Actor, Walmart Scraper. A tracked product URL comes back with full details, like this (trimmed):
{
"usItemId": "20223605761",
"name": "DAIVOS 5QT Air Fryer with Viewing Window, 12 Cooking Presets, 1500W Fast , Even Cooking",
"brand": "DAIVOS",
"price": 59.39,
"wasPrice": 99.99,
"currency": "USD",
"rating": 4.6,
"reviewCount": 112,
"availability": "In stock",
"inStock": true,
"sellerName": "Hongti Technology",
"isWalmartSeller": false,
"sellerRating": 4.875,
"badges": ["In 500+ people's carts", "Deal"],
"upc": "731555379906",
"model": "AFT05018",
"returnPolicy": "Free 90-day returns",
"changeType": null,
"previousPrice": null
}
changeType and previousPrice are null on a normal run. In monitor mode they say what changed.
Tracking specific products
Paste the product URLs you care about and turn on changes mode:
curl -X POST "https://api.apify.com/v2/acts/rjmacarthy~walmart-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"productUrls": [
"https://www.walmart.com/ip/Ninja-Crispi-Glass-Air-Fryer/20054074604",
"https://www.walmart.com/ip/20223605761"
],
"monitorMode": "changes",
"stateKey": "my-tracked-products"
}'
Then:
- The first run outputs every product and saves it as the baseline under
stateKey. - Schedule it in Apify, daily or hourly.
- Later runs output only products that changed, with
changeTypeset toprice_drop,price_increase,out_of_stockorback_in_stock, andpreviousPricefor price changes. - Send the rows to Slack, email or a sheet with a webhook or a Make, Zapier or n8n step.
The datasets of your scheduled runs form a price history.
Tracking a search or category
You can monitor keywords or searchUrls the same way, with sort (best_match, price_low, price_high or best_seller) and minPrice / maxPrice in US dollars. The monitor watches the top maxItems positions, so set it to the range you care about (40 is page 1). Use new mode if you only want products that weren't there before.
Pricing
Pay per event, no run fee beyond Apify's $0.00005 start event:
- $0.0008 per product row, so 1,000 search products cost about $0.80 (about 25 results pages).
- $0.003 extra per product whose page was opened for details. Every
productUrlsrow includes details, so a tracked product costs $0.0038. - Tracking 20 product URLs is about $0.076 on the first run. After that, in
changesmode, you only pay for rows that changed. - Details that fail to load are not charged.
On the free Apify plan each run is limited to 5 page requests (about 200 search products, or fewer with details). Any paid plan removes the limit. You can also set a maximum cost per run.
It reads public product pages only, with no login and no personal data.