**版本：202601**

# 按分组统计元字段定义数量

**GET** `/openapi/2026-01/metafield_definition/group_count`

按所属资源分组返回元字段定义的数量。

## 响应

**200**

OK

**application/json**

**数据结构 | 示例**

**数据结构**

- `code` string

  错误码
- `message` string

  错误信息
- `data` object

  - `items` object[]

    按所属资源分组统计的元字段定义数量列表

    *   Array \[

    - `count` int32

      该资源下的元字段定义数量
    - `owner_resource` string

      所属资源类型：

      *   `shop`: 店铺
      *   `product`: 商品
      *   `product_image`: 商品图片
      *   `product_variant`: 商品款式
      *   `order`: 订单
      *   `page`: 自定义页面
      *   `customer`: 顾客
      *   `collection`: 商品专辑
      *   `blog`: 博客
      *   `article`: 文章
      *   `app`: 应用
    *   \]

```json
{
  "code": "string",
  "message": "string",
  "data": {
    "items": [
      {
        "count": 0,
        "owner_resource": "string"
      }
    ]
  }
}
```
