Metafield Definition Count By Group

Retrieve the count of metafield definitions by group.

The Metafield Definition Count By Group API allows developers to retrieve counts of metafield definitions grouped by owner resource type.

This API is especially useful for:

  1. Analyzing metafield usage across your store
  2. Identifying frequently used definitions
  3. Monitoring custom field adoption

Request Parameters

Public Request Parameters

📘

Response Explanation

Public Response Parameters

📘

Successful Response

ParameterTypeExampleDescription
codestring"success"Status code of the response
messagestringDescriptive message of the response
data.itemsarray[object][{...}]Array of grouped count objects
data.items.countint3215Number of definitions for this resource type
data.items.owner_resourcestring"products"The resource type being counted

Error Response

FieldTypeExampleDescription
codestringInvalidParameterError http message
messagestring``Error message

API Structure Overview

Language
Credentials
Header
URL
Click Try It! to start a request and see the response here!