New Shopify Certification now available: Liquid Storefronts for Theme Developers

Getting URL from Metafields API call

Shopify Partner
84 4 14


Hey There, 

I am using the following GET 


and it is returning the metafield object which looks like this:


"metafield": {
"namespace": "theme",
"key": "image",
"value": "gid://shopify/MediaImage/value",
"description": null,
"created_at": "2023-06-24T16:34:47+10:00",
"updated_at": "2023-06-26T15:44:13+10:00",
"owner_resource": "product",
"type": "file_reference",
"admin_graphql_api_id": "gid://shopify/Metafield/value"

I am looking to get the URL of the file via the API, any ideas how I would do that?

Replies 0 (0)