Product Review List
Introduction
Retrieve the list of reviews for a specified product:
API Endpoint
bash
POST /product/v1/reviewListrequest body
| Field | Type | Required | Description |
|---|---|---|---|
filter | object | No | Filter parameters |
orderby | array | No | Sorting parameters |
page | integer | No | Default: 1 |
pagesize | integer | No | Default: 10 |
filter Optional Parameters
| Field | Type | Required | Description |
|---|---|---|---|
product_id | string | Yes | Product ID |
orderby Optional Parameters
| Field | Required | Description |
|---|---|---|
rating | No | Rating |
review_id | No | Review ID |
request example
bash
curl 'https://openapi.fastmoss.com/product/v1/reviewList' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer xxxxxxxxxx' \
--data '{
"filter": {
"product_id": "1729448464509734958",
},
"orderby": {
"field": "rating",
"order": "desc"
},
# "orderby": {
# "field": "review_id",
# "order": "desc"
# },
"page": 1,
"pagesize": 10
}'response body
data.list
| Field | Type | Description |
|---|---|---|
review_id | string | Review ID |
uid | string | User ID |
sku_id | string | SKU ID |
sku_specification | string | SKU Specification |
rating | int | Rating |
digg_count | int | Like Count |
content | string | Comment Content |
create_time | timestamp | Creation Time |
data.total
| Field | Type | Description |
|---|---|---|
total | string | Total Records |
response example
json
{
"code": 0,
"data": {
"list": [
{
"review_id": "7354810045655336747",
"sku_id": "1729448464509800494",
"sku_specification": "Item: Default",
"rating": 5,
"digg_count": 0,
"content": "",
"create_time": 1712425181310
},
],
"total": "3809"
},
"message": "success",
"timestamp": 1743573480,
"request_id": "efd631c4-92cf-5d27-4f41-de09f20dd714"
}