**Version: 202201**

# Collect Count

**GET** `/openapi/2022-01/collects/count`

Retrieves the total number of collect objects that associate products with a collection.

## Request

**Query Parameters**

- `product_id` string

  Product's ID, for example: `0097cfc8-6ec3-40ed`
- `collection_id` string

  Collection's ID, for example: `0097cfc8-6ec3-40ed`

## Responses

**200 | 422**

200

**application/json**

**Schema | Example | Result**

**Schema**

- `count` integer

  **Default value:** `0`

  **Example:** `2`

```json
{
  "count": 2
}
```

```json
{
    "count": 2
}
```

422

**application/json**

**Schema | Example | Result**

**Schema**

- `errors` string[]

```json
{
  "errors": [
    "CollectionID must be a valid UUID"
  ]
}
```

```json
{
  "errors": [
    "CollectionID must be a valid UUID",
    "ProductID must be a valid UUID"
  ]
}
```
