Skip to main content
The Walmart Product Reviews API allows you to retrieve detailed product reviews from Walmart, providing valuable insights into customer feedback. You can obtain key information such as ratings, review content, helpful votes, and product details. The tool is ideal for sentiment analysis, product feedback, and market research, helping businesses make informed decisions based on customer opinions.
  • Ratings: Aggregate rating scores and distribution by stars.
  • Review Details: Content, Titles, Dates, and Verified Purchase Status.
  • Navigation: Links for paginated review data.
  • Helpful Votes: Count of votes indicating helpfulness.
  • Product Information: Name, URL, and SKU of the product.
Example Use Cases:
  • Sentiment Analysis: Analyze customer feedback for better decision-making.
  • Product Feedback: Identify common customer concerns and praises.

Supported Query Parameters

PARAMETERTYPEDEFAULTDESCRIPTION
sku requiredstringThe Walmart item ID (numeric, 8 to 20 characters). Example: 5074872077.
urlstringThe URL of the Walmart product page from which reviews are to be fetched. Example: https://www.walmart.com/ip/5074872077.
tldstring.comTop-level domain (TLD) for the Walmart website. Default is .com. Supported examples: .com, .ca.
sortstringThe sorting method for reviews. Options: submission-desc, relevancy, helpful, rating-desc, rating-asc.

How to Setup

Request the reviews endpoint for the product:
https://ecommerce.api.zenrows.com/v1/targets/walmart/reviews/{sku}?apikey=YOUR_ZENROWS_API_KEY

Example

cURL
curl "https://ecommerce.api.zenrows.com/v1/targets/walmart/reviews/{sku}?apikey=YOUR_ZENROWS_API_KEY"
Replace {sku} with the actual product ID.
# pip install requests
import requests

sku = "123456789"  # Example SKU
api_endpoint = f"https://ecommerce.api.zenrows.com/v1/targets/walmart/reviews/{sku}"
params = {
    "apikey": "YOUR_ZENROWS_API_KEY",
}
response = requests.get(api_endpoint, params=params)
print(response.text)
{
    "average_score": 4.5,
    "five_star_count": 123,
    "five_star_ratio": 0.73,
    "four_star_count": 123,
    "four_star_ratio": 0.15,
    "one_star_count": 123,
    "one_star_ratio": 0.04,
    "page_navigation": "https:\/\/www.walmart.com\/reviews\/product\/5074872077?page=2",
    "product_details": {
        "product_name": "iPhone 13",
        "product_url": "https:\/\/www.walmart.com\/ip\/Apple-iPhone-13\/123456789"
    },
    "reviews_list": [
        {
            "helpful_votes": 2,
            "is_verified_purchase": true,
            "rating_score": 5,
            "review_content": "It\u2019s great. Works for what we need it to do.",
            "review_date": "Reviewed in the United States on September 4, 2022",
            "review_source": "influenster.com",
            "review_title": "works good",
            "reviewer_name": "Brittany"
        }
    ],
    "three_star_count": 123,
    "three_star_ratio": 0.06,
    "total_ratings_count": 12494,
    "total_reviews_count": 123,
    "two_star_count": 123,
    "two_star_ratio": 0.02
}

Troubleshooting and FAQs

The Walmart SKU is typically part of the product URL. For example, in the URL https://www.walmart.com/ip/123456789, the SKU is 123456789. You can use this ID directly in the API request.
The response includes detailed information about the product, its reviews, and overall ratings. Here is what you can expect:
  • average_score: The average rating score of the product.
  • total_ratings_count: The total number of ratings received.
  • total_reviews_count: The total number of written reviews.
  • star counts and ratios: Number and percentage of reviews for each rating (five-star, four-star, three-star, two-star, and one-star).
  • page_navigation: A URL to the next page of reviews, if available.
  • product_details: Basic information about the product, including its name and URL.
  • reviews_list: An array containing individual review details such as:
    • review_title: Title of the review.
    • review_content: Text of the review.
    • rating_score: Rating given in the review.
    • review_date: Date when the review was posted.
    • reviewer_name: Name of the reviewer.
    • is_verified_purchase: Whether the review is from a verified purchase.
    • helpful_votes: Number of helpful votes the review received.
    • review_source: Source of the review if applicable.
This structure gives you both a high-level overview of the product’s reputation and access to each individual review for deeper analysis.
Yes, the Walmart Product Scraper API can be used for both personal and commercial projects. Be sure to adhere to Walmart’s terms of service and any applicable legal requirements when using the data.
I