storefront-api

storefront-api is a skill for Claude Code from khadinakbarlabs/shopify-app-builder. It costs 95 tokens per session (3,661 once invoked), scanned A, original, MIT.

A guide to Shopify’s Storefront API, which lets customer-facing websites read shop data and manage shopping carts, checkouts, and customer accounts.

In plain words
What is it for?
It supports product browsing, collection search, cart actions, checkout links, customer login, orders, addresses, and market-specific pricing.
Why use it?
It helps developers build a custom storefront without using Shopify’s standard online-store pages.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the shopify-app-builder plugin — 32 skills, 9 commands, 5 agents shipped together

Good fit It supports product browsing, collection search, cart actions, checkout links, customer login, orders, addresses, and market-specific pricing.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/khadinakbarlabs/shopify-app-builder/storefront-api
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add khadinakbarlabs/shopify-app-builder --skill storefront-api
Clone the repo
git clone --depth 1 https://github.com/khadinakbarlabs/shopify-app-builder

Made for: Claude Code.

Or install shopify-app-builder, the plugin that ships this one along with the rest of its 32 skills, 9 commands, 5 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for storefront-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/khadinakbarlabs/shopify-app-builder/storefront-api.svg)](https://agentmods.dev/skills/khadinakbarlabs/shopify-app-builder/storefront-api)
Your own site
<a href="https://agentmods.dev/skills/khadinakbarlabs/shopify-app-builder/storefront-api"><img src="https://agentmods.dev/badge/skills/khadinakbarlabs/shopify-app-builder/storefront-api.svg" alt="Measured on agentmods" height="20"></a>
Per session 95 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,661 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00095 $0.03661
Opus 5 $0.00048 $0.01831
Sonnet 5 $0.00019 $0.00732
Haiku 4.5 $0.00010 $0.00366

Measured 7d ago against content hash 27be262ebb9e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

storefront-api scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 7d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

const response = await fetch(this.endpoint, {
skills/storefront-api/SKILL.md · 799 lines

How it starts

The opening of the file, as written. The whole thing — 799 lines — stays where its author put it; the contents beside it link to each section on GitHub.

When to Use Storefront API

Use Storefront API for customer-facing applications:

  • Building custom storefronts (headless commerce)
  • Shopping cart and checkout flows
  • Product browsing and search
  • Customer account management (orders, addresses)
  • Subscription management
  • Market-specific pricing and inventory (with Market directives)
  • Cart line operations (add, remove, update)
  • Customer authentication and profiles

DO NOT use for: store management, admin operations, or internal tools (use Admin API instead).


Token Types & Scopes

Public Access Tokens

Use for: Frontend applications, public data access

const publicToken = 'Xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; // Public token
const shopDomain = 'mystore.myshopify.com';
const endpoint = `https://${shopDomain}/api/2026-01/graphql.json`;

const headers = {
  'Content-Type': 'application/json',
  'X-Shopify-Storefront-Access-Token': publicToken,
};

Scopes enabled with public token:

  • Read products
  • Read product collections
  • Read shop information
  • Read customer information (requires customer login)
  • Create shopping carts
  • Manage shopping carts
  • Access checkout URLs

Private Access Tokens (Storefront)

Use for: Backend/server-side access with elevated permissions

const privateToken = process.env.SHOPIFY_STOREFRONT_PRIVATE_TOKEN;

const headers = {
  'Content-Type': 'application/json',
  'X-Shopify-Storefront-Access-Token': privateToken,
};

Additional scopes with private token:

  • Full customer account access
  • All storefront operations
  • No rate limiting (unlike public token: 2 requests/second per IP)

Headers & Configuration

Standard Storefront Headers:

const headers = {
  'Content-Type': 'application/json',
  'X-Shopify-Storefront-Access-Token': accessToken,
};

TypeScript Headers Interface:

interface StorefrontHeaders {
  'Content-Type': 'application/json';
  'X-Shopify-Storefront-Access-Token': string;
  'Accept-Language'?: string; // For locale-specific data
}

Read the full file on GitHub · 799 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 7d ago First seen · 799 lines · 95 tokens per session scan A 27be262ebb9e

Subscribe to this mod's changes

storefront-api is a skill published in the GitHub repository khadinakbarlabs/shopify-app-builder (1 stars, last pushed 28d ago), licensed MIT. It adds 95 tokens to every session and 3,661 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.