Architecture comparison diagram illustrating Shopify Storefront API vs Admin API, showing customer-facing headless storefront requests versus backend store management operations by CodeVibez.

Shopify Storefront API vs Admin API: What Each Is For

If you're planning a headless storefront, a custom app, or an integration with another system, you'll quickly run into two names: the Storefront API and the Admin API. They sound similar, they both use GraphQL, and they both talk to the same Shopify store. But they're built for very different jobs.

Picking the wrong one causes real problems. Use the Admin API where the Storefront API belongs, and you risk exposing powerful credentials to the public. Use the Storefront API for back-office work, and you'll find the data you need simply isn't there.

This guide explains what each API is for, in plain language, with enough technical detail for developers and enough clarity for the business owner signing off the project.

The Short Answer

The Storefront API is for customer-facing experiences: showing products, managing carts, and sending shoppers to checkout on headless sites, mobile apps, and other custom storefronts. The Admin API is for running the store behind the scenes: managing products, orders, inventory, customers, and settings, and connecting Shopify to systems like ERPs. Many projects use both, each for its own side of the work.

The Storefront API: Built for Shoppers

Shopify describes the Storefront API as the way to create custom shopping experiences on any platform, including the web, mobile apps, and games. It lets customers view products and collections, add items to a cart, and go to checkout.

Think of it as the API that does what your online store's front end does, but for any interface you build.

What It Can Do

  • Show products, collections, prices, and availability

  • Search the catalog

  • Show pages, blogs, and articles

  • Create and update carts, then hand the shopper to Shopify checkout

  • Show localized prices and translated content for different markets

  • Support logged-in customers, including B2B buyers seeing their own pricing

  • Read metafields and metaobjects you've made available to the storefront

What It Can't Do

It can't manage your store. You can't use it to edit products, update inventory, read every order, or change settings. That's deliberate: it only exposes what a shopper should be able to see or do.

Key Facts

  • GraphQL only. Shopify states there's no REST version of the Storefront API.

  • Built for scale. According to Shopify, requests from real shoppers aren't subject to a fixed requests-per-minute limit, while bots, crawlers, and checkout creation are limited.

  • Common tools: Shopify's Hydrogen framework (built on React), the official Storefront API client for JavaScript, and Shopify's mobile SDKs for iOS and Android.

The Admin API: Built for Running the Store

Shopify describes the Admin API as the API for building apps and integrations that extend and enhance the Shopify admin. Anything a merchant or staff member does in the Shopify admin, an app with the right permissions can usually do through the Admin API.

What It Can Do

  • Create and update products, variants, collections, and metafields

  • Read and manage orders, refunds, and fulfillments

  • Update inventory across locations

  • Manage customers, B2B companies, and catalogs

  • Create discounts

  • Configure Shopify Markets and other store settings

  • Subscribe to webhooks, so your system hears about new orders or stock changes the moment they happen

  • Run bulk operations to export or import large amounts of data

In short, it's the API behind most apps, ERP and warehouse integrations, and internal tools.

GraphQL or REST?

Shopify offers the Admin API in GraphQL, and older integrations may still use the REST version. Shopify's REST Admin API reference is clear about the direction: the REST Admin API has been a legacy API since October 1, 2024, and all new public apps must be built exclusively with the GraphQL Admin API from April 1, 2025. Shopify also notes that some newer platform features may only be available in GraphQL.

For any new project, use the GraphQL Admin API. If you have an older integration still running on REST, it's worth planning a migration rather than waiting for something to break.

Side-by-Side Comparison


Storefront API

Admin API

Who it serves

Shoppers

Merchants, staff, apps, and integrations

Typical use

Headless storefronts, mobile apps, custom shopping experiences

Apps, back-office tools, ERP and warehouse integrations

Can it change store data?

Only carts and customer actions

Yes: products, orders, inventory, customers, settings

Formats

GraphQL only

GraphQL (REST is legacy)

Where it runs

Browser, mobile app, or server

Server only

Access

Tokenless for basic features, or public and private tokens

Access token with specific permissions (scopes)

Rate limiting

No fixed per-minute limit for real shopper traffic; bots and checkout creation are limited

Calculated query costs, measured in points

Endpoint

/api/{version}/graphql.json

/admin/api/{version}/graphql.json

The simplest way to remember it: if a shopper triggers it, it's probably the Storefront API. If the business triggers it, it's probably the Admin API.

Which API for Which Job?

What you're building

API to use

Why

A headless storefront (for example, with Hydrogen or another framework)

Storefront API

Shows products and handles carts for shoppers

A native iOS or Android shopping app

Storefront API

Same reason, through Shopify's mobile SDKs

Products shown inside a blog, game, or another website

Storefront API

Read-only product data plus cart and checkout

A sync with your ERP, warehouse, or accounting system

Admin API

Needs to read orders and update products, stock, and prices

A public or custom Shopify app with admin screens

Admin API

Manages store data on the merchant's behalf

Bulk product imports or data exports

Admin API (bulk operations)

Built for large volumes of store data

Reacting to new orders or stock changes in real time

Admin API webhooks

Shopify notifies your system as events happen

Showing B2B pricing to logged-in wholesale buyers on a headless site

Storefront API

Supports buyer context, so prices reflect the buyer's company

Creating B2B companies and catalogs from your ERP

Admin API

Manages B2B setup data

If you're building a standard Shopify theme (not headless), you usually don't call either API directly for most storefront features. The theme uses Liquid, and apps handle the back-office side.

Using Both Together

Most serious projects use both APIs, each on its own side of the business.

Example 1: A Headless Store Connected to an ERP

  • The storefront (built with Hydrogen or another framework) uses the Storefront API to show products, prices, and stock, and to manage the cart.

  • Shoppers check out through Shopify checkout.

  • An integration on a server uses the Admin API to send new orders to the ERP and update stock and prices in Shopify.

  • Webhooks from the Admin API tell the integration the moment an order is placed.

Example 2: A Custom App With a Storefront Feature

  • The app's admin screens use the Admin API so staff can set up rules, for example which products appear in a bundle.

  • The storefront part of the app (a theme block or an app proxy) reads what it needs, often through metafields or the Storefront API, to show the bundle to shoppers.

Example 3: A B2B Ordering Portal

  • The Admin API creates companies, locations, and catalogs, often synced from an ERP.

  • The Storefront API shows logged-in buyers their own catalog and pricing, using buyer context.

The pattern is consistent: the Admin API keeps store data correct, and the Storefront API presents it to shoppers.

Security and Access: What Never Goes in the Browser

This is the section to read twice. Most serious API mistakes on Shopify are about where credentials end up.

Storefront API Access

According to Shopify's documentation, the Storefront API offers three levels of access:

  • Tokenless access for essentials such as products, collections, search, pages, and carts, with a query complexity limit.

  • Public access tokens for use in a browser or mobile app, where shoppers can technically see the token. That's acceptable because it only unlocks shopper-level features.

  • Private access tokens for server-side use, such as a Hydrogen backend. Shopify warns these must be kept secret and never used on the client side.

Features such as product tags, metafields and metaobjects, navigation menus, and customer data require a token. Shopify also recommends sending the shopper's IP address with server-side requests, so its bot protection can tell real shoppers apart.

Admin API Access

Every Admin API request carries an access token that can read or change store data. That makes the rules simple:

  • Never put an Admin API token in front-end code, a browser, a mobile app, or a public code repository

  • Only call the Admin API from a server or a secure environment you control

  • Request only the permissions (scopes) your app needs. Shopify recommends this to limit damage if a token leaks

  • Store tokens securely, for example in environment variables or a secrets manager, never in code

  • Rotate or revoke tokens when people or agencies stop working on the project

If a frontend developer asks for an Admin API token to "just show some data," that's a sign the feature should either use the Storefront API or go through a small server-side endpoint.

Limits, Performance, and Versioning

Rate Limits

The two APIs are limited in very different ways, which tells you a lot about what each is for.

  • Storefront API: Shopify says it scales with shopper traffic, so requests from real shoppers don't have a fixed per-minute limit. Bots and crawlers are limited, as is checkout creation. Tokenless access has a query complexity limit.

  • Admin API (GraphQL): Shopify limits it using calculated query costs, measured in points. Each field costs points, so bigger, more complex queries use up your allowance faster. Shopify's error messages note that a single query has a maximum cost, and recommend bulk operations for large amounts of data.

Practical Performance Tips

  • Ask only for the fields you need. That's the main benefit of GraphQL, and it keeps queries cheap and fast.

  • Use bulk operations in the Admin API for big exports and imports instead of paging through thousands of records.

  • Use webhooks instead of repeatedly asking the Admin API whether anything changed.

  • Cache Storefront API responses where it makes sense, such as product listings that don't change by the second.

  • Handle throttling gracefully with retries and backoff, rather than failing outright.

Versioning

Both APIs are versioned, and the version is part of the request URL (for example, 2026-10). Shopify releases a new version every quarter, and each version is supported for a limited time. Specify a supported version, review Shopify's developer changelog regularly, and plan time each year to move integrations to newer versions before older ones stop being supported.

Frequently Asked Questions

What's the difference between the Shopify Storefront API and Admin API?

The Storefront API powers customer-facing experiences such as headless storefronts and mobile apps: products, carts, and checkout. The Admin API manages the store behind the scenes: products, orders, inventory, customers, and settings, and it's used by apps and integrations.

Which Shopify API should I use for a headless store?

The Storefront API, usually with Shopify's Hydrogen framework or another frontend framework. If the headless store also needs to sync with other systems, that part uses the Admin API on a server.

Is the Shopify REST Admin API deprecated?

Shopify marked the REST Admin API as legacy on October 1, 2024, and requires all new public apps to use the GraphQL Admin API from April 1, 2025. New projects should use GraphQL.

Can I use the Admin API in the browser?

No. Admin API tokens can read and change store data, so they must stay on a server. Use the Storefront API for anything that runs in a shopper's browser or mobile app.

Does the Storefront API have rate limits?

Shopify says real shopper traffic isn't subject to a fixed per-minute limit. Bots, crawlers, and checkout creation are limited, and tokenless access has a query complexity limit.

Do I need an access token for the Storefront API?

Not for basic features like products, collections, search, and carts, which support tokenless access. You need a token for features such as metafields, metaobjects, menus, product tags, and customer data.

Building Something With Shopify's APIs?

CodeVibez is a Shopify Plus Preferred Partner that has supported more than 1,000 Shopify stores across D2C, B2B, wholesale, ERP integrations, and point of sale. We build custom apps, integrations, and storefront features on Shopify's APIs, and we can help you decide which API belongs where before any code is written.

Schedule a free call or contact our team.

Back to blog