List shop metafields
GET/openapi/2026-07/metafields-shop
List metafields attached to the current shop.
Request
Query Parameters
JSON: JSON valuestring: String value
A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. For example, "global"
The key of the metafield (unique within the namespace). For example, "color"
Metafield value type:
Maximum number of metafields to return per page. Default is 50
Cursor for pagination
Comma-separated list of fields to include in the response. For example, "ID,value,key"
Filter for metafields whose creation time is not later than this point. ISO-8601 format. For example, "2023-01-01T00:00:00Z"
Filter for metafields whose creation time is not earlier than this point. ISO-8601 format. For example, "2023-01-01T00:00:00Z"
Filter for metafields whose last update time is not later than this point. ISO-8601 format. For example, "2023-01-01T00:00:00Z"
Filter for metafields whose last update time is not earlier than this point. ISO-8601 format. For example, "2023-01-01T00:00:00Z"
Responses
- 200
OK
- application/json
- Schema
- Example
Schema
- Array [
shop: Shopproduct: Productproduct_image: Product imageproduct_variant: Product variantorder: Orderpage: Custom pagecustomer: Customercollection: Collectionblog: Blogarticle: Articleapp: Appdate: Datedate_time: Date and timeweight: Weightvolume: Volumedimension: Dimensioninteger: Integernumber_decimal: Decimalfile_reference: File referencesingle_line_text_field: Single-line textmulti_line_text_field: Multi-line textjson: JSONcolor: Colorrating: Ratingurl: URLboolean: Boolean (true or false)string: String- ]
error code
error message
data object
metafields object[]
List of metafields
The unique identifier for the metafield
The ID of the store that owns the metafield
Resource type the metafield is attached to:
The ID of the resource the metafield is attached to. For example, the product ID
A container for a group of metafields. Grouping metafields within a namespace prevents your metafields from conflicting with other metafields with the same key name. For example, "global"
The key of the metafield (unique within the namespace). For example, "color"
Field type of the metafield:
The value of the metafield; its data type is determined by the type field. For example, "red"
A brief description of the metafield. For example, "The color of the product"
The ID of the associated metafield definition. For example, "123456"
The time when the metafield was created, in ISO-8601 format
The time when the metafield was last updated, in ISO-8601 format
Cursor for pagination
Whether there are more records
{
"code": "string",
"message": "string",
"data": {
"metafields": [
{
"id": "string",
"store_id": 0,
"owner_resource": "string",
"owner_id": "string",
"namespace": "string",
"key": "string",
"type": "string",
"description": "string",
"definition_id": 0,
"created_at": "string",
"updated_at": "string"
}
],
"cursor": 0,
"has_more": true
}
}