If you sell to Shopify merchants (an app, agency services, a 3PL, a wholesale line), your lead list usually starts as a pile of domains. Before you write a single cold email you want to know three things for each one:
- Is it actually a Shopify store?
- Who is it (name, country, contact email)?
- Is it a good fit (size, price point, apps it already uses, still active)?
Every Shopify storefront exposes most of this publicly, with no API key and no admin access. Here's how.
1. Detect Shopify with /meta.json
Every Shopify store answers https://<domain>/meta.json. Try it on Allbirds:
curl -s https://www.allbirds.com/meta.json { "name": "Allbirds", "city": "Beverly Hills", "province": "California", "country": "US", "currency": "USD", "myshopify_domain": "weareallbirds.myshopify.com", "published_products_count": 365, "published_collections_count": 1354 } If myshopify_domain is present, it's Shopify. You also get the store's location, currency and product count for free. Some stores block that endpoint, so fall back to the homepage HTML: Shopify themes load assets from cdn.shopify.com and define a Shopify.theme JavaScript object.
import httpx, re, json def check_store(domain: str) -> dict: base = f"https://{domain}" with httpx.Client(follow_redirects=True, timeout=20, headers={"User-Agent": "Mozilla/5.0"}) as c: home = c.get(base).text try: meta = c.get(base + "/meta.json").json() except Exception: meta = {} is_shopify = bool(meta.get("myshopify_domain")) \\ or "cdn.shopify.com" in home or "Shopify.theme" in home theme = re.search(r"Shopify\.theme\s*=\s*(\{.*?\});", home) return { "domain": domain, "isShopify": is_shopify, "name": meta.get("name"), "country": meta.get("country"), "currency": meta.get("currency"), "products": meta.get("published_products_count"), "theme": json.loads(theme.group(1)).get("schema_name") if theme else None, } print(check_store("allbirds.com")) 2. Find the contact email
Large brands hide emails behind forms, but most small and mid-size stores publish one somewhere. Check, in order:
- the homepage footer
-
/pages/contactor/pages/contact-us - the built-in policy pages:
/policies/contact-information,/policies/privacy-policy,/policies/refund-policy
The policy pages are the underrated one. Shopify generates them on every store, and merchants often put their support email in the privacy or refund policy because they have to.
EMAIL_RE = re.compile(r"[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,}") JUNK = re.compile(r"\.(png|jpg|webp|svg|js|css)$|example\.|sentry|@2x", re.I) def find_emails(c, base): for path in ["/", "/pages/contact", "/pages/contact-us", "/policies/contact-information", "/policies/privacy-policy"]: r = c.get(base + path) found = {e.lower() for e in EMAIL_RE.findall(r.text) if not JUNK.search(e)} if found: return sorted(found) return [] Filter out image filenames like logo@2x.png and error-tracking addresses, or your list fills with garbage.
3. Qualify the lead
This is where the data gets useful for outreach.
Installed apps. Apps inject scripts into the storefront, so a plain string match on the homepage HTML tells you a lot: klaviyo (email marketing), yotpo / judge.me / okendo (reviews), rechargecdn (subscriptions), gorgias (support), attentive (SMS), klarna / afterpay (BNPL). If you sell a reviews app, a store with no reviews app is your lead. If you're a Klaviyo agency, a store already paying for Klaviyo is.
Price point and activity. /products.json?limit=250&page=1 returns the public catalog. From it you can compute the median price and the date of the newest product. A store that hasn't added a product in 400 days is probably not buying your app.
def product_stats(c, base, pages=4): prices, newest = [], None for p in range(1, pages + 1): items = c.get(f"{base}/products.json?limit=250&page={p}").json().get("products", []) if not items: break for it in items: prices += [float(v["price"]) for v in it.get("variants", []) if v.get("price")] created = it.get("created_at") if created and (newest is None or created > newest): newest = created prices.sort() return {"medianPrice": prices[len(prices) // 2] if prices else None, "newestProductAt": newest} Be polite: a few requests per store, sensible timeouts, and no hammering. Everything above is what the store shows every visitor.
Doing it for thousands of domains
The script above is fine for 50 domains. For a few thousand you need concurrency, retries, redirects (brand.com to www.brand.com to brand.co.uk), deduplication, and a CSV at the end.
Disclosure: I packaged exactly this into a hosted tool, Shopify Store Leads Enricher on Apify. You paste a list of domains and get back one row per Shopify store: name, location, currency, emails, phones, socials, 30+ detected apps, theme, product count, price range and days since the newest product. Non-Shopify and dead domains are skipped and not charged; it's $5 per 1,000 stores enriched, and Apify's free monthly credit covers a decent test run.
If you'd rather run the code yourself, the snippets above are the core of it. Either way, a list filtered by "uses Klaviyo, no reviews app, median price above $40, added products this month" will out-reply a raw list of domains by a long way.
Questions or a field you'd want added? Leave a comment.
