Join us for an upcoming Shopify Partner webinar on February 27, 2024. Discover the latest Checkout Extensibility features, and deep dive on improvements to Shopify Functions and Web Pixels. Register now for either the 10am EST or 2pm EST sessions.

How to access metafield using shopify storefront API?

27 0 4

Hello all

I am trying to get Metafield using Shopify storefront API but all the information Is get to accept meta fields. So can you please help me to find out the exact solutions or any alternative solutions?

I have attached zip and in this file some screenshot for Shopify storefront API request and response payload.

Reply 1 (1)

Shopify Partner
67 12 24

You need to make sure you expose the specific metafields you need using the Storefront API by enabling them via the metafieldStorefrontVisibilityCreate Admin API mutation: