Version: 202201
Get Comment List
GET/openapi/2022-01/comments/list
Retrieve a list of comments for a specific product or across multiple products, based on various filters.
Request
Query Parameters
product_id string
Product's ID
created_at_min string
Filter comments created at or after date, for example: 2018-10-01T16:15:47-04:00
created_at_max string
Filter comments created at or before date, for example: 2018-10-01T16:15:47-04:00
updated_at_min string
Filter comments last updated at or after date, for example: 2018-10-01T16:15:47-04:00
updated_at_max string
Filter comments last updated at or before date, for example: 2018-10-01T16:15:47-04:00
sort_by string
Specify the sort field, for example: star or created_at
sort_direction string
Specify the sort direction, for example: asc or desc
page int32
Page number
limit int32
Limit per page, 10, 20, 50, 100 allowed
status string
Comment status, 1: published, 0: unpublished
Responses
- 200
- 400
200
- application/json
- Schema
- Example
- Result
Schema
- Array [
- ]
comments object[]
idstring
Example:
23532434store_idstring
Example:
633130usernamestring
Example:
Joeyemailstring
Example:
starstring
Example:
5.0likestring
Example:
10contentstring
Example:
Cheap but beautifulimgstring
Example:
["0048955f731656d0e7fc8b5e03509ed7.webp?width=650&height=433"]statusstring
Example:
1typestring
Example:
1product_idstring
Example:
a1a88be0-a1d4-47e4-a2f2-ba6e131cf447created_atstring
Example:
2024-04-24 14:02:39updated_atstring
Example:
2024-04-25 08:22:59countrystring
Example:
CNis_featuredstring
Example:
0is_verifiedstring
Example:
0client_id
anonymousstring
Example:
0totalstring
Example:
6pagestring
Example:
1{
"comments": [
{
"id": "23532434",
"store_id": "633130",
"username": "Joey",
"email": "",
"star": "5.0",
"like": "10",
"content": "Cheap but beautiful",
"img": "[\"0048955f731656d0e7fc8b5e03509ed7.webp?width=650&height=433\"]",
"status": "1",
"type": "1",
"product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
"created_at": "2024-04-24 14:02:39",
"updated_at": "2024-04-25 08:22:59",
"country": "CN",
"is_featured": "0",
"is_verified": "0",
"client_id": {},
"anonymous": "0"
}
],
"total": "6",
"page": "1"
}
{
"comments": [
{
"id": "23532434",
"store_id": "633130",
"username": "Joey",
"email": "",
"star": "5.0",
"like": "10",
"content": "Cheap but beautiful",
"img": "[\"0048955f731656d0e7fc8b5e03509ed7.webp?width=650&height=433\"]",
"status": "1",
"type": "1",
"product_id": "a1a88be0-a1d4-47e4-a2f2-ba6e131cf447",
"created_at": "2024-04-24 14:02:39",
"updated_at": "2024-04-25 08:22:59",
"country": "CN",
"is_featured": "0",
"is_verified": "0",
"client_id": null,
"anonymous": "0"
}
],
"total": "6",
"page": "1"
}
400
- application/json
- Schema
- Example
- Result
Schema
errorsstring[]
{
"errors": [
"params is invalid"
]
}
{
"errors": [
"params is invalid"
]
}