X-ShopId
Every Shopify store has a unique numeric identifier, and the X-ShopId unofficial response header exposes that value in HTTP responses for debugging and request tracing.
Note
The "X-" naming convention for HTTP headers, "X" referring to "experimental", has been deprecated and needs to be transitioned to the formal naming convention for HTTP headers.
Usage
Shopify assigns every store a unique numeric identifier. The X-ShopId header exposes this identifier in HTTP responses, making the originating store visible in response HTTP headers without inspecting the request URL or application payload.
The value is useful for debugging and request tracing in environments where multiple Shopify stores share infrastructure or where proxies and CDNs sit between the client and Shopify's origin servers. Automated technology detection tools and crawlers also rely on this header to fingerprint Shopify-powered sites.
Values
Numeric shop identifier
The value is an integer representing the internal Shopify store ID. Older stores tend to have shorter identifiers while newer stores receive longer ones as the ID space grows.
Example
A response from a Shopify storefront includes the store's numeric identifier. This particular value identifies a specific store within Shopify's infrastructure.
X-ShopId: 55083958454
A shorter identifier indicates an older store created earlier in Shopify's history.
X-ShopId: 14872774
The same identifier appears in both X-ShopId and X-Sorting-Hat-ShopId, since both reference the same store. Seeing these headers together confirms which store and routing path handled the request.
X-ShopId: 70290178333
X-Sorting-Hat-ShopId: 70290178333