Walmart Product Scraper avatar

Walmart Product Scraper

Pricing

from $2.00 / 1,000 products

Go to Apify Store
Walmart Product Scraper

Walmart Product Scraper

Pricing

from $2.00 / 1,000 products

Rating

0.0

(0)

Developer

Dmytro Kolomiiets

Dmytro Kolomiiets

Maintained by Community

Actor stats

0

Bookmarked

1

Total users

0

Monthly active users

a month ago

Last modified

Categories

Features

Limited permissions

Share

What is Walmart Product Scraper?

Walmart Product Scraper gets product data from Walmart.com for a list of product URLs or IDs. For each product you get the price, discount, stock status, rating, number of reviews, seller, brand, category, images, variants and specifications.

Results can be downloaded as JSON, CSV, Excel or HTML, or fetched through the API. Proxies are included, so there is nothing to set up.

What data does it return?

ProductPrice and stockReviews and sellerContent
Product IDCurrent priceAverage ratingMain image
NameWas price (before discount)Reviews countAll images
BrandCurrencySeller nameShort description
UPCAvailability statusSeller IDVariants with their own price, stock and images
ModelIn stock (true / false)Specifications
Category pathRaw product JSON (optional)

Common uses are tracking prices and discounts over time, checking who sells a product and whether it's in stock, and filling a catalog with UPCs, specs and images.

How to use it

  1. Click Try for free and sign in to Apify (or create a free account).
  2. Paste Walmart product URLs or IDs into Products, one per line.
  3. Click Start.
  4. When the run finishes, open the Output tab to preview or export the data.

To check prices every day, add a Schedule in Apify Console.

How much does it cost?

You pay per product returned. The current rate is on the Pricing tab, and proxy costs are already included. Products that couldn't be scraped and lines that aren't a valid product URL or ID still get a row in the output, with an error message, but they aren't charged.

Apify's free plan comes with monthly credits, which is enough to try it on your own products. To cap the cost of a run, set Max items.

Input

FieldDescription
ProductsWalmart product URLs or IDs. Duplicates are removed. Lines that aren't a Walmart product URL or ID are skipped and listed in the output with an error.
Include raw product JSONAdds the full product data from the page as rawData. Makes each item much larger.
Max itemsStop after this many products. Leave empty for no limit.
Max concurrencyHow many products are scraped at the same time. Default: 10.
Max retries per productHow many times to retry a product before giving up. Default: 10.

Any of these formats works:

https://www.walmart.com/ip/Coca-Cola-Classic-Soda-Pop-12-fl-oz-Cans-24-Pack/10535216
https://www.walmart.com/ip/10535216
10535216

Example input:

{
"products": [
"https://www.walmart.com/ip/Coca-Cola-Classic-Soda-Pop-12-fl-oz-Cans-24-Pack/10535216",
"10535216"
],
"includeRawData": false,
"maxItems": 100
}

Output

One dataset item per product:

{
"productId": "10535216",
"url": "https://www.walmart.com/ip/Coca-Cola-Classic-Soda-Pop-12-fl-oz-Cans-24-Pack/10535216",
"input": "https://www.walmart.com/ip/10535216",
"productExists": true,
"error": null,
"name": "Coca-Cola Classic Soda Pop, 12 fl oz Cans, 24 Pack",
"brand": "Coca-Cola",
"price": 13.48,
"wasPrice": 14.98,
"currency": "USD",
"availability": "IN_STOCK",
"inStock": true,
"rating": 4.7,
"reviewsCount": 5123,
"sellerName": "Walmart.com",
"sellerId": "…",
"upc": "…",
"model": "…",
"category": ["Food", "Beverages"],
"shortDescription": "…",
"imageUrl": "https://i5.walmartimages.com/...",
"images": ["https://i5.walmartimages.com/..."],
"variantGroups": [
{
"id": "count_per_pack",
"name": "Count Per Pack",
"type": "DROPDOWN",
"values": [
{ "id": "count_per_pack-12", "name": "12", "available": true, "selected": false, "productIds": ["12166733"] },
{ "id": "count_per_pack-24", "name": "24", "available": true, "selected": true, "productIds": ["10535216"] }
]
}
],
"variants": [
{
"productId": "12166733",
"variantId": "3Q6I9QW7WKR7",
"url": "https://www.walmart.com/ip/Coca-Cola-Classic-Coke-12-ct-144-fl-oz/12166733",
"selected": false,
"options": { "Count Per Pack": "12" },
"availability": "IN_STOCK",
"inStock": true,
"price": 7.68,
"wasPrice": 8.57,
"currency": "USD",
"unitPrice": "5.3 ¢/fl oz",
"condition": "New",
"imageUrl": "https://i5.walmartimages.com/seo/...",
"images": ["https://i5.walmartimages.com/seo/..."]
}
],
"specifications": [{ "name": "Size", "value": "12 oz" }],
"rawData": null
}

input is the line you entered for this product, so you can match results to your list.

variantGroups lists the options a shopper picks from (size, color, pack count…). variants has one entry per buyable variant with its own ID, price, stock and images; selected: true marks the product you asked for.

If a product no longer exists on Walmart, you still get an item for it, with productExists: false and the other fields empty.

If a product couldn't be scraped, its row has productExists: null and an error explaining why:

{
"productId": "10535216",
"input": "https://www.walmart.com/ip/10535216",
"productExists": null,
"error": "Couldn't load the product page after all retries. Try again later or raise Max retries per product."
}

API

Run the Actor and get the results in one request:

curl -X POST "https://api.apify.com/v2/acts/houzeir~walmart-product-scraper/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>" \
-H "Content-Type: application/json" \
-d '{"products": ["10535216"]}'

Python (apify-client):

from apify_client import ApifyClient
client = ApifyClient("<YOUR_API_TOKEN>")
run = client.actor("houzeir/walmart-product-scraper").call(run_input={"products": ["10535216"]})
for product in client.dataset(run["defaultDatasetId"]).iterate_items():
print(product["name"], product["price"])

JavaScript (apify-client):

import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: '<YOUR_API_TOKEN>' });
const run = await client.actor('houzeir/walmart-product-scraper').call({ products: ['10535216'] });
const { items } = await client.dataset(run.defaultDatasetId).listItems();

You can also connect it to Google Sheets, Slack, Zapier, Make and other tools from the Integrations tab, or call a webhook when a run finishes.

FAQ

The Actor only collects public product data. It doesn't log in or collect personal data. Scraping public data is generally legal, but you're responsible for how you use it. See Is web scraping legal?, and ask a lawyer if you're unsure.

What if some products fail?

Every product you enter gets a row in the output. Products that couldn't be scraped have an error instead of data, and the run's status message says how many failed. To retry them, filter the output by error, then run the Actor again with their input values, or raise Max retries per product.

Products that are out of stock are still returned, with inStock: false.

Can I scrape search results or categories?

No, only product URLs and IDs for now. If you need search or category pages, open an issue.

Which store's prices do I get?

The prices and availability a US visitor sees on walmart.com for the default store. Other stores or ZIP codes can have different prices.

Feedback

Found a bug or need another field? Open an issue on the Issues tab.