# Walmart Reviews Scraper (`axesso_data/walmart-reviews-scraper`) Actor

Our Walmart Product Reviews Scraper retrieves structured customer reviews from Walmart including star ratings, review text, author details, timestamps, and media. It provides real-time insights ideal for analyzing customer feedback and product satisfaction.

- **URL**: https://apify.com/axesso\_data/walmart-reviews-scraper.md
- **Developed by:** [AxCrawler](https://apify.com/axesso_data) (community)
- **Categories:** E-commerce
- **Stats:** 167 total users, 6 monthly users, 95.5% runs succeeded, 11 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$0.50 / 1,000 reviews

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

### How does Walmart Reviews Scraper work?

The Walmart Product Reviews Scraper extracts structured customer reviews from Walmart reviews pages. It retrieves detailed information such as star ratings, review text, author details, review submission timestamps, and associated media. The data fetched includes ratings distribution, review summaries, and individual review content.

This Actor operates in real-time, extracting fresh and up-to-date review data directly from Walmart. There is no caching involved, ensuring the most current customer feedback is obtained.

The extraction process consists of processing an input array of Walmart product review queries, each specifying criteria such as product ID, start page, end page, sorting preference, and optional filters. The Actor then gathers comprehensive review data according to these parameters and provides structured output.

### Input data

The input data must be a JSON object containing one mandatory array field named "input". Each element of this array specifies parameters for a single request to fetch Walmart product reviews.
Input fields for each entry:

- `productId` (Required): The Walmart product ID for which to retrieve reviews.
- `domainCode` (Optional): The Walmart domain code, with valid values "com" or "ca". Default is "com".
- `startPage` (Optional): The start page number of reviews to fetch. Defaults to 1.
- `endPage` (Optional): The end page number of reviews to fetch. Defaults to 1.
- `sort` (Optional): The sorting criteria for reviews. Valid values: "relevancy", "submission-desc", "helpful", "rating-desc", "rating-asc". Defaults to "relevancy".
- `vp` (Optional): Boolean filter to include only verified purchases. Defaults to false.
- `ratings` (Optional): Comma-separated string specifying star ratings to filter reviews, e.g., "1,2,5".
- `aspect` (Optional): Numeric identifier used for additional filtering, e.g., filtering by frequently mentioned terms.

Multiple review requests can be processed in one run by including multiple objects in the input array.

#### Example input

```json
{
  "input": [
    {
        "productId": 5364974201,
        "domainCode": "com",
        "startPage": 1,
        "endPage": 5,
        "sort": "relevancy",
        "vp": false,
        "ratings": "4,5",
        "aspect": 6051
    },
    {
        "productId": 6000208932242,
        "domainCode": "ca",
        "startPage": 3,
        "sort": "helpful",
        "vp": true
    }
  ]
}
```

### Output data

```json
{
  "statusCode": 200,
  "statusMessage": "FOUND",
  "productId": 5364974201,
  "page": 1,
  "sort": "relevancy",
  "domainCode": "com",
  "ratings": [
    "4",
    "5"
  ],
  "vp": false,
  "aspect": 6051,
  "authorId": "3b9a1c46ef8f7f6421e656d5db460ac2d5c1e0006c903cf24d57564d3ecd3b0a3300c9d5a6e95cd53f6d0d91820a2f75",
  "badges": [
    {
      "badgeType": "Custom",
      "contentType": "REVIEW",
      "id": "VerifiedPurchaser",
      "glassBadge": {
        "id": "VerifiedPurchaser",
        "text": "Verified Purchase"
      }
    }
  ],
  "userBadges": [
    {
      "badgeId": "TOP_REVIEWER",
      "badgeValue": "TOP_REVIEWER"
    },
    {
      "badgeId": "REVIEW_COUNT",
      "badgeValue": "450"
    }
  ],
  "conditionGroupCode": null,
  "condition": null,
  "userLocation": null,
  "negativeFeedback": 0,
  "positiveFeedback": 0,
  "rating": 5,
  "recommended": true,
  "reviewId": "392095427",
  "reviewReferenceId": "f1bfe0da-5210-5852-b982-92cc30d2fdaa",
  "originalLanguage": "English",
  "originalLocale": "en_US",
  "translatedLanguage": "English",
  "translatedLocale": "en",
  "showTranslationCTA": false,
  "reviewSubmissionTime": "7/16/2025",
  "reviewText": "Where have these fans been all my life!  I like to sit outside w my dogs and cats and enjoy the fresh air.  When its Hot,  I cant stay out long bc of heat. Now I can get a cooler breeze. its mainly for individual use. I always need a light too when the sun goes down. No more dragging a long extension- cord.  It charges w a USB cord provided.  I got 2  fans so I can have a back-up and in case the power goes out.  The light and wind-speed come in different levels/speeds.  It has a hook for hanging. The fans have different colors as well. Thank you kindly  :-)",
  "reviewTitle": null,
  "reviewAspectStart": 313,
  "reviewAspectEnd": 320,
  "reviewSentimentStart": null,
  "reviewSentimentEnd": null,
  "snippetFromTitle": false,
  "showRecommended": true,
  "fulfilledBy": "Walmart",
  "status": "APPROVED",
  "sellerName": "Shen Zhen Shi Li Yi He Ke Ji Coltd",
  "itemId": "14779413575",
  "itemImageUrl": null,
  "itemName": "GVDV Camping Fan with LED Lantern, 20000mAh Portable Battery Operated Outdoor Fan, Personal Rechargeable Desk Fan for Travel, Hiking, Fishing, Picnic, Black",
  "reviewType": null,
  "clientResponses": null,
  "syndicationSource": null,
  "userNickname": "Chert",
  "externalSource": "bazaarvoice",
  "media": null,
  "photos": [],
  "features": [
    {
      "name": "Color",
      "value": "Yellow/Black"
    }
  ],
  "totalMediaCount": 27,
  "lookupId": "1QK3ICMCR2JW",
  "overallRatingRange": 5,
  "percentageOneCount": 10,
  "percentageTwoCount": 4,
  "percentageThreeCount": 4,
  "percentageFourCount": 7,
  "filteredReviewsCount": 69,
  "percentageFiveCount": 76,
  "ratingValueOneCount": 138,
  "ratingValueTwoCount": 54,
  "ratingValueThreeCount": 51,
  "ratingValueFourCount": 98,
  "ratingValueFiveCount": 1058,
  "recommendedPercentage": 87,
  "roundedAverageOverallRating": 4.3,
  "totalReviewCount": 1399,
  "reviewsWithTextCount": 526,
  "reviewsWithTextRatingOneCount": 80,
  "reviewsWithTextRatingTwoCount": 24,
  "reviewsWithTextRatingThreeCount": 22,
  "reviewsWithTextRatingFourCount": 33,
  "reviewsWithTextRatingFiveCount": 367,
  "topProductMedia": [
    {
      "id": "8763e64a-9360-45dc-9888-421885c84457",
      "reviewId": "1e2a7ada-e726-54de-ad31-5c839f70224e",
      "mediaType": "IMAGE",
      "normalUrl": "https://i5.walmartimages.com/dfw/6e29e393-df56/k2-_41100eef-9fbb-4423-bbb3-4e1ce2f4bfc3.v1.jpg",
      "thumbnailUrl": "https://i5.walmartimages.com/dfw/6e29e393-df56/k2-_41100eef-9fbb-4423-bbb3-4e1ce2f4bfc3.v1.jpg?odnWidth=150&odnHeight=150&odnBg=ffffff",
      "caption": null,
      "rating": 5
    },
    {
      "id": "a032c379-73e6-43be-aa3c-fafb9b32d2a1",
      "reviewId": "33e52f8a-4faf-5512-b8ef-c85f2c1f280a",
      "mediaType": "IMAGE",
      "normalUrl": "https://i5.walmartimages.com/dfw/6e29e393-d036/k2-_70453a49-116e-4b87-a8a6-466ccf196f82.v1.jpg",
      "thumbnailUrl": "https://i5.walmartimages.com/dfw/6e29e393-d036/k2-_70453a49-116e-4b87-a8a6-466ccf196f82.v1.jpg?odnWidth=150&odnHeight=150&odnBg=ffffff",
      "caption": null,
      "rating": 5
    },
    {
      "id": "e9b04e84-04db-4795-b8ae-d807c4eb9fe3",
      "reviewId": "9283006d-e46c-55ad-9c39-3391d9248bd2",
      "mediaType": "IMAGE",
      "normalUrl": "https://i5.walmartimages.com/dfw/6e29e393-793c/k2-_050ea34d-8933-4a3e-9277-a32a4972f544.v1.jpg",
      "thumbnailUrl": "https://i5.walmartimages.com/dfw/6e29e393-793c/k2-_050ea34d-8933-4a3e-9277-a32a4972f544.v1.jpg?odnWidth=150&odnHeight=150&odnBg=ffffff",
      "caption": null,
      "rating": 5
    },
    {
      "id": "9425049d-99fc-4499-a159-c7ef1e9db954",
      "reviewId": "23989c88-da22-553e-a83c-e054725cc516",
      "mediaType": "IMAGE",
      "normalUrl": "https://i5.walmartimages.com/dfw/6e29e393-39c6/k2-_649bdbed-b0ca-4b83-96a1-6e289fd5e7e2.v1.jpg",
      "thumbnailUrl": "https://i5.walmartimages.com/dfw/6e29e393-39c6/k2-_649bdbed-b0ca-4b83-96a1-6e289fd5e7e2.v1.jpg?odnWidth=150&odnHeight=150&odnBg=ffffff",
      "caption": null,
      "rating": 5
    },
    {
      "id": "bf37bd27-a254-4836-b661-9d06b2af3f72",
      "reviewId": "23989c88-da22-553e-a83c-e054725cc516",
      "mediaType": "IMAGE",
      "normalUrl": "https://i5.walmartimages.com/dfw/6e29e393-c1af/k2-_48863b39-fdaf-4259-acd0-6786c8154289.v1.jpg",
      "thumbnailUrl": "https://i5.walmartimages.com/dfw/6e29e393-c1af/k2-_48863b39-fdaf-4259-acd0-6786c8154289.v1.jpg?odnWidth=150&odnHeight=150&odnBg=ffffff",
      "caption": null,
      "rating": 5
    },
    {
      "id": "9f86edf3-0cb5-4b0d-aded-173ddd56ca2c",
      "reviewId": "23989c88-da22-553e-a83c-e054725cc516",
      "mediaType": "IMAGE",
      "normalUrl": "https://i5.walmartimages.com/dfw/6e29e393-3672/k2-_cf16c398-bc5a-4612-8860-ca3ab5999e28.v1.jpg",
      "thumbnailUrl": "https://i5.walmartimages.com/dfw/6e29e393-3672/k2-_cf16c398-bc5a-4612-8860-ca3ab5999e28.v1.jpg?odnWidth=150&odnHeight=150&odnBg=ffffff",
      "caption": null,
      "rating": 5
    },
    {
      "id": "f943b580-88db-44ec-9a50-dbf98d590636",
      "reviewId": "23989c88-da22-553e-a83c-e054725cc516",
      "mediaType": "IMAGE",
      "normalUrl": "https://i5.walmartimages.com/dfw/6e29e393-a847/k2-_ebd7360e-e490-4635-a649-3b3b1778f93d.v1.jpg",
      "thumbnailUrl": "https://i5.walmartimages.com/dfw/6e29e393-a847/k2-_ebd7360e-e490-4635-a649-3b3b1778f93d.v1.jpg?odnWidth=150&odnHeight=150&odnBg=ffffff",
      "caption": null,
      "rating": 5
    },
    {
      "id": "6952f080-2648-4d6b-b326-4841061b6158",
      "reviewId": "23989c88-da22-553e-a83c-e054725cc516",
      "mediaType": "IMAGE",
      "normalUrl": "https://i5.walmartimages.com/dfw/6e29e393-da61/k2-_a19ecdeb-37d7-411d-acc5-4354983c11a4.v1.jpg",
      "thumbnailUrl": "https://i5.walmartimages.com/dfw/6e29e393-da61/k2-_a19ecdeb-37d7-411d-acc5-4354983c11a4.v1.jpg?odnWidth=150&odnHeight=150&odnBg=ffffff",
      "caption": null,
      "rating": 5
    },
    {
      "id": "7f6f7b2c-e0ab-4852-8f3f-7fe81e7d747b",
      "reviewId": "23989c88-da22-553e-a83c-e054725cc516",
      "mediaType": "IMAGE",
      "normalUrl": "https://i5.walmartimages.com/dfw/6e29e393-13cb/k2-_7b8f40ec-e982-4555-916a-96bff912e2e1.v1.jpg",
      "thumbnailUrl": "https://i5.walmartimages.com/dfw/6e29e393-13cb/k2-_7b8f40ec-e982-4555-916a-96bff912e2e1.v1.jpg?odnWidth=150&odnHeight=150&odnBg=ffffff",
      "caption": null,
      "rating": 5
    },
    {
      "id": "b3a24a1d-dbc6-4fa9-b0b9-e9dc799925f3",
      "reviewId": "7a382c8e-c08a-54d2-8199-3ed4a4b6c24f",
      "mediaType": "IMAGE",
      "normalUrl": "https://i5.walmartimages.com/dfw/6e29e393-5d8e/k2-_b5f58ac2-87b9-431f-85cf-fb837f279e3e.v1.jpg",
      "thumbnailUrl": "https://i5.walmartimages.com/dfw/6e29e393-5d8e/k2-_b5f58ac2-87b9-431f-85cf-fb837f279e3e.v1.jpg?odnWidth=150&odnHeight=150&odnBg=ffffff",
      "caption": null,
      "rating": 5
    },
    {
      "id": "3beb84df-d99f-4686-ac9c-601bc869af59",
      "reviewId": "7a382c8e-c08a-54d2-8199-3ed4a4b6c24f",
      "mediaType": "IMAGE",
      "normalUrl": "https://i5.walmartimages.com/dfw/6e29e393-fae5/k2-_b852887c-3454-4f73-a415-b9343923c8c5.v1.jpg",
      "thumbnailUrl": "https://i5.walmartimages.com/dfw/6e29e393-fae5/k2-_b852887c-3454-4f73-a415-b9343923c8c5.v1.jpg?odnWidth=150&odnHeight=150&odnBg=ffffff",
      "caption": null,
      "rating": 5
    }
  ],
  "aspects": [
    {
      "id": "6051",
      "name": "Charging Experience",
      "score": null,
      "snippetCount": 103
    },
    {
      "id": "160",
      "name": "Lighting Features",
      "score": null,
      "snippetCount": 79
    },
    {
      "id": "1189",
      "name": "Camping Suitability",
      "score": null,
      "snippetCount": 35
    },
    {
      "id": "5925",
      "name": "Power Level",
      "score": null,
      "snippetCount": 30
    },
    {
      "id": "184",
      "name": "Speed Settings",
      "score": null,
      "snippetCount": 31
    },
    {
      "id": "48",
      "name": "Value For Money",
      "score": null,
      "snippetCount": 29
    },
    {
      "id": "5360",
      "name": "Phone Compatibility",
      "score": null,
      "snippetCount": 20
    },
    {
      "id": "4362",
      "name": "Hanging Capability",
      "score": null,
      "snippetCount": 16
    },
    {
      "id": "21",
      "name": "Size",
      "score": null,
      "snippetCount": 15
    },
    {
      "id": "17897",
      "name": "Cooling Effectiveness",
      "score": null,
      "snippetCount": 15
    },
    {
      "id": "74389",
      "name": "Recharging Ease",
      "score": null,
      "snippetCount": 15
    },
    {
      "id": "155",
      "name": "Quality",
      "score": null,
      "snippetCount": 14
    },
    {
      "id": "27337",
      "name": "Tent Use",
      "score": null,
      "snippetCount": 12
    },
    {
      "id": "11460",
      "name": "Portability",
      "score": null,
      "snippetCount": 12
    },
    {
      "id": "12",
      "name": "Ease Of Use",
      "score": null,
      "snippetCount": 10
    },
    {
      "id": "17719",
      "name": "Airflow",
      "score": null,
      "snippetCount": 9
    },
    {
      "id": "137",
      "name": "Setup Ease",
      "score": null,
      "snippetCount": 8
    },
    {
      "id": "30306",
      "name": "Airflow Quality",
      "score": null,
      "snippetCount": 8
    },
    {
      "id": "776",
      "name": "Heat Management",
      "score": null,
      "snippetCount": 8
    },
    {
      "id": "84295",
      "name": "Airflow Strength",
      "score": null,
      "snippetCount": 8
    },
    {
      "id": "2479",
      "name": "Cord Length",
      "score": null,
      "snippetCount": 8
    },
    {
      "id": "7900",
      "name": "Light Brightness",
      "score": null,
      "snippetCount": 5
    }
  ],
  "reviewSummary": {
    "summary": "Customers praise the product's speed, power level, and charging features, highlighting its strong air current, multiple speed settings, and quick charging. The compact size and rechargeable battery make it ideal for camping and travel. While some users find it underpowered or experience issues with charging, overall, the product delivers impressive performance and convenience, making it a great choice for various settings.",
    "summaryTitle": "Compact and rechargeable fan offers impressive speed and convenience",
    "summaryAspects": [
      {
        "aspectId": 184,
        "aspectStart": 31,
        "aspectEnd": 35,
        "aspectSentiment": "positive"
      },
      {
        "aspectId": 6051,
        "aspectStart": 55,
        "aspectEnd": 62,
        "aspectSentiment": "neutral"
      },
      {
        "aspectId": 1189,
        "aspectStart": 216,
        "aspectEnd": 222,
        "aspectSentiment": "positive"
      },
      {
        "aspectId": 21,
        "aspectStart": 160,
        "aspectEnd": 171,
        "aspectSentiment": "positive"
      }
    ]
  },
  "bulletReviewSummary": {
    "bulletSummaryAspects": [
      {
        "aspectId": "160",
        "aspectName": "lights",
        "aspectPillText": "Adjustable bright",
        "aspectRank": 4,
        "aspectPolarity": "Positive",
        "aspectSummary": "Has multiple brightness settings."
      },
      {
        "aspectId": "17897",
        "aspectName": "cooling",
        "aspectPillText": "Powerful cooling",
        "aspectRank": 3,
        "aspectPolarity": "Positive",
        "aspectSummary": "Provides effective cooling in outdoor settings."
      },
      {
        "aspectId": "184",
        "aspectName": "speed",
        "aspectPillText": "Adjustable speed settings",
        "aspectRank": 1,
        "aspectPolarity": "Positive",
        "aspectSummary": "Offers 3-4 fan speed options for customization."
      },
      {
        "aspectId": "48",
        "aspectName": "price",
        "aspectPillText": "Affordable price",
        "aspectRank": 2,
        "aspectPolarity": "Positive",
        "aspectSummary": "Offers good value at this cost."
      }
    ]
  },
  "name": "GVDV Camping Fan with LED Lantern, 20000mAh Portable Battery Operated Outdoor Fan, Personal Rechargeable Desk Fan for Travel, Hiking, Fishing, Picnic, Orange",
  "imageInfo": {
    "thumbnailUrl": "https://i5.walmartimages.com/seo/GVDV-Camping-Fan-with-LED-Lantern-10400mAh-Portable-Battery-Operated-Outdoor-Fan-Personal-Rechargeable-Desk-Fan-for-Travel-Hiking-Fishing-Picnic_106e8412-3318-4e1d-be8b-e413c8c37aa3.a047fd38589d98e4cab601a5376558f2.jpeg",
    "name": "GVDV-Camping-Fan-with-LED-Lantern-10400mAh-Portable-Battery-Operated-Outdoor-Fan-Personal-Rechargeable-Desk-Fan-for-Travel-Hiking-Fishing-Picnic_106e8412-3318-4e1d-be8b-e413c8c37aa3.a047fd38589d98e4cab601a5376558f2.jpeg",
    "id": "B81E2440583844C18C17EB43B70732A8"
  },
  "canonicalUrl": "/ip/GVDV-Camping-Fan-with-LED-Lantern-10400mAh-Portable-Battery-Operated-Outdoor-Fan-Personal-Rechargeable-Desk-Fan-for-Travel-Hiking-Fishing-Picnic/5364974201",
  "category": {
    "path": [
      {
        "name": "Home Improvement",
        "url": "/cp/home-improvement/1072864"
      },
      {
        "name": "Heating, Cooling, & Air Quality",
        "url": "/cp/heating-cooling-air-quality/133032"
      },
      {
        "name": "Cooling",
        "url": "/cp/cooling/1231458"
      },
      {
        "name": "Fans",
        "url": "/cp/fans/1230511"
      },
      {
        "name": "Desk Fans",
        "url": "/cp/desk-fans/3681271"
      }
    ]
  },
  "sellerId": "5CDE65123B4B4E55B8B3588A7D6352F9",
  "type": "Electric Household Fans",
  "availabilityStatus": "IN_STOCK",
  "priceInfo": {
    "currentPrice": {
      "priceString": "$19.99"
    }
  },
  "offerId": "C24F2EBB697F3CBBACF47559F743006F",
  "variants": [
    {
      "availabilityStatus": "IN_STOCK"
    },
    {
      "availabilityStatus": "OUT_OF_STOCK"
    },
    {
      "availabilityStatus": "OUT_OF_STOCK"
    }
  ]
}
```

### How much does Walmart Product Reviews Scraper cost?

Resource use depends on the number and scope of requests made during a run. We suggest starting with a test run using a limited set of product IDs and review pages to estimate the cost. This approach provides an understanding of the usage required and potential expenses.

### What to consider when using this Actor?

We are performing Web Crawling activities for over a decade. All our expertises are included in this Actor, this means the user of this Actor is not required to deal with any inconveniences of web scraping.

In detail it means we cover the whole lifecycle including

- **Proxy Rotation:** The Actor employs proxy rotation to avoid blocking and ensure uninterrupted data extraction from Walmart.
- **Geo Targeting:** Requests are routed through proxies appropriate for the target Walmart domain to emulate valid location context.
- **Captcha and Blocking Handling:** Captchas and temporary blocking responses are automatically managed internally to maintain stable extraction.
- **Stability and Reliability:** The solution covers the entire scraping lifecycle, reducing the need for users to handle common web scraping challenges.

### Where else you can find Axesso - Data Service solutions?

Axesso provides APIs and Actors through its own [API Portal](https://axesso.developer.azure-api.net/apis) and on [RapidAPI](https://rapidapi.com/search?term=axesso\&sortBy=ByRelevance). Axesso has a proven track record delivering stable services to thousands of subscribers over a period exceeding five years.

### Use cases for our Axesso Actors

1. Market Research: Extract customer reviews for product feedback and market trend analysis.
2. Price Monitoring: Monitor competitor products and pricing strategies.
3. Inventory Management: Keep track of product availability and stock changes.
4. Product Catalog Management: Update and manage product information efficiently.
5. Review Monitoring and Sentiment Analysis: Analyze customer opinions for brand reputation.
6. Lead Generation: Identify suppliers or partners through product and seller information.
7. Content Aggregation and Curation: Gather data to build review sites or buying guides.
8. Price Comparison Websites: Collect pricing data for comparison to aid consumer decisions.
9. Ad Campaign Optimization: Gain insights into product popularity and customer sentiment.

# Actor input Schema

## `input` (type: `array`):

List of inputs, each entry refers to one request to be executed. Full list of valid parameters can be found in the README tab.

## Actor input object example

```json
{
  "input": [
    {
      "productId": 5364974201,
      "domainCode": "com",
      "startPage": 1,
      "endPage": 3,
      "sort": "relevancy",
      "vp": false,
      "ratings": "4,5",
      "aspect": 6051
    },
    {
      "productId": 1234567890,
      "domainCode": "ca",
      "startPage": 3,
      "sort": "helpful",
      "vp": true
    }
  ]
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "input": [
        {
            "productId": 5364974201,
            "domainCode": "com",
            "startPage": 1,
            "endPage": 3,
            "sort": "relevancy",
            "vp": false,
            "ratings": "4,5",
            "aspect": 6051
        },
        {
            "productId": 1234567890,
            "domainCode": "ca",
            "startPage": 3,
            "sort": "helpful",
            "vp": true
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("axesso_data/walmart-reviews-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "input": [
        {
            "productId": 5364974201,
            "domainCode": "com",
            "startPage": 1,
            "endPage": 3,
            "sort": "relevancy",
            "vp": False,
            "ratings": "4,5",
            "aspect": 6051,
        },
        {
            "productId": 1234567890,
            "domainCode": "ca",
            "startPage": 3,
            "sort": "helpful",
            "vp": True,
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("axesso_data/walmart-reviews-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "input": [
    {
      "productId": 5364974201,
      "domainCode": "com",
      "startPage": 1,
      "endPage": 3,
      "sort": "relevancy",
      "vp": false,
      "ratings": "4,5",
      "aspect": 6051
    },
    {
      "productId": 1234567890,
      "domainCode": "ca",
      "startPage": 3,
      "sort": "helpful",
      "vp": true
    }
  ]
}' |
apify call axesso_data/walmart-reviews-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=axesso_data/walmart-reviews-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/AkDcZOabaIeyuavC9/builds/Cz8dKZJvx1FrhitMq/openapi.json
