X-ShopId

The HTTP X-ShopId response header is an unofficial, Shopify-specific header containing the numeric identifier of the shop handling the request.

Note

The X- prefix for non-standard headers is deprecated per RFC 6648.

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

Takeaway

The X-ShopId header identifies the Shopify store serving a response using its internal numeric identifier. The value is primarily useful for debugging, request tracing, and infrastructure fingerprinting.

See also

Last updated: March 6, 2026