Using storefront api within a Shopify based store?

Topic summary

• Core question: Whether it’s allowed to call Shopify’s Storefront API (GraphQL) directly from a Shopify theme’s client-side code, or if the API is intended only for headless storefronts.

• Context from OP: Remembers guidance implying it’s not allowed or is headless-only, and references the vague “can’t duplicate Shopify functionality” rule. Couldn’t find a clear policy in documentation, terms, or forums.

• Reply highlights: A participant cites Shopify docs stating apps that enable the Storefront API must request relevant unauthenticated access scopes during OAuth or admin authentication. From this, they infer the API isn’t strictly headless-only and see no reason it would be disallowed.

• Status and gaps: No authoritative, explicit policy confirming client-side theme usage is provided. No concrete decision or action items. The question remains unresolved and open to further clarification from official sources.

Summarized with AI on February 11. AI used: gpt-5.

Hello guys, and sorry for the somewhat general-basic question - but I can’t find any clear answer regarding this.

I have a past memory that it’s not allow to use the Storefront API (GraphQL) inside a Shopify based store. I mean to call the Storefront API from the actual theme files and use it in the client side.

I can recall that the Storefront API is for headless purpose only but I lost the source that saying that. Just found the same old saying “Can’t duplicate Shopiy funcionality” - but it’s so unclear.

I looked into the docs, t&c and forums and can’t find a clear answer.

Can someone clarify?

Thanks.

1 Like

“Apps that enable the Storefront API must explicitly request relevant unauthenticated access scopes during OAuth, or during authentication in the Shopify admin.”

So if apps can use it, that must mean it is not just for headless I guess? In any case, I would not see why you would not be allowed to use it.