Walmart Product API
The Walmart Product API endpoint returns detailed information about a Walmart product.
curl --request GET \
--url "https://api.scraperapi.com/structured/walmart/product?\
api_key=API_KEY&product_id=PRODUCT_ID&country_code=COUNTRY_CODE&tld=TLD"import requests
payload = {
"api_key": "API_KEY",
"product_id": "PRODUCT_ID",
"country_code": "COUNTRY_CODE",
"tld": "TLD"
}
r = requests.get('https://api.scraperapi.com/structured/walmart/product', params=payload)
print(r.text)
import fetch from 'node-fetch';
fetch(
'https://api.scraperapi.com/structured/walmart/product?api_key=API_KEY&product_id=PRODUCT_ID&country_code=COUNTRY_CODE&tld=TLD'
)
.then(response => response.json())
.then(data => {
console.log(data);
})
.catch(error => {
console.error(error);
});Supported Parameters
Parameters
Details
API_KEY (required)
Your API Key.
PRODUCT_ID (required)
Walmart Product id. You can find the product ID in the URL. Example: 5253396052 (/ip/5253396052)
TLD
Top-level Walmart domain to scrape: com (walmart.com) ca (walmart.ca)
COUNTRY_CODE
Valid values are two letter country codes for which we offer Geo Targeting (e.g. “au”, “es”, “it”, etc.). You can find the full list here.
OUTPUT_FORMAT
For structured data methods we offer CSV and JSON output. JSON is default if parameter is not added. Options:
csv
json (default)
Sample Response
{
"product_name": "AT&T Samsung Galaxy S24 Ultra Titanium Violet 512GB",
"product_description": "Do more with the most epic Galaxy yet. Capture every detail of your candlelight meal with impressive Nightography and zoom in to see the live violinist playing across the room.Once you’re back in your hotel, elevate your pics from good to great right on your Galaxy S24 Ultra. You can even use your built in S Pen to add fun doodles before posting. Unleash new ways to create, connect and more with Galaxy S24 Ultra. Epic, just like that.",
"brand": "SAMSUNG",
"image": "https://i5.walmartimages.com/seo/AT-T-Samsung-Galaxy-S24-Ultra-Titanium-Violet-512GB_784b47ee-bfb7-4543-af9d-5406c37ffed5.fa51da09222008a396f35c6e245e2e2a.jpeg",
"offers": [
{
"url": "https://www.walmart.com/ip/AT-T-Samsung-Galaxy-S24-Ultra-Titanium-Violet-512GB/5253396052",
"availability": "InStock",
"available_delivery_method": "OnSitePickup",
"item_condition": "NewCondition"
}
]
}Last updated

