Core APIs
...
Product API
Parameters

Reviews

3min

Reviews Parameters

GET /request

The Reviews Parameters are applicable when making a request with type=reviews to retrieve customer Reviews for a single product on Home Depot - the product is specified using either the item_id or url parameter (where the url parameter contains a link to a Home Improvement product page). The parameters should be appended as querystring parameters to the Home Improvement Product Data API GET HTTP request.

Reviews are retrieved from the customer reviews page for a single product on Home Depot.

Customer Reviews Page
Customer Reviews Page


For example, to request reviews sorted by most helpful ( sort_by=most_helpful ), for the Item ID 317061059 , the request would be:

HTTP
Curl
Node.js
Python
PHP



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

required

The Home Improvement Item ID to retrieve Reviews for.

Note : If the item_id parameter is supplied then the url parameter is ignored.

gtin

optional

The GTIN/ISBN/UPC code to look up a matching product on Home Improvement for to retrieve reviews for. If the gtin parameter is supplied then the item_id parameter is ignored. GTIN-based requests work by looking up the GTIN/ISBN/UPC on Home Improvement first, then retrieving the reviews for the first matching item_id .

url

optional

The Home Improvement reviews-page URL to retrieve Reviews from.

sort_by

optional

Determines the sort order of reviews to return. Valid values are:

  1. photo_reviews
  2. Returns reviews with photos first.



  1. most_helpful
  2. Returns reviews with the most helpful reviews first.



  1. newest_to_oldest
  2. Returns reviews ordered from newest to oldest.



  1. oldest_to_newest
  2. Returns reviews ordered from oldest to newest.



  1. high_to_low_rating
  2. Returns reviews ordered highest to lowest rating.



  1. low_to_high_rating
  2. Returns reviews ordered lowest to highest rating.



  • 

    Document image
    

search_term

optional

A search term to use to search reviews.

  • 

    Document image
    

reviewer_type

optional

The type of reviewer to retrieve reviews from. Valid values are:

  1. verified_purchase
  2. Include reviews by Verified Purchasers only.



  1. all
  2. Include all reviews, regardless of whether they are from Verified Purchasers or not.



  • 

    Document image
    

five_star

optional

  • 

    Document image
    

Set to true to filter to only reviews that give the product a 5-star rating.

four_star

optional

Set to true to filter to only reviews that give the product a 4-star rating.

three_star

optional

Set to true to filter to only reviews that give the product a 3-star rating.

two_star

optional

Set to true to filter to only reviews that give the product a 2-star rating.

one_star

optional

Set to true to filter to only reviews that give the product a 1-star rating.

page

optional

The current page of reviews to retrieve. Inspect the pagination.total_pages property in the Reviews results to see how many pages of reviews are available.

Note the maximum number of reviews per page is 10 (this is a Home Improvement limit).

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 docs for more information.



Next Steps      Reviews Results

Updated 08 Aug 2024
Did this page help you?