Walmart Reviews API
Scrape Walmart product reviews into structured JSON/CSV using ScraperAPI in PHP. Filter by rating, date, or relevance. Ideal for sentiment and UX analysis.
This endpoint will retrieve reviews for a specified product from a Walmart reviews page and transform it into usable JSON.
<?php
$url = "https://api.scraperapi.com/structured/walmart/review?api_key=<API_KEY>&product_id=5253396052";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, FALSE);
$response = curl_exec($ch);
curl_close($ch);
print_r($response);
?>api_key
Your API Key.
product_id
Walmart Product id. Example: 5253396052
sort
Sort by option. Valid values are:
relevancy
helpful
submission-desc
submission-asc
rating-desc
rating-asc
ratings
Comma-separated number list of review ratings. Supported values: 1,2,3,4,5 - used in any combination.
verified_purchase
Boolean - true or false. Filters reviews only from verified purchases when set to true.
page
Specify the page number
TLD
Top level domain. Valid values are com and ca
Sample Response
Last updated
Was this helpful?

