Get Comment List

Retrieve a list of comments for a specific product or across multiple products, based on various filters.

🔒

Requires read_comments access scope.

The Get Comment List API Retrieve a list of comments for a specific product or across multiple products, based on various filters.

This API is especially useful for:

  1. Displaying product reviews on storefronts
  2. Analyzing customer sentiment across products

Request Parameters

Public Request Parameters

📘

Query Parameters

ParameterTypeRequiredDescriptionExample
cursorstringNoCursor for pagination"abc123"
page_sizeint32NoLimit per page (default: 20)50
product_idstringNoFilter comments by product ID"prod_12345"
created_at_minstringNoFilter comments created after this timestamp (YYYY-MM-DDTHH:mm:ssZ)"2025-01-01T00:00:00Z"
created_at_maxstringNoFilter comments created before this timestamp (YYYY-MM-DDTHH:mm:ssZ)"2025-06-01T23:59:59Z"
updated_at_minstringNoFilter comments updated after this timestamp (YYYY-MM-DDTHH:mm:ssZ)"2025-05-01T00:00:00Z"
updated_at_maxstringNoFilter comments updated before this timestamp (YYYY-MM-DDTHH:mm:ssZ)"2025-05-31T23:59:59Z"
sort_bystringNoField to sort by (star, created_at, like)"star"
sort_directionstringNoSort direction (asc or desc)"desc"
statusstringNoFilter by comment status (1 for published, 0 for unpublished)"1"

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring"success"Status code of the response
messagestring"Comments retrieved successfully"Operation result message
data.commentsarray of comment objectList of comment objects
data.comments[]. idinteger12345Unique identifier for the comment
data.comments[]. store_idinteger67890ID of the store where comment was posted
data.comments[]. user_namestring"JohnDoe"User name who posted the comment
data.comments[]. emailstring"[email protected]"Email of the commenter
data.comments[]. starstring"4"Rating provided by the user
data.comments[]. likeinteger5Number of likes for the comment
data.comments[]. contentstring"Great product!"Content of the comment
data.comments[]. imagesarray of strings["https://example. com/image1.jpg"]URLs of images attached to the comment
data.comments[]. statusinteger1Status of the comment (0=unpublished, 1=published)
data.comments[]. typeinteger0Type of comment
data.comments[]. product_idstring"prod_12345"Product ID the comment belongs to
data.comments[]. created_atstring"2025-05-15T14:30:00Z"Timestamp when comment was created
data.comments[]. updated_atstring"2025-05-16T09:15:00Z"Timestamp when comment was last updated
data.comments[]. countrystring"US"Country code of comment origin
data.comments[]. is_featuredinteger0Whether comment is featured (0=no, 1=yes)
data.comments[]. is_verifiedinteger1Whether comment is verified (0=no, 1=yes)
data.comments[]. client_idstring"client_123"Client identifier
data.comments[]. anonymousinteger0Whether comment is anonymous (0=no, 1=yes)
data.comments[]. product_publishedinteger1Whether product is published (0=no, 1=yes)
data.cursorstring"next_page_token"Pagination cursor for next page
data.has_morebooleantrueWhether more comments are available

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!