**Version: 202201**

# Get Metafields Count

**GET** `/openapi/2022-01/:resource/:resource_id/metafields/count`

## Request

**Path Parameters**

- `resource` string (required)

  The type of resource that the metafield is attached to. Available resources: `shop`, `product`, `product_image`, `product_variant`, `order`, `page`, `customer`, `collection`, `blog`, `article`.
- `resource_id` string (required)

  The unique ID of the resource that the metafield is attached to.

## Responses

**200**

200

**application/json**

**Schema | Example | Result**

**Schema**

- `count` integer

  **Default value:** `0`

  **Example:** `2`

```json
{
  "count": 2
}
```

```json
{
  "count": 2
}
```
