Skip to the content
EnrichedNowDocs

    Type to search every page.

    Menu

    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.

    Inputs of walmart.reviews
    FieldTypeDescription
    urlstringThe product's address, e.g. https://www.walmart.com/ip/Fresh-Banana-Each/44390948.Limit: at most 2048 characters.
    item_idstringWalmart's item id: the number at the end of the product's address.Limit: matches ^[0-9]{1,20}$.
    pageintegerThe 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".
    ratingintegerOnly the reviews that give this many stars; all of them when not given.Limit: 1 to 5.
    • Give exactly one of url and item_id: the product's own address or id, as for walmart.product.
    • One run reads one page of 10 reviews. position is a review's place in the whole list: 11 is the first review of page 2. A page past the end ends ok with zero records.
    • sort is most_relevant (the default), most_helpful, newest, highest_rating or lowest_rating. rating keeps 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.facts has both numbers, total_ratings and reviews_with_text.
    • submitted is the day as YYYY-MM-DD. source names 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 failed with page_not_served, a review of another rating than the rating asked for with filter_not_applied.
    • An item id Walmart has no product for ends failed with not_found, and costs nothing. Walmart's "Robot or human?" page ends the run failed with captcha — 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.

    Record fields of walmart.reviews
    FieldTypeNotes
    positionintegerThe review's place in the whole list in the order asked for, from 1: 11 is the first review of page 2.
    pageintegerThe page of the list the review was on.
    item_idstringWalmart's item id of the product the reviews were asked for.
    review_idstringWalmart's id of the review.
    ratingnumberThe stars the review gives, 1 to 5.
    titlestring or nullThe review's title; many reviews have none.
    textstring or nullThe review's text.
    submittedstring or nullThe day the review was submitted, as YYYY-MM-DD.
    languagestring or nullThe language Walmart says the review was written in, e.g. English.
    verified_purchasebooleanTrue when the review carries Walmart's Verified Purchase badge.
    helpful_votesinteger or nullHow many visitors marked the review helpful.
    unhelpful_votesinteger or nullHow many visitors marked the review not helpful.
    recommendedboolean or nullWhether the reviewer said they would recommend the product; null when the review does not say.
    product_versionobject of string valuesThe version of the product the review is about, where it says, e.g. {"Color": "White", "Clothing size": "XL"}.
    imagesarray of stringThe addresses of the pictures attached to the review.
    seller_namestring or nullThe seller the reviewed purchase was made from, when the review states it.
    sourcestring or nullThe site the review was first written on, when Walmart shows it as coming from elsewhere, e.g. a manufacturer's own site.
    fetched_atstring (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:

    JSON
    {
      "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.

    JSON
    {
      "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.

    JSON
    {
      "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.