Retrieve shop-level metafield via Admin API

Topic summary

Retrieving shop-level metafields when the Storefront API doesn’t expose them.

  • Context: A need to access shop-level metafields (custom data attached to the shop) was identified. Storefront API was tried but does not surface shop-level metafields.

  • Proposed solution: Use the Shopify Admin API (GraphQL) to query metafields at the shop level.

  • Latest update: A response points to the Admin GraphQL documentation for the metafield query (version 2023-07): https://shopify.dev/docs/api/admin-graphql/2023-07/queries/metafield, indicating this is the supported path to retrieve them.

  • Outcome: No step-by-step code or examples provided in-thread; the action item is to implement the Admin GraphQL metafield query per the docs. No disagreements noted.

  • Status: Tentatively addressed with documentation link; confirmation or additional implementation details remain open.

Summarized with AI on January 4. AI used: gpt-5.

Hey @victor_dyode_88

Sure, here’s how: https://shopify.dev/docs/api/admin-graphql/2023-07/queries/metafield