Core APIs
...
Parameters
Customer Feedback
Reviews
4min
reviews parameters get get /request the reviews parameters are applicable when making a request with type=reviews to retrieve customer reviews for a single product on walmart usa ( walmart com ) or walmart canada ( walmart ca ) the product is specified using either the item id or url parameter (where the url parameter contains a link to a walmart product page) the parameters should be appended as querystring parameters to the walmart product data api get http request reviews are retrieved from the customer reviews page https //www walmart com/reviews/product/782866746 for a single product on walmart type=reviews is not supported for walmart ca for example, to request reviews sorted by most helpful ( sort by=most helpful ), for the item id 782866746 , on walmart com the request would be http https //api bluecartapi com/request?api key=demo\&type=reviews\&item id=782866746\&sort by=most helpfulcurl l get https //api bluecartapi com/request \\ d api key="demo" \\ d type="reviews" \\ d item id="782866746" \\ d sort by="most helpful"const axios = require('axios'); // set up the request parameters const params = { api key "demo", type "reviews", item id "782866746", sort by "most helpful" } // make the http get request to bluecart api axios get('https //api bluecartapi com/request', { params }) then(response => { // print the json response from bluecart api console log(json stringify(response data, 0, 2)); }) catch(error => { // catch and print the error console log(error); })import requests import json \# set up the request parameters params = { 'api key' 'demo', 'type' 'reviews', 'item id' '782866746', 'sort by' 'most helpful' } \# make the http get request to bluecart api api result = requests get('https //api bluecartapi com/request', params) \# print the json response from bluecart api print(json dumps(api result json()))\<?php \# set up the request parameters $querystring = http build query(\[ 'api key' => 'demo', 'type' => 'reviews', 'item id' => '782866746', 'sort by' => 'most helpful' ]); \# make the http get request to bluecart api $ch = curl init(sprintf('%s?%s', 'https //api bluecartapi com/request', $querystring)); curl setopt($ch, curlopt returntransfer, true); curl setopt($ch, curlopt followlocation, true); \# the following options are required if you're using an outdated openssl version \# more details https //www openssl org/blog/blog/2021/09/13/letsencryptrootcertexpire/ curl setopt($ch, curlopt ssl verifyhost, false); curl setopt($ch, curlopt ssl verifypeer, false); curl setopt($ch, curlopt timeout, 180); $api result = curl exec($ch); curl close($ch); \# print the json response from bluecart api echo $api result; ?> reviews parameters the following parameters are available for all requests made when type=reviews in addition to the common parameters parameter required description item id optional the walmart item id to retrieve reviews for note if the item id parameter is supplied then the url parameter is ignored walmart domain optional the walmart domain to retrieve reviews for can be set to walmart com (the default), or walmart ca url optional the walmart reviews page url to retrieve reviews from sort by optional determines the sort order of reviews to return valid values are most relevant returns reviews with the most relevant reviews first most helpful returns reviews with the most helpful reviews first newest to oldest returns reviews ordered from newest to oldest oldest to newest returns reviews ordered from oldest to newest high to low rating returns reviews ordered highest to lowest rating low to high rating returns reviews ordered lowest to highest rating page optional the current page of reviews to retrieve inspect the pagination total pages property in the reviews results https //docs trajectdata com/bluecartapi/walmart product data api/results/reviews to see how many pages of reviews are available max page optional use the max page parameter to get multiple pages of results in one request the api will automatically paginate through pages and concatenate the results into one response see the pagination https //docs trajectdata com/bluecartapi/walmart product data api/pagination docs for more information next steps reviews results https //docs trajectdata com/bluecartapi/walmart product data api/results/reviews