**Version: 202601**

# Get metafield count

**GET** `/openapi/2026-01/metafields/:owner_resource/:owner_id/count`

Get the metafield count of a specific resource.

## Request

**Path Parameters**

- `owner_resource` string (required)

  Resource type the metafield is 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
- `owner_id` string (required)

  The ID of the resource the metafield is attached to

## Responses

**200**

OK

**application/json**

**Schema | Example**

**Schema**

- `code` string

  error code
- `message` string

  error message
- `data` object

  - `total_count` int32

    The total number of metafields

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