**版本：202601**

# 查询子款式数量

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

返回指定商品下的子款式总数。

## 请求

**Path参数**

- `product_id` string (required)

  待统计子款式数量的商品 ID

## 响应

**200**

OK

**application/json**

**数据结构 | 示例**

**数据结构**

- `code` string

  错误码
- `message` string

  错误信息
- `data` object

  - `count` int64

    子款式总数

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