**Version: 202601**

# Get metafield definition count by group

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

Retrieve the count of metafield definitions by group.

## Responses

**200**

OK

**application/json**

**Schema | Example**

**Schema**

- `code` string

  error code
- `message` string

  error message
- `data` object

  - `items` object[]

    Number of metafield definitions grouped by owner resource

    *   Array \[

    - `count` int32

      Number of metafield definitions under this owner resource
    - `owner_resource` string

      Resource type the metafield definitions are attached to:

      *   `shop`: Shop
      *   `product`: Product
      *   `product_image`: Product image
      *   `product_variant`: Product variant
      *   `order`: Order
      *   `page`: Custom page
      *   `customer`: Customer
      *   `collection`: Collection
      *   `blog`: Blog
      *   `article`: Article
      *   `app`: App
    *   \]

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