Version: 202506
Get metafield count
GET/openapi/2025-06/metafields/:owner_resource/:owner_id/count
Retrieve the count of metafields for a specific resource.
Request
Path Parameters
shop: Shopproduct: Productproduct_image: Product imageproduct_variant: Product variantorder: Orderpage: Custom pagecustomer: Customercollection: Collectionblog: Blogarticle: Articleapp: App
owner_resource stringrequired
Resource type the metafield is attached to:
owner_id stringrequired
The ID of the resource the metafield is attached to
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
codestring
error code
messagestring
error message
data object
total_countint32
The total number of metafields
{
"code": "string",
"message": "string",
"data": {
"total_count": 0
}
}