**版本：202201**

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

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

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

## 响应

**200**

200

**application/json**

**数据结构 | 示例 | Result**

**数据结构**

- `items` object[]

  *   Array [

  - `owner_resource` string

    **示例：** `product`
  - `count` integer

    **默认值：** `0`

    **示例：** `3`
  *   ]

```json
{
  "items": [
    {
      "owner_resource": "product",
      "count": 3
    }
  ]
}
```

```json
{
  "items": [
    {
      "owner_resource": "product",
      "count": 3
    },
    {
      "owner_resource": "shop",
      "count": 1
    }
  ]
}
```
