**Version: 202201**

# Product Total Count

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

Count the number of products based on the provided filters.

## Request

**Query Parameters**

- `ids` string

  Product's IDs, separated by comma, for example: `9e79ca1f-9ff2-409b-976f-98be343d38a3,9e79ca1f-9ff2-409b-976f-98be343d38ae`
- `title` string

  Product's title
- `collection_id` string

  Collection's ID, for example: `9e79ca1f-9ff2-409b-976f-98be343d38a3`
- `created_at_min` string

  Filter products created at or after date, for example: `2018-10-01T16:15:47-04:00`
- `created_at_max` string

  Filter products created at or before date, for example: `2018-10-01T16:15:47-04:00`
- `updated_at_min` string

  Filter products last updated at or after date, for example: `2018-10-01T16:15:47-04:00`
- `updated_at_max` string

  Filter products last updated at or before date, for example: `2018-10-01T16:15:47-04:00`
- `published_at_min` string

  Filter products published at or after date, for example: `2018-10-01T16:15:47-04:00`
- `published_at_max` string

  Filter products published at or before date, for example: `2018-10-01T16:15:47-04:00`
- `published_status` string

  Filter by published status: `published`, `unpublished`, `any`

## Responses

**200 | 422 | 500**

200

**application/json**

**Schema | Example | Result**

**Schema**

- `count` integer

  **Default value:** `0`

  **Example:** `509`

```json
{
  "count": 509
}
```

```json
{
  "count": 509
}
```

422

**application/json**

**Schema | Example | Result**

**Schema**

- `errors` string[]

```json
{
  "errors": [
    "failed verification: the published status is invalid"
  ]
}
```

```json
{"errors": ["failed verification: the published status is invalid"]}
```

500

**application/json**

**Schema | Example | Result**

**Schema**

- `errors` string[]

```json
{
  "errors": [
    "No context"
  ]
}
```

```json
{"errors": ["No context"]}
```
