Skip to main content
Back to Glossary (S)
Glossary · S

Storefront API.

The Storefront API is Shopify's interface through which a custom front end, such as a website, an app or a kiosk screen, retrieves products, collections, prices and the cart from a Shopify store. It is the technical basis for headless stores on Shopify.

Illustration of "Storefront API": Code editor showing produkt.graphql produkt.graphql1queryProdukt($handle:String!){2product(handle:$handle){3title4priceRange{minVariantPrice{amount}}5variants(first:10){nodes{idtitle}}6}7}Own front end, checkout at Shopify

Storefront API — Explained in Detail

A Shopify store consists of data (products, prices, stock, customers, orders) and a front end, normally the theme. The Storefront API lets you build the front end yourself while still fetching the data from Shopify. It delivers everything a customer sees and does in the shop: products with variants and images, collections, search, prices per market, the customer account and the cart. For payment it returns a checkout address; the checkout itself stays with Shopify.

It should be distinguished from the Admin API. The Admin API is for management: creating products, editing orders, booking stock, syncing data with accounting or inventory. It needs far-reaching rights and never belongs in the browser. The Storefront API is meant for the public side, has restricted rights and may be called directly from a website or app. Both belong to the family of APIs; technically the Storefront API uses GraphQL, with queries that request exactly the fields needed.

The Storefront API is what makes headless commerce possible: the front end is a separate application, often built with Next.js and delivered pre-rendered, while Shopify manages catalogue, stock, prices, checkout and orders. Shopify also offers its own framework, Hydrogen. To keep content current, webhooks report product changes to the front end, which regenerates the affected pages. Custom fields such as care instructions or material details come through metafields if they are exposed to the storefront.

The gain is design freedom, speed and the ability to combine content and products on one domain. The price is a software project with its own hosting and upkeep. Features that apps otherwise insert into the theme must be connected through their interface or rebuilt, and tracking, consent and structured data become your own responsibility. Liquid then plays no role for the shop pages, see Liquid.

What it looks like in practice

Three of our shop references run this way. At Racher, a custom front end built with Next.js and the Storefront API has replaced the earlier theme since 4 November 2026; the old addresses were kept, and payment happens in the Shopify checkout. Versa Loro presents designer fashion in a custom front end, also with Shopify as the checkout. At The Sartorialist, branded goods from Shopify appear under thesartorialist.ch/shop in the website's design.

Our offer is described under Shopify agency Switzerland; bespoke stores with us start with the Shop Showcase package from CHF 10,000, and we quote headless projects according to scope.

What stays with Shopify

Even in a headless store, Shopify remains the system for products, prices, stock, taxes, payment methods, checkout, orders and customer accounts. Merchants keep maintaining their range in the familiar admin. That is the key difference from a fully custom build: the sensitive parts, above all payment and order handling, are not rebuilt.

Anyone checking whether a headless store suits their range and team should first clarify which installed apps will still be needed in the custom front end and who will look after the front end after launch.

In-depth on the blog

Headless Shopify mit Next.js

Frequently Asked Questions About Storefront API

The Storefront API delivers the public data for a shop front end: products, collections, cart and customer account. The Admin API is for management with far-reaching rights, such as editing orders or booking stock, and is used only server-side.

The interface is part of the Shopify platform and included in the plans. Costs arise for developing and hosting your own front end and for maintaining it.

In the usual setup, yes. The custom front end hands the cart over to the Shopify checkout, often on its own subdomain. Payment, taxes and order confirmation happen there.

Ready for Your Project?

Apply this knowledge to your website — DLM Digital will help you.