Shopify Storefront API · API Governance Rules
Shopify Storefront API API Rules
Spectral linting rules defining API design standards and conventions for Shopify Storefront API.
6 Rules
error 2
warn 2
info 2
Rule Categories
shopify
Rules
info
shopify-storefront-graphql-endpoint
Shopify Storefront API uses a single GraphQL endpoint
$.paths
error
shopify-storefront-access-token
Storefront API requires X-Shopify-Storefront-Access-Token authentication
$.components.securitySchemes
error
shopify-storefront-operation-id
All Storefront API operations must have operationIds
$.paths[*][get,post,put,delete,patch]
warn
shopify-storefront-graphql-content-type
GraphQL endpoint should accept application/json content type
$.paths[*].post.requestBody.content
warn
shopify-storefront-graphql-response
GraphQL responses should have data and errors fields
$.components.schemas.GraphQLResponse.properties
info
shopify-storefront-gid-format
Shopify Storefront API uses global IDs in gid://shopify/ format
$.components.schemas.*.properties.id
Spectral Ruleset
Work with this as data
Every ruleset here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for spectral rules
4 MCP tools reach this
find_rulesBrowse and filter every ruleset in the catalog.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.
Call it yourself
curl for this page
This ruleset
curl "https://apis.io/api/v1/rules/shopify-storefront-rules"
All spectral rules
curl "https://apis.io/api/v1/rules?limit=25"
Discovery needs no key. Ratings and market analysis are Pro.