**版本：202601**

# 查询元字段数量

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

返回指定资源的元字段数量。

## 请求

**Path参数**

- `owner_resource` string (required)

  所属资源类型：

  *   `shop`: 店铺
  *   `product`: 商品
  *   `product_image`: 商品图片
  *   `product_variant`: 商品款式
  *   `order`: 订单
  *   `page`: 自定义页面
  *   `customer`: 顾客
  *   `collection`: 商品专辑
  *   `blog`: 博客
  *   `article`: 文章
  *   `app`: 应用
- `owner_id` string (required)

  所属资源的 ID

## 响应

**200**

OK

**application/json**

**数据结构 | 示例**

**数据结构**

- `code` string

  错误码
- `message` string

  错误信息
- `data` object

  - `total_count` int32

    元字段总数

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