**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**

- `comments` object[]

  *   Array [

  - `id` string

    **Example:** `23532434`
  - `store_id` string

    **Example:** `633130`
  - `username` string

    **Example:** `Joey`
  - `email` string

    **Example:**
  - `star` string

    **Example:** `5.0`
  - `like` string

    **Example:** `10`
  - `content` string

    **Example:** `Cheap but beautiful`
  - `img` string

    **Example:** `["0048955f731656d0e7fc8b5e03509ed7.webp?width=650&height=433"]`
  - `status` string

    **Example:** `1`
  - `type` string

    **Example:** `1`
  - `product_id` string

    **Example:** `a1a88be0-a1d4-47e4-a2f2-ba6e131cf447`
  - `created_at` string

    **Example:** `2024-04-24 14:02:39`
  - `updated_at` string

    **Example:** `2024-04-25 08:22:59`
  - `country` string

    **Example:** `CN`
  - `is_featured` string

    **Example:** `0`
  - `is_verified` string

    **Example:** `0`
  - `client_id`
  - `anonymous` string

    **Example:** `0`
  *   ]
- `total` string

  **Example:** `6`
- `page` string

  **Example:** `1`

```json
{
  "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"
}
```

```json
{
  "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**

- `errors` string[]

```json
{
  "errors": [
    "params is invalid"
  ]
}
```

```json
{
  "errors": [
    "params is invalid"
  ]
}
```
