Walmart Reviews API
This endpoint will retrieve reviews for a specified product from a Walmart reviews page and transform it into usable JSON.
curl --request GET \
--url "https://api.scraperapi.com/structured/walmart/review?\
api_key=API_KEY&product_id=PRODUCT_ID&country_code=COUNTRY_CODE&tld=TLD&sort=SORT"import requests
payload = {
"api_key": "API_KEY",
"product_id": "PRODUCT_ID",
"country_code": "COUNTRY_CODE",
"tld": "TLD",
"sort" "SORT"
}
r = requests.get('https://api.scraperapi.com/structured/walmart/review', params=payload)
print(r.text)
import fetch from 'node-fetch';
fetch(
'https://api.scraperapi.com/structured/walmart/review?api_key=API_KEY&product_id=PRODUCT_ID&country_code=COUNTRY_CODE&tld=TLD&sort=SORT'
)
.then(response => response.json())
.then(data => {
console.log(data);
})
.catch(error => {
console.error(error);
});Supported Parameters
api_key
Your API Key.
product_id
Walmart Product id. Example: 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.
sort
Sort by option. Valid values are:
relevancy
helpful
submission-desc
submission-asc
rating-desc
rating-asc
ratings
Comma-separated number list of review ratings. Supported values: 1,2,3,4,5 - used in any combination.
verified_purchase
Boolean - true or false. Filters reviews only from verified purchases when set to true.
page
Page number.
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": "HOBIBEAR Boys Sneakers Kids Running Lightweight Breathable Sport Tennis Shoes(Toddles/Little Kids/Big Kids)",
"product_url": "https://www.walmart.com/ip/HOBIBEAR-Boys-Sneakers-Kids-Running-Lightweight-Breathable-Sport-Tennis-Shoes-Toddles-Little-Kids-Big-Kids/1347882796",
"rating": 4.0556,
"review_count": 18,
"reviews": [
{
"title": "good",
"text": "design,price and true size overall like.",
"author": "vi",
"date_published": "3/10/2024",
"rating": 4,
"positive_feedback": 0,
"negative_feedback": 0
},
{
"title": "Didn't last long",
"text": "Did not hold up very long to little boy running/ playing/ activities.",
"author": "firefli529",
"date_published": "5/11/2024",
"rating": 3,
"positive_feedback": 0,
"negative_feedback": 0,
"badges": [
"Verified Purchase",
"Incentivized Review"
]
},
...
}Last updated

