Scraper APIWalmart
walmart.reviews
A page of a Walmart product's customer reviews: stars, title, text, date, verified-purchase badge, votes and pictures.
- Id
walmart.reviews- Version
- 1
- Billed per
- request — 1 unit for a charged run
- Runs
- within one request
Start it with POST /v1/scrapers/walmart.reviews/runs. How runs work is in Running a scraper; what a run costs is in Usage and units.
Inputs
The fields of input. A field that is not listed here is refused.
| Field | Type | Description |
|---|---|---|
url | string | The product's address, e.g. https://www.walmart.com/ip/Fresh-Banana-Each/44390948.Limit: at most 2048 characters. |
item_id | string | Walmart's item id: the number at the end of the product's address.Limit: matches ^[0-9]{1,20}$. |
page | integer | The page of the list, from 1; each holds 10 reviews (Walmart serves at most 1000).Limit: 1 to 1000. Default: 1. |
sort | "most_relevant" | "most_helpful" | "newest" | "highest_rating" | "lowest_rating" | The order: most_relevant, most_helpful, newest, highest_rating or lowest_rating.Default: "most_relevant". |
rating | integer | Only the reviews that give this many stars; all of them when not given.Limit: 1 to 5. |
- Give exactly one of
urlanditem_id: the product's own address or id, as forwalmart.product. - One run reads one page of 10 reviews.
positionis a review's place in the whole list: 11 is the first review of page 2. A page past the end endsokwith zero records. sortismost_relevant(the default),most_helpful,newest,highest_ratingorlowest_rating.ratingkeeps the reviews that give that many stars.- Walmart lists the reviews that have a text, and 10,000 of them at most. A product's rating count also includes ratings given without one:
diagnostics.factshas both numbers,total_ratingsandreviews_with_text. submittedis the day asYYYY-MM-DD.sourcenames the site a review was first written on, when Walmart shows it as coming from elsewhere.- A reviewer's name is not returned.
- The page says which reviews it holds, and a run checks it: another page than the one asked for ends
failedwithpage_not_served, a review of another rating than theratingasked for withfilter_not_applied. - An item id Walmart has no product for ends
failedwithnot_found, and costs nothing. Walmart's "Robot or human?" page ends the runfailedwithcaptcha— see the reasons of this family.
Record fields
Every record of a run has these fields. A value that is not known is null — never an empty string and never 0.
| Field | Type | Notes |
|---|---|---|
position | integer | The review's place in the whole list in the order asked for, from 1: 11 is the first review of page 2. |
page | integer | The page of the list the review was on. |
item_id | string | Walmart's item id of the product the reviews were asked for. |
review_id | string | Walmart's id of the review. |
rating | number | The stars the review gives, 1 to 5. |
title | string or null | The review's title; many reviews have none. |
text | string or null | The review's text. |
submitted | string or null | The day the review was submitted, as YYYY-MM-DD. |
language | string or null | The language Walmart says the review was written in, e.g. English. |
verified_purchase | boolean | True when the review carries Walmart's Verified Purchase badge. |
helpful_votes | integer or null | How many visitors marked the review helpful. |
unhelpful_votes | integer or null | How many visitors marked the review not helpful. |
recommended | boolean or null | Whether the reviewer said they would recommend the product; null when the review does not say. |
product_version | object of string values | The version of the product the review is about, where it says, e.g. {"Color": "White", "Clothing size": "XL"}. |
images | array of string | The addresses of the pictures attached to the review. |
seller_name | string or null | The seller the reviewed purchase was made from, when the review states it. |
source | string or null | The site the review was first written on, when Walmart shows it as coming from elsewhere, e.g. a manufacturer's own site. |
fetched_at | string (date-time) | When the reviews page was read, in UTC. |
Example request
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/walmart.reviews/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"item_id":"816299347","page":2}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("walmart.reviews", {"item_id": "816299347", "page": 2})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("walmart.reviews", { item_id: "816299347", page: 2 });
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "walmart.reviews", map[string]any{"item_id": "816299347", "page": 2})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("walmart.reviews", Map.of("item_id", "816299347", "page", 2));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run walmart.reviews --input-json '{"item_id":"816299347","page":2}'Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
It starts a run with this scraper’s example input, waits for it to finish and reads its records a page at a time. The key is read from ENRICHEDNOW_API_KEY.
The body on its own:
{
"input": {
"item_id": "816299347",
"page": 2
}
}Example response
The run, once it has ended. A run that has not ended within wait comes back with 202 and the status queued or running.
{
"id": "run_841742f37553189ff9c27ba1",
"scraper_id": "walmart.reviews",
"scraper_version": 1,
"status": "ok",
"reason": null,
"input": {
"item_id": "816299347",
"page": 2
},
"record_count": 1,
"units": 1,
"units_per_request": 1,
"units_per_record": null,
"units_per_page": null,
"diagnostics": {
"requests": 1,
"bytes": 259214,
"wall_ms": 885,
"facts": {}
},
"created_at": "2026-11-16T22:37:50.170950Z",
"started_at": "2026-11-16T22:37:50.178331Z",
"finished_at": "2026-11-16T22:37:51.066313Z"
}Its records, from GET /v1/runs/{id}/records. The record is a real one: this scraper's own parser read it from a page recorded from the site.
{
"records": [
{
"position": 14,
"page": 2,
"item_id": "816299347",
"review_id": "273591792",
"rating": 5,
"title": "Nice",
"text": "[This review was collected as part of a promotion.] This was a really nice three pack of shirts. They were white. They appear to be very comfortable. They are also very practical and suitable for every day use.",
"submitted": "2024-03-09",
"language": "English",
"verified_purchase": false,
"helpful_votes": 0,
"unhelpful_votes": 0,
"recommended": null,
"product_version": {},
"images": [
"https://i5.walmartimages.com/dfw/6e29e393-2731/k2-_77953759-7362-4930-93c8-7d939bfd4a23.v1.jpg"
],
"seller_name": null,
"source": "influenster.com",
"fetched_at": "2026-11-19T18:07:41.782191Z"
}
],
"next_cursor": null
}A run does not always end ok. Results and statuses lists every status and the reasons every scraper shares; the reasons of the Walmart scrapers are in their own section there.