Get Product Reviews
curl --request GET \
--url https://scrapebadger.com/v1/walmart/products/{item_id}/reviews \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://scrapebadger.com/v1/walmart/products/{item_id}/reviews"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://scrapebadger.com/v1/walmart/products/{item_id}/reviews', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://scrapebadger.com/v1/walmart/products/{item_id}/reviews",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://scrapebadger.com/v1/walmart/products/{item_id}/reviews"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://scrapebadger.com/v1/walmart/products/{item_id}/reviews")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/walmart/products/{item_id}/reviews")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"item_id": "<string>",
"url": "<string>",
"page": 123,
"sort": "<string>",
"result_count": 123,
"distribution": {
"average_rating": 123,
"rounded_average_rating": 123,
"total_review_count": 123,
"reviews_with_text_count": 123,
"recommended_percentage": 123,
"total_media_count": 123,
"one_star": 123,
"two_star": 123,
"three_star": 123,
"four_star": 123,
"five_star": 123,
"one_star_percent": 123,
"two_star_percent": 123,
"three_star_percent": 123,
"four_star_percent": 123,
"five_star_percent": 123
},
"aspects": [
{}
],
"review_summary": "<string>",
"top_positive_review": {},
"top_negative_review": {},
"reviews": [
{
"review_id": "<string>",
"rating": 123,
"title": "<string>",
"text": "<string>",
"author": "<string>",
"submitted_at": "<string>",
"submitted_utc": 123,
"verified_purchase": true,
"helpful_count": 123,
"not_helpful_count": 123,
"photos": [
"<string>"
],
"media": [
{}
],
"badges": [
{}
],
"seller_name": "<string>",
"fulfilled_by": "<string>",
"condition": "<string>",
"syndication_source": "<string>",
"original_language": "<string>",
"aspects": [
{}
],
"client_responses": [
{}
]
}
]
}Products
Get Product Reviews
Paginated Walmart customer reviews with the complete star histogram — counts and percentages.
GET
/
v1
/
walmart
/
products
/
{item_id}
/
reviews
Get Product Reviews
curl --request GET \
--url https://scrapebadger.com/v1/walmart/products/{item_id}/reviews \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://scrapebadger.com/v1/walmart/products/{item_id}/reviews"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://scrapebadger.com/v1/walmart/products/{item_id}/reviews', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://scrapebadger.com/v1/walmart/products/{item_id}/reviews",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://scrapebadger.com/v1/walmart/products/{item_id}/reviews"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://scrapebadger.com/v1/walmart/products/{item_id}/reviews")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/walmart/products/{item_id}/reviews")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"item_id": "<string>",
"url": "<string>",
"page": 123,
"sort": "<string>",
"result_count": 123,
"distribution": {
"average_rating": 123,
"rounded_average_rating": 123,
"total_review_count": 123,
"reviews_with_text_count": 123,
"recommended_percentage": 123,
"total_media_count": 123,
"one_star": 123,
"two_star": 123,
"three_star": 123,
"four_star": 123,
"five_star": 123,
"one_star_percent": 123,
"two_star_percent": 123,
"three_star_percent": 123,
"four_star_percent": 123,
"five_star_percent": 123
},
"aspects": [
{}
],
"review_summary": "<string>",
"top_positive_review": {},
"top_negative_review": {},
"reviews": [
{
"review_id": "<string>",
"rating": 123,
"title": "<string>",
"text": "<string>",
"author": "<string>",
"submitted_at": "<string>",
"submitted_utc": 123,
"verified_purchase": true,
"helpful_count": 123,
"not_helpful_count": 123,
"photos": [
"<string>"
],
"media": [
{}
],
"badges": [
{}
],
"seller_name": "<string>",
"fulfilled_by": "<string>",
"condition": "<string>",
"syndication_source": "<string>",
"original_language": "<string>",
"aspects": [
{}
],
"client_responses": [
{}
]
}
]
}Paginated customer reviews for a product, plus the full rating
distribution: per-star counts and percentages, recommended percentage,
media count, review aspects, and the most-helpful positive and negative
reviews.
Credits: 10
10 reviews per page. That is Walmart’s page size and is not adjustable.
Authorization
string
required
Your ScrapeBadger API key.
Path Parameters
string
required
Walmart
usItemId, e.g. 5689919121.Query Parameters
integer
default:"1"
Review page,
1–100. 10 reviews per page.string
Review ordering. One of
relevancy, submission-desc, submission-asc,
rating-desc, rating-asc, helpful.Response
string
Echo of the requested item id.
string
The walmart.com URL that was fetched.
integer
string
integer
Reviews on this page (10 on a full page).
object
object[]
Walmart’s per-aspect sentiment breakdown, where present.
string
Walmart’s AI review summary, where present.
Review
Most-helpful positive review.
Review
Most-helpful negative review.
Review[]
Example
curl "https://scrapebadger.com/v1/walmart/products/5689919121/reviews?sort=helpful" \
-H "X-API-Key: YOUR_API_KEY"
const res = await fetch(
"https://scrapebadger.com/v1/walmart/products/5689919121/reviews?" +
new URLSearchParams({ sort: "helpful" }),
{ headers: { "X-API-Key": process.env.SCRAPEBADGER_API_KEY } },
);
const data = await res.json();
import requests
res = requests.get(
"https://scrapebadger.com/v1/walmart/products/5689919121/reviews",
headers={"X-API-Key": "YOUR_API_KEY"},
params={"sort": "helpful"},
)
data = res.json()
Response
{
"item_id": "5689919121",
"url": "https://www.walmart.com/reviews/product/5689919121?sort=helpful",
"page": 1,
"sort": "helpful",
"result_count": 10,
"distribution": {
"average_rating": 4.4,
"rounded_average_rating": 4.4,
"total_review_count": 44427,
"reviews_with_text_count": 7540,
"recommended_percentage": 86,
"total_media_count": 564,
"one_star": 4312,
"two_star": 950,
"three_star": 1399,
"four_star": 3244,
"five_star": 34522,
"one_star_percent": 10,
"two_star_percent": 2,
"three_star_percent": 3,
"four_star_percent": 7,
"five_star_percent": 78
},
"aspects": [],
"review_summary": null,
"reviews": [
{
"review_id": "393133004",
"rating": 5,
"title": null,
"text": "The air pods are air pods. When I first went to the website a discount of $70 was indicated…",
"author": "WalmartCustomer",
"submitted_at": "2025-07-24T00:00:00Z",
"submitted_utc": 1753315200.0,
"verified_purchase": true,
"helpful_count": 4,
"not_helpful_count": 0,
"badges": [
{ "id": "VerifiedPurchaser", "text": "Verified Purchase", "type": "Custom", "key": "REVIEW" },
{ "id": "PrizeIncentive", "text": "Incentivized Review", "type": "Custom", "key": "REVIEW" }
],
"seller_name": "Walmart.com",
"original_language": "English"
}
]
}
total_review_count counts every rating, while reviews_with_text_count
counts only reviews with written text — in the example above, 44,427 ratings
but 7,540 with prose. Size a full crawl off reviews_with_text_count / 10
pages, not the headline count.Errors
| Status | Meaning |
|---|---|
404 | Item does not exist or has been removed. |
422 | Anti-bot challenge — not billed. Retry; it succeeds. |
⌘I

