**版本：202201**

# 查询元字段s 数量

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

## 请求

**Path参数**

- `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.

## 响应

**200**

200

**application/json**

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

**数据结构**

- `count` integer

  **默认值：** `0`

  **示例：** `2`

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

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