Get Product Review Comments
Breaking ChangesJul. 30, 2025 拿取商品相關資訊 API 異動公告 Products related API Breaking Change
Function
To retrieve product review comments.
抓取商品評價。
URL
GET <<api_domain>>/v1/product_review_comments
Request parameters
Parameter | Type | Description | Example |
|---|---|---|---|
product_id |
| Product id |
|
page |
| Page Number |
|
per_page |
| Numbers of items per Page |
|
sort_by |
| Sorting by field
|
|
order_by |
| Setting sort by created time
|
|
status |
| Status |
|
Response Fields
Field | Type | Description | Example |
|---|---|---|---|
items | Product review comment information | Please check the link on the left | |
pagination | Pagination | Please check the link on the left |
Response Example
{
"items": [
{
"id": "5f6d742ce38809bd9fcc438b",
"product_id": "5f57251ce38809bde9681c3b",
"order_id": "5f686623e38809c8ed14b1ea",
"user_id": "5f602e9c01afcd34f53db613",
"user_name": "Ming",
"status": "hidden",
"score": 1,
"comment": "Hello",
"media": [],
"created_by": "importer",
"commented_at": "2020-09-25T04:38:04.203+00:00",
"updated_at": "2020-09-25T04:38:04.203+00:00",
"created_at": "2020-09-25T04:38:04.203+00:00"
},
{
"id": "5f6d741ae38809bd9fcc438a",
"product_id": "5f57251ce38809bde9681c3b",
"order_id": "5f686623e38809c8ed14b1ea",
"user_id": "5f602e9c01afcd34f53db613",
"user_name": "Ming",
"status": "hidden",
"score": 1,
"comment": "Hello",
"media": [],
"created_by": "importer",
"commented_at": "2020-09-25T04:37:46.258+00:00",
"updated_at": "2020-09-25T04:37:46.257+00:00",
"created_at": "2020-09-25T04:37:46.257+00:00"
},
{
"id": "5f6d73d2e38809bd9fcc4389",
"product_id": "5f57251ce38809bde9681c3b",
"order_id": "5f686623e38809c8ed14b1ea",
"user_id": null,
"user_name": null,
"status": "hidden",
"score": 1,
"comment": "Hello",
"media": [],
"created_by": "importer",
"commented_at": "2020-09-25T04:36:34.610+00:00",
"updated_at": "2020-09-25T04:36:34.610+00:00",
"created_at": "2020-09-25T04:36:34.610+00:00"
},
{
"id": "5f6d72a3e38809bd9fcc4387",
"product_id": "5f6b18d6e388092cfc6a6766",
"order_id": null,
"user_id": null,
"user_name": null,
"status": "hidden",
"score": 3,
"comment": "Hello",
"media": [],
"created_by": "importer",
"commented_at": "2020-09-25T04:31:31.322+00:00",
"updated_at": "2020-09-25T04:31:31.322+00:00",
"created_at": "2020-09-25T04:31:31.322+00:00"
},
{
"id": "5f6d722fe38809bd9fcc4384",
"product_id": "5f6b18d6e388092cfc6a6766",
"order_id": null,
"user_id": null,
"user_name": null,
"status": "hidden",
"score": 3,
"comment": "Hello",
"media": [],
"created_by": "importer",
"commented_at": "2020-09-25T04:29:35.235+00:00",
"updated_at": "2020-09-25T04:29:35.235+00:00",
"created_at": "2020-09-25T04:29:35.235+00:00"
}
],
"pagination": {
"current_page": 1,
"per_page": 24,
"total_count": 5,
"total_pages": 1
}
}Note
如果不設定「sort_by」,抓到的資料排序會依據:
comment時間 新到舊
分數 高到低
Updated 13 days ago