Search product reviews

Access scopes

Requires the following access scope: read_reviews

Path params

ParamTypeDescription
storeIdnumberEcwid store ID.

Query params

All query params are optional.

FieldTypeDescription
statusstringSearch by review status. Available values: moderated, published.
ratingnumberSearch by 5-start rating (from 1 to 5).
orderIdstringSearch by ID of the order associated with the review.
productIdnumberSearch by ID of the product associated with the review.
reviewIdnumberSearch by review ID.
createdFromstringReview creation date/time (lower bound). Supported formats: UNIX timestamp, date/time. Examples: 1447804800, 2023-01-15 19:27:50
createdTostringReview creation date/time (upper bound). Supported formats: UNIX timestamp, date/time. Examples: 1447804800, 2023-01-15 19:27:50
updatedFromstringReview update date/time (lower bound). Supported formats: UNIX timestamp, date/time. Examples: 1447804800, 2023-01-15 19:27:50
updatedTostringReview update date/time (upper bound). Supported formats: UNIX timestamp, date/time. Examples: 1447804800, 2023-01-15 19:27:50
sortBystringDefine review sorting in the response. Available values: DATE_CREATED_ASC, DATE_CREATED_DESC, RATING_ASC, RATING_DESC.
keywordstringSearch by review text from the review field.
responseFieldsstringLimit JSON response by specific fields. If specified, all missing fields will be removed from the response body.
Example: ?responseFields=items(id,status,rating)

Example of using responseFields param:

curl --location 'https://app.ecwid.com/api/v3/1003/reviews?responseFields=items(id,status,rating)' \
--header 'Authorization: Bearer secret_ab***cd'
{
    "generalInfo": {
        "storeId": 1003,
        "storeUrl": "https://store1003.company.site/"
    }
}

Headers

The Authorization header with a secret access token is required.

HeaderFormatDescription
AuthorizationBearer secret_ab***cdAccess token of the application.

Response

A JSON object with the following fields:

FieldTypeDescription
totalnumberThe total number of found items (might be more than the number of returned items).
countnumberThe total number of the items returned in this request.
offsetnumberOffset from the beginning of the returned items list (for paging).
limitnumberMaximum possible number of returned items in this request.
itemsArray itemsList of found product reviews with full details.

items

FieldTypeDescription
idnumberReview ID.
statusnumberReview status. One of:
moderated - review is sent by a customer but not yet published.
published - review is published.
ratingnumberProduct rating selected by a customer from 1 to 5.
customerIdnumberID of a customer associated with the review.
productIdnumberID of the reviewed product.
orderIdnumberID of the order associated with the review.
reviewstringText of the review.
reviewerInfoobject{reviewerInfo}Details about the customer who placed the review.
createDatestringDate when the customer submitted the review in date format, e.g. "2021-05-26 13:37:46 +0000".
updateDatestringDate of the latest review update in date format, e.g. "2021-05-27 10:00:00 +0000".
createTimestampnumberDate when the customer submitted the review in UNIX, e.g. 1622036266926.
updateTimestampnumberDate of the latest review update in UNIX, e.g. 1622758299634.

reviewerInfo

FieldTypeDescription
namestringName of the customer associated with the review.
emailstringEmail of the customer associated with the review.
countrystringCountry specified by the customer in an order associated with the review.
citystringCity specified by the customer in an order associated with the review.
ordersnumberAmount of orders placed by the customer associated with the review.
Language
Click Try It! to start a request and see the response here!