How to check if a website uses Shopify
Checked on 2026-11-24.
Three things give a Shopify store away, and Shopify documents each of them: the DNS records that point a store's domain at Shopify, what its theme puts in the page (files under /cdn/shop/, a "Powered by Shopify" link, the window.Shopify object), and the Ajax API at /cart.js. A headless store, whose front end runs somewhere else, shows few of them. For a list of domains, one API request per domain answers with the store's facts, or with a 404 not_shopify that costs nothing.
1. In the browser
- The footer. Shopify themes can show a "Powered by Shopify" link: the Liquid
powered_by_linkobject writes it, pointing at shopify.com withutm_campaign=poweredby. Its absence proves nothing: the Help Center explains how merchants remove the message "when you don't want it displayed in your store". - The console. Shopify's Ajax API documentation says "the global value
window.Shopify.routes.rootis available" to theme code as the base of its addresses, and that it always ends in a/. Open the developer console and typeShopify.routes.root: where a Shopify theme defines it you get a path ending in/, elsewhere an error. - The page source. Theme files are served from Shopify's CDN. The Liquid reference shows
asset_urlturningcart.jsinto an address of the form//polinas-potent-potions.myshopify.com/cdn/shop/t/4/assets/cart.js. On a store's own domain the/cdn/shop/path appears under that domain: the icon in our saved answer for www.allbirds.com sits underwww.allbirds.com/cdn/shop/files/. A script block in the source also names the store's myshopify.com domain and its theme, as the theme and apps guide shows.
2. The domain's DNS records
A store that uses its own domain points it at Shopify. The Help Center's page on connecting a third-party domain gives the records: an A record to 23.227.38.65, an AAAA record to 2620:0127:f00f:5::, and a www CNAME record to shops.myshopify.com. It adds that the A record "can display an address with a different host ID", the last of the four numbers, depending on the region, and gives 23.227.38.32 as an example. With dnspython (2.9.2, Python 3.11 or later):
# pip install dnspython
import dns.exception
import dns.resolver
def points_to_shopify(host):
"""True when host has one of the records Shopify's Help Center tells stores to set."""
for rdtype in ("CNAME", "A"):
try:
answer = dns.resolver.resolve(host, rdtype)
except dns.exception.DNSException: # no such record, no such name, timeout
continue
for record in answer:
if rdtype == "CNAME" and str(record.target).rstrip(".").lower() == "shops.myshopify.com":
return True
if rdtype == "A" and record.address.startswith("23.227.38."):
return True
return False
for host in ["allbirds.com", "www.allbirds.com"]:
print(host, points_to_shopify(host))Shopify also expects these records to be published as they are. Its Cloudflare page asks merchants to set every record that points to Shopify to "DNS only", and says "Cloudflare proxy setups, including Orange-to-Orange, aren't supported".
Where it stops: DNS tells you where a domain points, not what a visitor sees there; check the host the store is actually on, such as www or a shop. subdomain. A domain that is not connected to its store, or a headless front end hosted elsewhere, points somewhere else. And the addresses are the Help Center's of today: if Shopify changes them, the check has to change too.
3. In Python: the page and /cart.js
The Ajax API is "a suite of lightweight REST API endpoints for development of Shopify themes", and GET /{locale}/cart.js returns the cart as JSON, with fields such as token, item_count, items and currency. The documentation also says that it "can only be used by themes that are hosted by Shopify", that it is unauthenticated, and that it has "no hard rate limits" but is "still subject to Shopify's standard API abuse-prevention measures". One request to it, and one for the home page, give you four signs:
# pip install requests
import requests
def shopify_signs(host):
"""The signs of a Shopify theme in a site's home page and its /cart.js."""
signs = []
session = requests.Session()
try:
page = session.get(f"https://{host}/", timeout=15).text
except requests.exceptions.RequestException:
return signs
if "/cdn/shop/" in page:
signs.append("theme files under /cdn/shop/")
if ".myshopify.com" in page:
signs.append("a myshopify.com address")
if "utm_campaign=poweredby" in page:
signs.append("the Powered by Shopify link")
try:
cart = session.get(f"https://{host}/cart.js", timeout=15).json()
if isinstance(cart, dict) and "item_count" in cart and "items" in cart:
signs.append("/cart.js answers with a cart")
except (requests.exceptions.RequestException, requests.exceptions.JSONDecodeError):
pass
return signs
print(shopify_signs("www.allbirds.com"))Where it stops: the page tests are text matches. A blog post or an agency's site that writes about Shopify can contain a myshopify.com address, which is why one sign is weaker than two. A store can serve a script a different page than it serves a browser, or refuse the request. Keep the requests few: these are a store's pages, not an API meant for your crawler.
Headless stores
Shopify's headless documentation describes them: "Headless commerce separates your storefront's frontend from its backend", and "You choose the stack, framework, and hosting for your frontend." Shopify hosts one kind of them itself: Oxygen is "Shopify's hosting platform for Hydrogen storefronts". Such a store has no Shopify theme, so the theme files, the footer link and Shopify.routes.root are missing, and the Ajax documentation says "You can't use the Ajax API on a Shopify custom storefront". None of the outside checks above settles whether a headless site sells through Shopify.
4. One request per domain: the store endpoint
The Pipefetch Shopify store endpoint reads a site's home page and the public feeds a Shopify storefront keeps, and answers only when it finds a store's facts there: its myshopify.com domain, a theme with an id, products or collections. A site where it finds none answers 404 not_shopify, which costs nothing.
import os
import requests
def shopify_check(domain):
res = requests.get(
"https://pipefetch.com/v1/shopify/store",
params={"url": domain, "products": 1, "collections": 0}, # a small answer; the price is the same
headers={"x-api-key": os.environ["PIPEFETCH_API_KEY"]},
timeout=90,
)
if res.status_code == 404:
return res.json()["error"]["code"] # not_shopify or website_unreachable: not charged
res.raise_for_status()
store = res.json()["data"]["store"]
return f"Shopify: {store['myshopifyDomain']} ({store['currency']}, {store['country']})"
for domain in ["www.allbirds.com"]: # your list of domains
print(domain, shopify_check(domain))The same from Node.js:
const url = new URL('https://pipefetch.com/v1/shopify/store');
url.searchParams.set('url', 'www.allbirds.com');
url.searchParams.set('products', '1');
url.searchParams.set('collections', '0');
const res = await fetch(url, { headers: { 'x-api-key': process.env.PIPEFETCH_API_KEY } });
const body = await res.json();
if (res.status === 404) {
console.log(body.error.code); // not_shopify or website_unreachable: not charged
} else {
console.log(body.data.store.myshopifyDomain, body.data.theme);
}For www.allbirds.com, our saved answer of November 19, 2026 has the store domain weareallbirds.myshopify.com, the currency USD and the country US. The full answer also has the theme, the apps and pixels found in the home page, products, collections and contact details; the reference lists every field. products=1 and collections=0 keep the answer small when you only want to know whether a site is a store.
Where it stops: it reads what a store serves to a plain HTTP request, without a browser. A headless store has no Shopify theme to state those facts, so it can come back as not_shopify. A site that does not exist, does not answer within 15 seconds or refuses the request answers 404 website_unreachable, which is free and tells you nothing either way. store.currency and store.country are those the store showed our request, so for a store that sells in several markets they are one market's. A store answer costs 1 credit, and most requests take 2 to 9 seconds. A new account has 100 free credits and needs no card. It is not an official Shopify API, and Pipefetch is not affiliated with Shopify or with the stores it reads.
If your list mixes platforms and you want each site's stack, not only a yes or no, the tech stack endpoint names a shop's store platform and payment providers along with its framework, hosting and email setup; the technology detection guide covers that question.
Which one should you use?
| Situation | Use |
|---|---|
| One site, right now | The browser console: Shopify.routes.root, and the page source |
| Many domains, without loading any page | The DNS check |
| Many domains, with a second opinion from the storefront | The page and /cart.js check |
| A yes or no with the store's domain, theme and products, from a server | The store endpoint |
Try it with 100 free credits. No card needed. No scraper to build or maintain. Get an API key or read the docs.
APIs used in this guide
-
1 credit
Website Tech Stack API
The technologies a website runs on, by category, with its hosting, DNS, email setup, tracking ids and security headers.
GET /v1/web/tech -
1 credit
Shopify Store API
What a Shopify store shows about itself: its theme, the apps and pixels found on it, products, collections and contact details.
GET /v1/shopify/store
More Shopify stores guides
Guides for other sources
Every source
YouTube
- How to get a YouTube transcript in Python
- How to get a YouTube transcript in Node.js
- YouTube API quota exceeded: what the error means and how to fix it
- How to find a YouTube channel ID from a handle or URL
- How to download YouTube subtitles as SRT or VTT
- youtube-transcript-api RequestBlocked or IpBlocked: why it happens and how to fix it
- How to get YouTube comments in Python
- How to search YouTube from Python
- How to list a YouTube channel's videos in Python
- How to summarize a YouTube video with an LLM in Python
- How to get YouTube transcripts and video stats in Google Sheets
- How to get YouTube video views and likes in Python
- How to get YouTube transcripts in n8n, Make and Zapier
- LangChain YoutubeLoader fails on a server: why, and a loader that works
- How to get a YouTube channel's subscriber count in Python
- How to give Claude or Cursor access to YouTube (MCP server)
- How to get YouTube comments in Node.js
- How to analyze YouTube comments with an LLM in Python
- How to list a YouTube channel's Shorts in Python
- How to search YouTube from JavaScript
- How to get an Instagram follower count in Python
- Instagram Basic Display API alternatives: what to use after the shutdown
- Instaloader 401 Unauthorized, 429 and "Login required": what to do
- How to calculate an Instagram engagement rate in Python
- How to get an Instagram follower count in Node.js
- How to get Instagram follower counts in Google Sheets
- How to get Instagram Reel views in Python
Websites
- Clearbit Logo API alternatives: get a company logo from its domain
- How to extract email addresses from a website in Python
- How to turn a web page into Markdown in Python
- How to detect what a website is built with, in Python
- How to get the contact emails and phone numbers of websites in Google Sheets
- How to build a LangChain tool that reads web pages and searches Google
- How to turn a web page into Markdown in JavaScript for RAG
- How to extract social media links from a website in Python
- How to get a website's favicon in Python
- How to check robots.txt in Python before you fetch a page
TikTok
- How to get a TikTok video's views and likes in Python
- How to get the comments of a TikTok video in Python
- How to get a TikTok follower count in Python
- TikTok Research API: who can get access, and what to do if you cannot
- How to get TikTok video views, likes and shares in Node.js
- How to get TikTok views, likes and follower counts in Google Sheets
- How to get a Facebook Page's posts without app review
- Is there a Facebook Marketplace API?
- Facebook Groups API alternatives after its removal in 2024
- How to get a Facebook Page's follower count and contact details in Python
- How to get Google search results in Python
- pytrends 429 TooManyRequestsError: what it means and what to do
- How to get Google Trends data in Python
- Why is Wyoming first in Google Trends?
- How to get Google search results in Node.js
- How to get Google search results into Google Sheets
- How to give an LLM live Google results with tool calling
Threads
- How to get LinkedIn company data in Python
- How to search LinkedIn jobs from Python
- How to get a LinkedIn company page's latest posts in Python