Core APIs
...
Parameters
Customer Feedback

Questions

3min

Questions Parameters

GET /request

The Questions Parameters are applicable when making a request with type=questions to retrieve customer Questions 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 Depot product page). The parameters should be appended as querystring parameters to the Home Depot Product Data API GET HTTP request.

Questions are retrieved from the customer questions page for a single product on Home Depot.

Customer Questions Page
Customer Questions Page


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

HTTP
Curl
Node.js
Python
PHP



Questions Parameters

The following parameters are available for all requests made when type=questions in addition to the Common Parameters.

Parameter

Required

Description

item_id

required

The Home Depot Item ID to retrieve Questions 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 Depot for to retrieve questions 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 Depot first, then retrieving the questions for the first matching item_id .

url

optional

The Home Depot questions-page URL to retrieve Questions from.

sort_by

optional

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

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



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



  1. most_answered
  2. Returns questions with most answers first.



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



  1. featured_questions
  2. Returns featured questions first.



  1. can_you_answer
  2. Returns questions returned under the "can you answer these questions" filter first (questions with no answer yet).



  • 

    Document image
    



search_term

optional

search term to use to search questions.

  • 

    Document image
    

page

optional

The current page of questions to retrieve. Inspect the pagination.total_pages property in the Questions results to see how many pages of questions are available. Note the maximum number of questions per page is 10 (this is a Home Depot 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      Questions Results

Updated 07 Aug 2024
Did this page help you?