get
https://{subdomain}.myshoplaza.com/openapi/2025-06/metafield_definition/group_count
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:
- Analyzing metafield usage across your store
- Identifying frequently used definitions
- Monitoring custom field adoption
Request Parameters
Public Request Parameters
Response Explanation
Public Response Parameters
Successful Response
| Parameter | Type | Example | Description |
|---|---|---|---|
code | string | "success" | Status code of the response |
message | string | Descriptive message of the response | |
data.items | array[object] | [{...}] | Array of grouped count objects |
data.items.count | int32 | 15 | Number of definitions for this resource type |
data.items.owner_resource | string | "products" | The resource type being counted |
Error Response
| Field | Type | Example | Description |
|---|---|---|---|
code | string | InvalidParameter | Error http message |
message | string | `` | Error message |
