Skip to main content
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

    owner_resource stringrequired

    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 stringrequired

    The ID of the resource the metafield is attached to

Responses

OK

Schema
    codestring

    error code

    messagestring

    error message

    data object
    total_countint32

    The total number of metafields