The Walmart Scraper is a cutting-edge tool designed to extract valuable product information from Walmart's extensive online catalog. This powerful scraper empowers businesses to gather comprehensive data on products, prices, and consumer trends, providing a strategic advantage in the competitive retail landscape.
Data Category | Examples |
---|---|
Product Information | Title, description, SKU, UPC, brand |
Pricing Details | Initial price, final price, discounts, currency |
Customer Feedback | Ratings, review count, top reviews, review tags |
Visual Content | Main image, additional images |
Product Specifications | Features, dimensions, materials, color options |
Categorization | Breadcrumbs, category IDs, related categories |
Availability | In-stock status, delivery options, pickup options |
Our Walmart Scraper is an invaluable tool for various industries, including:
The Walmart Scraper API allows you to extract detailed product information from Walmart.com. This powerful tool enables developers to integrate Walmart product data into their applications, conduct market research, or monitor pricing and trends across various categories.
To use the Walmart Scraper API, you'll need to authenticate your requests using your API key. The API provides three endpoints for retrieving product information:
Include your API key in the request headers:
Authorization: Bearer YOUR_API_KEY
The request body should be a JSON object with the following structure:
// For products endpoint
{
"url": "https://www.walmart.com/ip/product-id"
}
// For category-products endpoint
{
"url": "https://www.walmart.com/browse/category-url"
}
// For products-by-keyword endpoint
{
"keyword": "search term"
}
Please note that usage is subject to rate limiting. Refer to your plan details for specific limits.
Here's an example of the data you can expect to receive when using the products endpoint:
[
{
"input": {
"url": "https://www.walmart.com/ip/Hershey-s-Kit-Kat-And-Reese-s-Assorted-Flavored-Candy-Party-Pack-33-38-oz/466623588"
},
"url": "https://www.walmart.com/ip/Hershey-s-Kit-Kat-And-Reese-s-Assorted-Flavored-Candy-Party-Pack-33-38-oz/466623588",
"final_price": 13.24,
"sku": "466623588",
"currency": "USD",
"gtin": "034000399918",
"specifications": [
{
"name": "Food Allergen Statements",
"value": "Contains Peanuts, Soy, and MSG; Manufactured in a facility that processes tree nuts, milk, and eggs."
},
{
"name": "Brand",
"value": "Hershey's, KITKAT and REESE'S"
},
{
"name": "Assembled Product Weight",
"value": "39.12 oz"
},
{
"name": "Assembled Product Dimensions (L x W x H)",
"value": "3.97 x 6.87 x 11.01 Inches"
}
],
"image_urls": [
"https://i5.walmartimages.com/seo/Hershey-s-Kit-Kat-And-Reese-s-Assorted-Flavored-Candy-Party-Pack-33-38-oz_0f649c0f-612c-4308-899c-4ec2069f6ebc.fab2eccde6443bef42161220bb8e9d69.jpeg",
// ... more image URLs
],
"top_reviews": {
"negative": {
"rating": 1,
"review": "I ordered a 33.3oz and received a 31.59 oz"
},
"positive": {
"rating": 4,
"review": "I like everything in the bag except the reese's pieces\nToo many"
}
},
"rating_stars": {
"one_star": 17,
"three_stars": 3,
"four_stars": 6,
"five_stars": 43
},
"related_pages": [
"https://www.walmart.com/browse/food/hersheys/976759_1096070_1241359_5233905",
// ... more related pages
],
"available_for_delivery": true,
"available_for_pickup": true,
"brand": "Hershey's, KITKAT and REESE'S",
"breadcrumbs": [
{
"url": "https://www.walmart.com/cp/food/976759",
"name": "Food"
},
// ... more breadcrumbs
],
"category_ids": "0:976759:1096070:1224976:2323697",
"review_count": 69,
"description": "Contains one (1) 33.38-ounce bulk party pack of HERSHEY'S, KIT KAT and REESE'S Assorted Milk Chocolate and Peanut Butter Miniatures Candy...",
"product_id": "466623588",
"product_name": "Hershey's, Kit Kat and Reese's Assorted Flavored Candy, Party Pack 33.38 oz",
"review_tags": [],
"category_url": "https://www.walmart.com/cp/chocolate/1224976",
"category_name": "Shop All Chocolate",
"category_path": "/cp/shop-all-chocolate/2323697",
"root_category_url": "https://www.walmart.com/cp/food/976759",
"root_category_name": "Food",
"upc": "034000399918",
"tags": [
"Popular pick"
],
"main_image": "https://i5.walmartimages.com/seo/Hershey-s-Kit-Kat-And-Reese-s-Assorted-Flavored-Candy-Party-Pack-33-38-oz_0f649c0f-612c-4308-899c-4ec2069f6ebc.fab2eccde6443bef42161220bb8e9d69.jpeg",
"rating": 3.8,
"unit_price": 0.397,
"unit": "oz",
"aisle": "A23",
"free_returns": "Free 90-day returns",
"sizes": [],
"colors": [],
"seller": "Walmart.com",
"other_attributes": [
{
"name": "Instructions",
"value": "Miniatures Chocolate Assortment"
},
{
"name": "Safe Handling Instructions",
"value": "Miniatures Chocolate Assortment"
}
],
"customer_reviews": [
{
"name": "wizcomom",
"title": "Great little snacks",
"review": "These were really enjoyed",
"rating": 5
},
// ... more customer reviews
],
"nutrition_information": [
{
"name": "Calories",
"value": "140",
"dvp": null
},
// ... more nutrition information
],
"ingredients": "SUGAR, PARTIALLY DEFATTED PEANUTS, HYDROGENATED VEGETABLE OIL (PALM KERNEL OIL, SOYBEAN OIL), CORN SYRUP SOLIDS, DEXTROSE, CONTAINS 2% OR LESS OF: PALM KERNEL OIL, CORN SYRUP, SALT, ARTIFICIAL COLOR (INCLUDING YELLOW 5 LAKE, YELLOW 6 LAKE, RED 40 LAKE, BLUE 1 LAKE), MODIFIED CORNSTARCH, CONFECTIONER'S GLAZE, LECITHIN (SOY), VANILLIN (ARTIFICIAL FLAVOR), CARNAUBA WAX, MILK.",
"ingredients_full": [
{
"type": "Ingredients",
"values": "SUGAR, PARTIALLY DEFATTED PEANUTS, HYDROGENATED VEGETABLE OIL (PALM KERNEL OIL, SOYBEAN OIL), CORN SYRUP SOLIDS, DEXTROSE, CONTAINS 2% OR LESS OF: PALM KERNEL OIL, CORN SYRUP, SALT, ARTIFICIAL COLOR (INCLUDING YELLOW 5 LAKE, YELLOW 6 LAKE, RED 40 LAKE, BLUE 1 LAKE), MODIFIED CORNSTARCH, CONFECTIONER'S GLAZE, LECITHIN (SOY), VANILLIN (ARTIFICIAL FLAVOR), CARNAUBA WAX, MILK."
}
],
"categories": [
"Food",
"Candy",
"Chocolate",
"Shop All Chocolate"
]
}
]
import requests
import json
# Your API Key
api_key = 'YOUR_API_KEY'
# API Endpoint
url = 'https://taskagi.net/api/ecommerce/walmart-scraper/products'
# Headers
headers = {
'Authorization': f'Bearer {api_key}',
'Content-Type': 'application/json'
}
# Request Body
data = {
'url': 'https://www.walmart.com/ip/Hershey-s-Kit-Kat-And-Reese-s-Assorted-Flavored-Candy-Party-Pack-33-38-oz/466623588'
}
# Send POST request
response = requests.post(url, headers=headers, json=data)
# Check if the request was successful
if response.status_code == 200:
# Parse the JSON response
product_data = response.json()
# Print the product information
print(json.dumps(product_data, indent=2))
else:
print(f"Error: {response.status_code}")
print(response.text)