DEV Community

DirectAPI Labs
DirectAPI Labs

Posted on

Which Apps Do These Shopify Stores Use? Enriching a Lead List With Python

Say you have a list of 2,000 e-commerce domains: a trade-show exhibitor list, a CRM export, or a lead database you bought. Before anyone writes a cold email you want to know three things about each domain:

  1. Is it actually a Shopify store?
  2. What does it already run? Klaviyo or Mailchimp, Yotpo or Judge.me, Recharge, a Meta Pixel…
  3. Who can I contact? A public support or sales email, plus social profiles.

If you sell a Shopify app, run an agency, or do e-commerce outbound, that's the difference between "Hi {first_name}, I noticed your store…" and an email that actually fits.

This post covers how to detect all of that from public signals (with the pitfalls I hit), and then how to run it over thousands of domains without proxies or headless browsers.


How to tell a site is Shopify (and the false positives)

Shopify storefronts leak their platform in a few public places:

  • /products.json: Shopify serves a public JSON product feed at https://<store>/products.json. A non-empty products array is a strong signal.
  • Shopify.shop = "xyz.myshopify.com": most themes print the permanent *.myshopify.com handle in an inline script.
  • Shopify.theme, Shopify.currency, Shopify.country: theme variables that also give you the store's currency and country.

A minimal check in Python:

import httpx, re

def is_shopify(domain: str) -> bool:
    with httpx.Client(follow_redirects=True, timeout=10) as c:
        try:
            r = c.get(f"https://{domain}/products.json?limit=1")
            if r.status_code == 200 and r.json().get("products"):
                return True
        except Exception:
            pass  # HTML instead of JSON, timeout, etc. NOT a Shopify signal
        html = c.get(f"https://{domain}").text
        return bool(re.search(r"Shopify\.shop\s*=|Shopify\.theme", html))
Enter fullscreen mode Exit fullscreen mode

Pitfalls I ran into while building this at scale:

  • cdn.shopify.com alone is not proof. Plenty of non-Shopify sites embed Shopify Buy Buttons or images. Counting it as a signal gave me a pile of false positives.
  • Treat errors as "unknown", not "yes". In an async pipeline it's easy to gather(..., return_exceptions=True) and then check if products:. An exception object is truthy, so every timeout became a "Shopify store". On a sample of 95 random top-ranked sites, that bug flagged 45 as Shopify. The real number was 1.
  • Some stores only answer on www.. The bare domain refuses the connection, so retry with www. before giving up.
  • Headless stores (a custom front end on top of Shopify) often hide all of these signals. You'll miss some big brands, and that's fine.

Detecting installed apps & pixels

Most Shopify apps inject a script from their own domain, so a substring check over the homepage HTML gets you far:

APPS = {
    "Klaviyo": ["klaviyo.com"], "Yotpo": ["yotpo.com"], "Judge.me": ["judge.me"],
    "Okendo": ["okendo.io"], "Attentive": ["attn.tv"], "Recharge": ["rechargeapps.com"],
    "Gorgias": ["gorgias.chat"], "Meta Pixel": ["connect.facebook.net"],
    "TikTok Pixel": ["analytics.tiktok.com"],
}
found = [app for app, sigs in APPS.items() if any(s in html.lower() for s in sigs)]
Enter fullscreen mode Exit fullscreen mode

For emails, check the homepage, /pages/contact and /policies/contact-information. Then throw away the junk you'll inevitably collect: name@domain.com placeholders from contact forms, @sentry.io addresses, image filenames like logo@2x.png, and addresses glued to the next word (shop@brand.com.Visit).


Running it over thousands of domains

If you'd rather not maintain the signatures and edge cases yourself, I packaged all of the above as Shopify Store Analyzer on Apify. Paste up to 5,000 domains per run:

{
  "domains": ["brooklinen.com", "beardbrand.com", "tentree.com", "example.com"],
  "onlyShopifyStores": true,
  "includeContacts": true
}
Enter fullscreen mode Exit fullscreen mode

You get one row per real Shopify store. Non-Shopify domains are skipped and not charged. Real output from that run (trimmed):

domain myshopify handle country email apps & pixels
brooklinen.com brooklinen2.myshopify.com US hello@brooklinen.com Yotpo, Attentive, Elevar, Meta Pixel, GTM
beardbrand.com beardbrand.myshopify.com US support@beardbrand.com Klaviyo, Judge.me
tentree.com tentree-development-store.myshopify.com US support@tentree.com Klaviyo, Yotpo, Okendo, Attentive, Klarna, GTM

example.com never shows up, because it isn't a store. Each row also includes socials, currency, a price range and a sample of live products with stock status. About 200 domains take ~1.5 minutes.

From Python:

from apify_client import ApifyClient  # pip install apify-client
import pandas as pd

client = ApifyClient("YOUR_APIFY_TOKEN")
domains = pd.read_csv("leads.csv")["website"].dropna().tolist()

run = client.actor("whthpnd/shopify-store-leads-products-api").call(
    run_input={"domains": domains, "maxProductsPerStore": 5}
)
df = pd.DataFrame(client.dataset(run["defaultDatasetId"]).list_items().items)
Enter fullscreen mode Exit fullscreen mode

Turning it into segments

This is where the data pays off. A few filters I'd actually use:

apps = df["installedAppsAndPixels"]

# Email-marketing stores without a reviews app: pitch your reviews app
no_reviews = df[apps.apply(lambda a: "Klaviyo" in a and not {"Yotpo", "Judge.me", "Okendo", "Loox"} & set(a))]

# Stores running ads with no server-side tracking: pitch tracking or attribution
ads_no_tracking = df[apps.apply(lambda a: "Meta Pixel" in a and not {"Elevar", "Triple Whale"} & set(a))]

# Premium stores (by price range) in the US with a public email
premium = df[(df["priceMin"] >= 50) & (df["country"] == "US") & (df["emails"].str.len() > 0)]
Enter fullscreen mode Exit fullscreen mode

Each of those is a list where your first line can say something specific about the store's stack.


Cost & limits

  • $3 per 1,000 Shopify stores found, and non-Shopify domains are free. Apify's free monthly credit covers roughly 1,600 stores.
  • It enriches domains you already have. It doesn't discover new stores. Get your list from a CRM, exhibitor lists, directories or a database tool, then run it through this.
  • Only public emails are returned. Stores that only have a contact form come back without one.
  • Please follow GDPR and CAN-SPAM when you contact anyone.

It also runs as a REST endpoint and an MCP server, so an AI agent can look up a single store on demand (/v1/store?domain=brooklinen.com).

If your list has a store it gets wrong, open an issue on the Actor page with the domain. That's how the detector gets better.

Top comments (0)