**Version: 202601**

# Count variants

**GET** `/openapi/2026-01/products/:product_id/variants/count`

Count the number of variants for a specific product.

## Request

**Path Parameters**

- `product_id` string (required)

  The product ID to count variants for

## Responses

**200**

OK

**application/json**

**Schema | Example**

**Schema**

- `code` string

  error code
- `message` string

  error message
- `data` object

  - `count` int64

    The count of variants

```json
{
  "code": "string",
  "message": "string",
  "data": {
    "count": 0
  }
}
```
