# Shopify Merchant Scraper (`scrapeflow/shopify-merchant-scraper`) Actor

- **URL**: https://apify.com/scrapeflow/shopify-merchant-scraper.md
- **Developed by:** [ScrapeFlow](https://apify.com/scrapeflow) (community)
- **Categories:** Automation, Lead generation, E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

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

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## 🛍️ Shopify Merchant Scraper – Emails, Phones, Socials & Product Counts

Turn any list of Shopify storefronts into a clean, ready-to-import **B2B lead sheet**. Drop in store URLs, hit **Start**, and get back one polished row per store containing contact email, phone, social profiles, product count and currency.

> Built for agencies, dropshippers, SaaS sales teams and competitor researchers who need *real merchant contact data* without paying for an enrichment platform.

---

### ✨ Why this scraper?

| ⭐ Feature | What you get |
|----------|--------------|
| 📧 **Real contact emails** | Mined from `mailto:` links and the entire contact-page surface |
| 📞 **Real phone numbers** | Two-tier extraction — `tel:` hrefs first, validated free-text fallback |
| 🔗 **Social profiles** | Facebook, Instagram, Twitter/X auto-detected |
| 📦 **Product count** | Sourced directly from each store's `/products.json` |
| 💱 **Currency** | Sourced from `/meta.json` so you know which markets the store sells in |
| 🛡️ **Smart proxy ladder** | Direct → Datacenter → Residential, escalates only when blocked |
| ⚡ **Async concurrency** | Configurable parallelism — scale from 1 lead to thousands |
| 💾 **Live dataset writes** | Each lead is saved the moment it's ready, so crashes never wipe your run |

---

### 🧾 Input

| Field | Type | Required | Description |
|-------|------|:--------:|-------------|
| `startUrls` | `array` | ✅ | One or more Shopify storefront URLs |
| `maxItems` | `integer` | ❌ | Hard cap on stores to process (default **100**) |
| `concurrency` | `integer` | ❌ | Parallel store workers (default **10**, max 50) |
| `requestDelay` | `number` | ❌ | Polite delay in seconds between requests *within* one store |
| `proxyConfiguration` | `object` | ❌ | Default: **no proxy**. Falls back to datacenter, then residential when needed |

#### 📋 Example input

```json
{
  "startUrls": [
    { "url": "https://kyliecosmetics.com/" },
    { "url": "https://www.allbirds.com/" }
  ],
  "maxItems": 100,
  "concurrency": 10,
  "requestDelay": 0.5,
  "proxyConfiguration": { "useApifyProxy": false }
}
````

***

### 📤 Output

One row per storefront, ready to export to JSON / CSV / XLSX from the **Output** tab.

```json
{
  "storeName": "Kylie Cosmetics by Kylie Jenner | Kylie Jenner Fragrances | Kylie Skin",
  "domain": "kyliecosmetics.com",
  "email": "customerservice@kyliecosmetics.com",
  "phone": "1-877-916-6128",
  "facebook": "https://www.facebook.com/KylieCosmetics/",
  "instagram": "https://www.instagram.com/kyliecosmetics/",
  "twitter": "https://twitter.com/kyliecosmetics",
  "productCount": 250,
  "currency": "USD",
  "url": "https://kyliecosmetics.com/",
  "scrapedAt": "2026-05-19T10:03:57.462Z"
}
```

| Field | Description |
|-------|-------------|
| `storeName` | Title of the storefront's homepage |
| `domain` | Apex domain of the store |
| `email` | First validated contact email |
| `phone` | First validated contact phone |
| `facebook` / `instagram` / `twitter` | Linked social profiles |
| `productCount` | Number of public products in `/products.json` |
| `currency` | Default selling currency from `/meta.json` |
| `url` | Original input URL |
| `scrapedAt` | UTC ISO-8601 timestamp of the scrape |

***

### 🚀 How to Use (Apify Console)

1. Log in at <https://console.apify.com> → **Actors**.
2. Open **Shopify Merchant Scraper**.
3. Paste your Shopify URLs into **🌐 Shopify Store URLs** (one per line, or upload a list).
4. *(Optional)* tweak **📦 Max stores**, **⚡ Concurrent stores**, **⏱️ Polite delay**.
5. Leave **🛡️ Proxy configuration** on default — the actor will escalate automatically only if a store blocks the request.
6. Click **Start** ▶ and watch leads land in the **Output** tab in real time.
7. Export to **JSON**, **CSV**, **XLSX** or pipe via the **API** into your CRM.

***

### 🤖 Use via API

```bash
curl -X POST "https://api.apify.com/v2/acts/<ACTOR_ID>/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
     -H "Content-Type: application/json" \
     -d '{
       "startUrls": [{ "url": "https://kyliecosmetics.com/" }],
       "maxItems": 50
     }'
```

The actor also runs from **Make**, **n8n**, **Zapier** and any MCP-aware client out of the box.

***

### 🛡️ Smart Proxy Ladder

The scraper is polite by default — it goes **direct** first so you don't burn proxy units on stores that don't need them. If a store responds with a block (`403`, `406`, `429`, `503`, etc.), the actor automatically:

1. 🪜 **Escalates to a datacenter proxy.**
2. 🪜 **Escalates to a residential proxy** if datacenter is still blocked.
3. 🔁 Retries the residential request **up to 3 times** with exponential backoff.
4. 🔒 Sticks with the residential proxy for the rest of the run so you never bounce between rungs.

Every escalation is logged with a clear emoji-tagged line so you can see exactly when and why a fallback occurred.

***

### 💰 Pricing

This actor uses the **Pay-Per-Event** model:

| Event | What it bills for |
|--------|-------------------|
| `apify-actor-start` | Run startup (synthetic, set in Console) |
| `row_result` | One charge per merchant row written to the dataset |

You only pay for leads you actually receive. There are no monthly fees — scale up or down at will. The actor exits cleanly when your spending cap is reached.

***

### 🧠 Best Use Cases

- 🎯 **B2B prospecting** — feed merchant emails straight into outreach tools
- 🛒 **Dropshipping research** — find what brands sell and at what scale
- 🕵️ **Competitor analysis** — sweep an entire niche in minutes
- 📊 **Market sizing** — count active product catalogues per currency / market
- 🤝 **Influencer outreach** — pair social profiles with contact emails

***

### ❓ Frequently Asked Questions

**Does it work on every Shopify store?**
Any storefront that exposes the standard `/products.json` and a public contact page works out of the box. Headless / password-protected stores will return an empty row.

**What if a store is behind Cloudflare or aggressive anti-bot?**
The proxy ladder kicks in automatically. You'll see `🛡️ Proxy escalation` in the logs the moment a block is detected.

**Are emails / phones always present?**
Only if the merchant publishes them. The scraper never invents data — empty fields mean *the store didn't disclose it*, not that we missed it.

**Can I scrape thousands of stores?**
Yes. Raise **concurrency** and **maxItems**, and the actor's autoscaling + live dataset writes will keep up safely.

**Is this legal?**
The scraper only collects **publicly available** data from store homepages and public JSON endpoints. You are responsible for compliance with GDPR/CCPA/anti-spam laws and each store's ToS when you use the output.

***

### 🆘 Support & Feedback

Spot a bug, need a custom field, or want bulk pricing? Open an issue on the actor page or send a message via the Apify Console. We respond fast.

***

*🛍️ Happy scraping — turn the entire Shopify ecosystem into your next pipeline.*

# Actor input Schema

## `startUrls` (type: `array`):

One or more Shopify storefront URLs (e.g. `https://kyliecosmetics.com/`). Bulk paste, upload a list, or pipe from another actor.

## `maxItems` (type: `integer`):

Hard cap on how many of the provided URLs will be processed. Use this to keep small test runs cheap.

## `proxyConfiguration` (type: `object`):

Use Apify Proxy, custom proxy URLs, or no proxy.

## Actor input object example

```json
{
  "startUrls": [
    "https://kyliecosmetics.com/"
  ],
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "startUrls": [
        "https://kyliecosmetics.com/"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("scrapeflow/shopify-merchant-scraper").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 = {
    "startUrls": ["https://kyliecosmetics.com/"],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("scrapeflow/shopify-merchant-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "startUrls": [
    "https://kyliecosmetics.com/"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call scrapeflow/shopify-merchant-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=scrapeflow/shopify-merchant-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Shopify Merchant Scraper",
        "version": "0.1",
        "x-build-id": "fLY9b1zFZmbUkbzhJ"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/scrapeflow~shopify-merchant-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-scrapeflow-shopify-merchant-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/scrapeflow~shopify-merchant-scraper/runs": {
            "post": {
                "operationId": "runs-sync-scrapeflow-shopify-merchant-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/scrapeflow~shopify-merchant-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-scrapeflow-shopify-merchant-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "startUrls"
                ],
                "properties": {
                    "startUrls": {
                        "title": "🌐 Shopify Store URLs",
                        "type": "array",
                        "description": "One or more Shopify storefront URLs (e.g. `https://kyliecosmetics.com/`). Bulk paste, upload a list, or pipe from another actor.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxItems": {
                        "title": "📦 Max stores to scrape",
                        "minimum": 1,
                        "maximum": 10000,
                        "type": "integer",
                        "description": "Hard cap on how many of the provided URLs will be processed. Use this to keep small test runs cheap.",
                        "default": 100
                    },
                    "proxyConfiguration": {
                        "title": "Proxy",
                        "type": "object",
                        "description": "Use Apify Proxy, custom proxy URLs, or no proxy.",
                        "default": {
                            "useApifyProxy": false
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
