# Shopify Store Scraper: Contacts, Tech Stack & Catalog (`luochengfengqi/shopify-store-leads-analyzer`) Actor

Extracts storefront metadata, public contact details (emails, phones, social profiles), detected Shopify apps, tracking pixels, payment gateways, and product catalog pricing statistics from Shopify domains.

- **URL**: https://apify.com/luochengfengqi/shopify-store-leads-analyzer.md
- **Developed by:** [luochengfengqi](https://apify.com/luochengfengqi) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Shopify Store Scraper: Contacts, Tech Stack & Catalog

Extracts storefront metadata, public contact details (emails, phone numbers, social links), frontend app and tracking pixel signatures, payment gateways, and product catalog pricing statistics from Shopify domains.

The Actor performs direct HTTP requests against standard Shopify endpoints (`/meta.json`, `/products.json`, `/collections.json`, `/robots.txt`, `/llms.txt`) and common storefront contact pages (`/pages/contact`, `/policies/contact-information`, `/pages/about`) without launching a headless browser.

***

### Table of Contents

1. [Data Sources and Extraction Pipeline](#data-sources-and-extraction-pipeline)
2. [Supported App, Pixel, and Payment Signatures](#supported-app-pixel-and-payment-signatures)
3. [Input Parameters](#input-parameters)
4. [Output Schema and Field Reference](#output-schema-and-field-reference)
5. [Non-Shopify and Error Handling](#non-shopify-and-error-handling)
6. [Usage Examples (Console, cURL, Python, Node.js)](#usage-examples)
7. [Limitations and Notes](#limitations-and-notes)

***

### Data Sources and Extraction Pipeline

For each domain in `stores`, the Actor runs four extraction stages:

1. **Storefront Metadata (`/` and `/meta.json`)**
   - Normalizes the input into an `https://` root URL and follows HTTP redirects to resolve the canonical storefront URL.
   - Reads `Shopify.shop`, `Shopify.currency`, `Shopify.country`, and `Shopify.theme` JavaScript globals embedded in the storefront HTML alongside `/meta.json` when publicly exposed.
   - Verifies whether the site is hosted on Shopify (`cdn.shopify.com`, `Shopify.shop`, `myshopify.com`, or a valid `/products.json` payload).
2. **Contact Details, Physical Address, and Social Profiles**
   - Parses all `<script type="application/ld+json">` blocks (`Organization`, `OnlineStore`, `LocalBusiness`, and `@graph` arrays) for structured `email`, `telephone`, `contactPoint`, `address` (`PostalAddress`), and `sameAs` social profile URLs.
   - When `crawlContactPages` is `true`, dynamically discovers internal links matching `/pages/*(contact|support|help|impressum|imprint|legal-notice|about)*` from the homepage HTML alongside standard Shopify policy routes (`/pages/contact`, `/policies/contact-information`, `/policies/legal-notice`, `/pages/about`).
   - Extracts `mailto:` links, `tel:` links, and text email addresses, removes asset filenames and placeholder addresses (`example.com`, `sentry.io`, `wixpress.com`), and ranks emails using a domain and prefix scoring function (`scoreEmail`): emails matching the store's own domain and customer-facing prefixes (`support@`, `hello@`, `contact@`, `info@`, `sales@`, `press@`, `wholesale@`) are ranked highest, while compliance or legal prefixes (`privacy@`, `legal@`, `dpo@`, `dmca@`, `jobs@`) are demoted.
3. **App, Pixel, and Payment Fingerprinting**
   - Scans script tags, stylesheet links, and inline script blocks against 65 signature patterns covering Shopify marketing apps, review widgets, customer support desks, subscription tools, analytics pixels, and checkout payment gateways.
4. **Product Catalog Aggregation (`/products.json` and `/collections.json`)**
   - Paginates `/products.json?limit=250&page=N` up to `maxProductsSample` (up to 500 products per store).
   - Evaluates every variant across sampled products to compute `minPrice`, `maxPrice`, `avgPrice`, `medianPrice`, `onSalePct` (percentage of products with at least one variant where `compare_at_price > price`), `avgDiscountPct` (average markdown percentage across discounted variants), `inStockPct` (percentage of products with at least one variant where `available === true`), `earliestProductPublishedAt`, `latestProductPublishedAt`, and top product types, vendors, and tags.
5. **Structured Data and Crawler Directives (`/robots.txt` and `/llms.txt`)**
   - Checks whether the storefront includes `schema.org/Product` or `Organization` JSON-LD, exposes a `/llms.txt` index, and permits AI search crawlers (`GPTBot`, `ClaudeBot`, `PerplexityBot`) in `/robots.txt`.

***

### Supported App, Pixel, and Payment Signatures

| Category (`techCategories`) | Detected Tools / Providers (`installedApps`) |
| :--- | :--- |
| `email_marketing` | `Klaviyo`, `Omnisend`, `Privy`, `Mailchimp` |
| `sms_marketing` | `Attentive`, `Postscript` |
| `reviews_ugc` | `Yotpo`, `Judge.me`, `Loox`, `Okendo`, `Stamped.io`, `Junip`, `Trustpilot` |
| `customer_support` | `Gorgias`, `Zendesk`, `Tidio`, `Intercom`, `Re:amaze` |
| `subscriptions` | `ReCharge`, `Skio`, `Smartrr`, `Bold Subscriptions` |
| `loyalty_rewards` | `Smile.io`, `LoyaltyLion`, `Rivo` |
| `analytics_attribution` | `Triple Whale`, `Elevar`, `Northbeam`, `Lucky Orange`, `Hotjar`, `Microsoft Clarity` |
| `page_builder_merchandising` | `PageFly`, `Shogun`, `GemPages`, `Rebuy` |
| `compliance` | `OneTrust`, `Pandectes GDPR` |

| Signal Array | Detected Providers |
| :--- | :--- |
| `adPixels` | `Meta Pixel`, `TikTok Pixel`, `Google Tag Manager`, `Google Analytics / Ads`, `Pinterest Tag`, `Snapchat Pixel`, `Reddit Pixel`, `Bing UET`, `Criteo`, `Applovin Axon` |
| `paymentMethods` | `Shop Pay`, `PayPal`, `Apple Pay`, `Google Pay`, `Klarna`, `Afterpay`, `Affirm`, `Amazon Pay`, `Sezzle` |

***

### Input Parameters

| Parameter | Type | Default | Required | Description |
| :--- | :--- | :--- | :--- | :--- |
| `stores` | `string[]` | 3 sample domains | No | Array of Shopify store domains or URLs (`allbirds.com`, `https://www.tentree.com`, `shop.example.com`). |
| `maxProductsSample` | `integer` | `100` | No | Maximum number of products fetched from `/products.json` per store (`10` to `500`). |
| `crawlContactPages` | `boolean` | `true` | No | When `true`, probes `/pages/contact`, `/pages/contact-us`, `/policies/contact-information`, `/pages/about`, and `/pages/about-us` when contact details are not all present on the homepage. |
| `checkAiReadiness` | `boolean` | `true` | No | When `true`, requests `/llms.txt` and `/robots.txt` to populate `hasLlmsTxt` and `allowsAiCrawlers`. |

#### Example Input JSON

```json
{
  "stores": [
    "allbirds.com",
    "tentree.com",
    "beardbrand.com"
  ],
  "maxProductsSample": 250,
  "crawlContactPages": true,
  "checkAiReadiness": true
}
```

***

### Output Schema and Field Reference

#### Sample Dataset Record

```json
{
  "domain": "tentree.com",
  "storeUrl": "https://www.tentree.com/",
  "isShopify": true,
  "storeName": "tentree",
  "myshopifyDomain": "tentree-2.myshopify.com",
  "currency": "USD",
  "country": "US",
  "themeName": "tentree-production",
  "description": "Earth-First essentials made using the most sustainable (and comfortable) materials in the world.",
  "bestEmail": "support@tentree.com",
  "emails": [
    "support@tentree.com"
  ],
  "phones": [
    "+1-800-965-3727"
  ],
  "socialLinks": {
    "instagram": "https://www.instagram.com/tentree",
    "tiktok": "https://www.tiktok.com/@tentree",
    "facebook": "https://www.facebook.com/tentree",
    "youtube": "https://www.youtube.com/@tentree"
  },
  "installedApps": [
    "Klaviyo",
    "Yotpo",
    "Gorgias"
  ],
  "techCategories": [
    "email_marketing",
    "reviews_ugc",
    "customer_support"
  ],
  "adPixels": [
    "Google Tag Manager",
    "Meta Pixel",
    "TikTok Pixel"
  ],
  "paymentMethods": [
    "Shop Pay",
    "PayPal",
    "Klarna"
  ],
  "productsSampled": 100,
  "totalVariantsSampled": 482,
  "collectionsCount": 25,
  "avgPrice": 64.5,
  "medianPrice": 58,
  "minPrice": 18,
  "maxPrice": 228,
  "onSalePct": 18,
  "inStockPct": 91,
  "topProductTypes": [
    "Women's Hoodies & Sweatshirts",
    "Men's T-Shirts",
    "Accessories"
  ],
  "topVendors": [
    "tentree"
  ],
  "topTags": [
    "organic-cotton",
    "recycled-polyester",
    "bestseller"
  ],
  "latestProductPublishedAt": "2026-10-12T16:00:00-07:00",
  "sampleProducts": [
    {
      "title": "Cloud Shell Jacket",
      "handle": "cloud-shell-jacket",
      "productType": "Outerwear",
      "vendor": "tentree",
      "price": 168,
      "available": true,
      "url": "https://tentree.com/products/cloud-shell-jacket",
      "publishedAt": "2026-10-12T16:00:00-07:00"
    }
  ],
  "hasProductJsonLd": true,
  "hasLlmsTxt": false,
  "allowsAiCrawlers": true,
  "scrapedAt": "2026-10-20T07:30:00.000Z"
}
```

#### Field Reference

| Field | Type | Nullable | Description |
| :--- | :--- | :--- | :--- |
| `domain` | `string` | No | Normalized hostname (without `www.`). |
| `storeUrl` | `string` | No | Final resolved storefront URL after redirects. |
| `isShopify` | `boolean` | No | `true` if verified as a Shopify storefront. |
| `storeName` | `string` | Yes | Store title extracted from `/meta.json`, `og:site_name`, or `<title>`. |
| `myshopifyDomain` | `string` | Yes | Underlying `<slug>.myshopify.com` identifier read from `Shopify.shop` or `/meta.json`. |
| `currency` | `string` | Yes | Active storefront ISO 4217 currency code (e.g. `"USD"`, `"GBP"`, `"EUR"`). |
| `country` | `string` | Yes | Store country code from `Shopify.country` or `/meta.json`. |
| `address` | `string` | Yes | Physical merchant address extracted from JSON-LD `PostalAddress` (`streetAddress`, `addressLocality`, `addressRegion`, `postalCode`, `addressCountry`) or `/meta.json`. |
| `themeName` | `string` | Yes | Active Shopify theme name from `Shopify.theme.name`. |
| `description` | `string` | Yes | Meta description (`meta[name="description"]` or `og:description`). |
| `bestEmail` | `string` | Yes | Highest-ranked public contact email selected by domain match and prefix priority (`support@`, `hello@`, `contact@`, `info@`, `sales@` ranked above `privacy@` / `legal@`). `null` if none found. |
| `emails` | `string[]` | No | All distinct public email addresses found across homepage, dynamically discovered contact/policy pages, and JSON-LD, sorted by relevance score. |
| `phones` | `string[]` | No | All distinct phone numbers found via JSON-LD `telephone`, `tel:` links, or text patterns. |
| `socialLinks` | `object` | No | Key-value map of detected social profile URLs (`instagram`, `tiktok`, `facebook`, `youtube`, `twitter`, `linkedin`, `pinterest`). |
| `installedApps` | `string[]` | No | Detected Shopify apps from storefront HTML signatures. |
| `techCategories` | `string[]` | No | Distinct functional categories corresponding to `installedApps`. |
| `adPixels` | `string[]` | No | Detected advertising, analytics, and tag manager pixels. |
| `paymentMethods` | `string[]` | No | Detected payment gateways and express checkout options (`Shop Pay`, `Klarna`, `PayPal`, etc.). |
| `productsSampled` | `integer` | No | Number of products fetched from `/products.json` (up to `maxProductsSample`). |
| `totalVariantsSampled` | `integer` | No | Total SKU variants across the sampled products. |
| `collectionsCount` | `integer` | Yes | Number of collections returned by `/collections.json` (`null` if endpoint is disabled). |
| `avgPrice` | `number` | Yes | Arithmetic mean of positive variant prices across sampled products. |
| `medianPrice` | `number` | Yes | Median (`P50`) variant price across sampled products. |
| `minPrice` | `number` | Yes | Lowest positive variant price across sampled products. |
| `maxPrice` | `number` | Yes | Highest variant price across sampled products. |
| `onSalePct` | `integer` | Yes | Percentage (`0` to `100`) of sampled products with at least one variant where `compare_at_price > price`. |
| `avgDiscountPct` | `integer` | Yes | Average markdown percentage (`0` to `95`) across all discounted variants where `compare_at_price > price`. |
| `inStockPct` | `integer` | Yes | Percentage (`0` to `100`) of sampled products with at least one available variant. |
| `topProductTypes` | `string[]` | No | Up to 5 most frequent `product_type` values in the catalog sample. |
| `topVendors` | `string[]` | No | Up to 5 most frequent `vendor` values in the catalog sample. |
| `topTags` | `string[]` | No | Up to 10 most frequent product tags in the catalog sample. |
| `earliestProductPublishedAt` | `string` | Yes | Oldest `published_at` timestamp among sampled products. |
| `latestProductPublishedAt` | `string` | Yes | Most recent `published_at` timestamp among sampled products. |
| `sampleProducts` | `object[]` | No | Up to 5 representative product objects (`title`, `handle`, `productType`, `vendor`, `price`, `available`, `url`, `publishedAt`). |
| `hasProductJsonLd` | `boolean` | No | `true` if storefront HTML contains `application/ld+json` with `Product` or `Organization` schema. |
| `hasLlmsTxt` | `boolean` | No | `true` if `GET /llms.txt` returns HTTP 200 with plain text content. |
| `allowsAiCrawlers` | `boolean` | No | `true` unless `/robots.txt` explicitly disallows `GPTBot`, `ClaudeBot`, or `PerplexityBot`. |
| `scrapedAt` | `string` | No | ISO 8601 UTC timestamp when the store was analyzed. |

***

### Non-Shopify and Error Handling

When processing a batch of domains, if a domain is not a Shopify storefront or blocks automated HTTP requests, the Actor records a diagnostic item and continues to the next domain:

```json
{
  "domain": "example.org",
  "storeUrl": "https://example.org",
  "isShopify": false,
  "status": "NOT_SHOPIFY_OR_BLOCKED",
  "httpStatus": 200,
  "scrapedAt": "2026-10-20T07:30:00.000Z"
}
```

When filtering results downstream, check `item.isShopify === true` to isolate verified Shopify storefronts.

***

### Usage Examples

#### 1. Running in Apify Console (Web UI)

1. Click **Use Actor** on the Store page.
2. In **Store Domains or URLs**, enter one domain or URL per row (for example `allbirds.com`, `tentree.com`, `gymshark.com`).
3. Set **Max Products to Sample** (`100` by default; increase up to `500` for larger catalogs).
4. Keep **Fetch Contact and Policy Pages** enabled to extract emails and phone numbers from `/pages/contact` and `/policies/contact-information`.
5. Click **Start** and export the resulting Dataset as CSV, Excel, or JSON.

#### 2. cURL (Synchronous Run + Dataset JSON Output)

```bash
curl -X POST "https://api.apify.com/v2/acts/luochengfengqi~shopify-store-leads-analyzer/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "stores": ["allbirds.com", "tentree.com", "beardbrand.com"],
    "maxProductsSample": 100,
    "crawlContactPages": true
  }'
```

#### 3. Python (`apify-client`)

Install the official client: `pip install apify-client`

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])

run = client.actor("luochengfengqi/shopify-store-leads-analyzer").call(
    run_input={
        "stores": ["allbirds.com", "tentree.com", "beardbrand.com"],
        "maxProductsSample": 250,
        "crawlContactPages": True,
        "checkAiReadiness": True,
    }
)

items = client.dataset(run["defaultDatasetId"]).list_items().items
for store in items:
    if store.get("isShopify"):
        print(
            f"{store['domain']} | email={store['bestEmail']} | "
            f"apps={store['installedApps']} | medianPrice={store['medianPrice']} {store['currency']}"
        )
```

#### 4. Node.js (`apify-client`)

Install the official client: `npm install apify-client`

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });

const run = await client.actor('luochengfengqi/shopify-store-leads-analyzer').call({
    stores: ['allbirds.com', 'tentree.com', 'beardbrand.com'],
    maxProductsSample: 100,
    crawlContactPages: true,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items);
```

***

### Limitations and Notes

- **Client-side / GTM-injected scripts**: App and pixel detection inspects the initial server-rendered HTML document. Scripts loaded dynamically at runtime via Google Tag Manager or custom consent managers after user interaction will not appear in `installedApps` or `adPixels` unless referenced in the initial HTML source.
- **Headless storefronts**: Custom headless builds that restrict `/products.json` or proxy only specific routes may return `productsSampled: 0` while still exposing HTML metadata and contact links.
- **Public contact details**: The Actor only extracts email addresses and phone numbers published in storefront HTML or JSON-LD metadata. If a store uses a web contact form without listing an email address, `bestEmail` will be `null`.

# Actor input Schema

## `stores` (type: `array`):

List of Shopify domains or storefront URLs to inspect (e.g. 'allbirds.com', 'https://www.tentree.com', or 'example.myshopify.com'). Non-Shopify domains are safely flagged with isShopify = false.

## `maxProductsSample` (type: `integer`):

Maximum number of products to paginate from /products.json (limit=250 per page, up to 500 products total) for variant pricing, discount depth, stock availability, vendor, and tag aggregation.

## `crawlContactPages` (type: `boolean`):

When enabled, dynamically discovers contact, support, impressum/imprint, legal-notice, and about links from homepage HTML alongside standard Shopify policy routes to maximize email, phone, and physical address extraction.

## `checkAiReadiness` (type: `boolean`):

When enabled, requests /llms.txt and /robots.txt to check whether AI search crawlers (GPTBot, ClaudeBot, PerplexityBot) are permitted.

## Actor input object example

```json
{
  "stores": [
    "allbirds.com",
    "tentree.com",
    "beardbrand.com"
  ],
  "maxProductsSample": 100,
  "crawlContactPages": true,
  "checkAiReadiness": true
}
```

# Actor output Schema

## `stores` (type: `string`):

No description

## `summary` (type: `string`):

No description

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "stores": [
        "allbirds.com",
        "tentree.com",
        "beardbrand.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("luochengfengqi/shopify-store-leads-analyzer").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "stores": [
        "allbirds.com",
        "tentree.com",
        "beardbrand.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("luochengfengqi/shopify-store-leads-analyzer").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "stores": [
    "allbirds.com",
    "tentree.com",
    "beardbrand.com"
  ]
}' |
apify call luochengfengqi/shopify-store-leads-analyzer --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,luochengfengqi/shopify-store-leads-analyzer"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/O4qgYTGbGjauaJ34p/builds/AEMtJtoGjanIL0JNu/openapi.json
