# Shopify Store Discovery & Leads by Niche (`xyrelith-data/shopify-store-leads-scraper`) Actor

Find live Shopify merchants by niche keyword or category and turn each store into a lead with contact emails, phones, socials, theme, detected apps, product counts and ratings.

- **URL**: https://apify.com/xyrelith-data/shopify-store-leads-scraper.md
- **Developed by:** [Xyrelith Data](https://apify.com/xyrelith-data) (community)
- **Categories:** E-commerce, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## 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 Discovery & Leads by Niche

Find live Shopify merchants from the public Shop marketplace and turn every store into an outreach-ready lead. Search by niche keyword or category, or paste domains you already have, and get the store's published contact email and phone numbers, social profiles, registered location, currency, product and collection counts, rating, theme, detected apps, price range and sample products in one flat record. No login, cookies or account on the store side.

### What this actor does

- **Three discovery paths:** keyword discovery in the Shop marketplace, Shop category browsing, and domain enrichment for a list of store URLs.
- **Marketplace filters:** shipping destination, price band, in-stock only and on-sale only, plus a cap on how many marketplace pages are read per keyword.
- **Lead filters:** store country, store currency, published product-count range, minimum store rating, and must-have email, phone or social profile.
- **Fresh storefront enrichment:** registered city, province and country, exact published product and collection counts, storefront currency, Shopify and myshopify identities, price range, product types, vendors, newest product date and catalogue sample.
- **Tech-stack signals:** the live theme name and detected review, email/SMS, subscription, loyalty, upsell, analytics, support, page-builder and payment tools.
- **Contact discovery:** public emails and phone numbers from the homepage and contact page, placeholder and tracking addresses removed, plus Instagram, Facebook, TikTok, YouTube, Pinterest, X and LinkedIn profiles.
- **Repeatable lead lists:** optionally remember returned stores and skip them on later runs.
- Empty fields are omitted rather than filled with nulls or guesses.

### Output per store

- `storeName` — the merchant's published store name
- `domain`, `storeUrl` — primary storefront domain and HTTPS URL
- `myshopifyDomain`, `shopifyStoreId` — the store's permanent Shopify identity
- `shopMarketplaceId`, `marketplaceHandle` — Shop marketplace identity
- `storeDescription` — the store's own description
- `city`, `province`, `countryCode`, `countryName` — registered business address from the store's public profile
- `currency` — storefront currency code
- `productCount`, `collectionCount` — exact published catalogue counts when the store exposes them
- `priceRangeMin`, `priceRangeMax`, `priceAverage`, `priceMedian`, `priceRangeCurrency` — price band from public product variants
- `productsOnSaleCount` — catalogue products currently discounted
- `shopRating`, `shopReviewCount`, `shopRatingCount` — marketplace rating and review totals
- `themeName` — the live Shopify theme
- `detectedApps` — every recognised app and marketing tool
- `reviewApps`, `emailSmsApps`, `subscriptionApps`, `loyaltyApps`, `upsellApps`, `analyticsTools`, `supportApps`, `pageBuilderApps`, `paymentApps` — the same detections grouped by job
- `contactPageUrl` — the contact page that produced contact details
- `emails` — public contact addresses found on the storefront
- `phoneNumbers` — public phone numbers in international or published format
- `instagramUrl`, `facebookUrl`, `tiktokUrl`, `youtubeUrl`, `pinterestUrl`, `xUrl`, `linkedinUrl`
- `logoUrl` — store logo or social preview image
- `sampleProducts` — matched marketplace products or catalogue samples with title, price, currency, URL and matched keyword
- `matchedKeywords` — keywords or category identifiers that surfaced the store
- `discoverySource` — `marketplaceSearch`, `marketplaceCategory` or `domainEnrichment`
- `productTypes`, `vendors` — catalogue mix from the public product feed
- `oldestProductAt`, `newestProductAt`, `daysSinceLastProduct` — catalogue freshness signals
- `shipsToCountries` — destination countries the store publishes
- `offersShopPayInstallments` — Shop Pay instalment availability when published
- `recordType`, `scrapedAt`

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `niche` | `niche` (keyword discovery), `category` (Shop category browsing) or `domains` (enrich known stores) |
| `nicheKeywords` | array | `["yoga mat"]` | Product keywords, one marketplace search each (mode=niche) |
| `categoryIds` | array | `[]` | Shop category IDs or category URLs (mode=category) |
| `storeDomains` | array | `[]` | Domains or URLs to enrich (mode=domains) |
| `maxStores` | int | `50` | Maximum store records to return (1–5000) |
| `maxPagesPerKeyword` | int | `10` | Marketplace pages of 30 products to read per keyword or category (1–100) |
| `maxProductsPerStore` | int | `5` | Maximum sample products kept per store (1–30) |
| `productPagesPerStore` | int | `2` | Public catalogue pages of 250 products read per store (1–10) |
| `shipsToCountry` | string | `ANY` | Only products that ship to this country; `ANY` keeps the marketplace default |
| `priceMin` | number | – | Minimum marketplace product price |
| `priceMax` | number | – | Maximum marketplace product price |
| `inStockOnly` | boolean | `false` | Only products currently in stock |
| `onSaleOnly` | boolean | `false` | Only products currently discounted |
| `storeCountry` | string | `ANY` | Keep stores registered in this country |
| `storeCurrency` | string | `ANY` | Keep stores using this storefront currency |
| `minProductCount` | int | – | Minimum published products |
| `maxProductCount` | int | – | Maximum published products |
| `minShopRating` | number | – | Minimum marketplace rating on a 0–5 scale |
| `requireEmail` | boolean | `false` | Drop stores without a public email |
| `requirePhone` | boolean | `false` | Drop stores without a public phone number |
| `requireSocialProfile` | boolean | `false` | Drop stores without a social profile |
| `includeContactPage` | boolean | `true` | Also read contact pages for emails and phones |
| `skipAlreadySeen` | boolean | `false` | Skip stores returned by earlier runs |

#### Example: yoga and wellness stores that ship to the United States and publish an email

```json
{
  "mode": "niche",
  "nicheKeywords": ["yoga mat", "cork yoga mat"],
  "shipsToCountry": "US",
  "inStockOnly": true,
  "minShopRating": 4,
  "requireEmail": true,
  "maxStores": 100,
  "maxPagesPerKeyword": 12
}
```

#### Example: browse a Shop category with a price band

```json
{
  "mode": "category",
  "categoryIds": ["https://shop.com/categories/69/fitness-nutrition"],
  "priceMin": 20,
  "priceMax": 120,
  "onSaleOnly": true,
  "maxStores": 75
}
```

#### Example: enrich a list of stores you already have

```json
{
  "mode": "domains",
  "storeDomains": ["https://www.everydayyoga.com", "crk.store", "beanproducts.com"],
  "includeContactPage": true,
  "productPagesPerStore": 3,
  "maxStores": 3
}
```

#### Example: build a new-lead list across runs

```json
{
  "mode": "niche",
  "nicheKeywords": ["organic coffee", "single origin coffee"],
  "storeCountry": "CA",
  "requireSocialProfile": true,
  "skipAlreadySeen": true,
  "maxStores": 200
}
```

### Use cases

- Build a niche list of live Shopify brands for agency, app or service outreach.
- Find stores that already use a review, subscription, loyalty or email tool, or stores that do not.
- Size a market by published product counts, collection counts and price bands.
- Research the Shopify themes and marketing stacks common in a category.
- Turn a short list of store URLs into a complete contact and tech-stack profile.
- Refresh a lead list over time without re-contacting the same stores.

### FAQ

**Does this need a Shopify account, login or cookies?**
No. Discovery and enrichment use public marketplace and storefront pages, so no login, cookie or API key is required.

**Why do some stores have no email or phone?**
Only contact details the merchant publishes are returned. Many stores use a contact form or a chat widget, and some publish a phone number only in their order or policy pages. Nothing is guessed or generated.

**Why is the price band missing on a few stores?**
A minority of storefronts refuse automated catalogue requests. Those stores still return their identity, location, contacts, theme, apps and marketplace facts, but catalogue-only fields are omitted instead of being filled with zeros.

**Which currency are the price filters in?**
The marketplace applies the price band in the display currency it serves to the run. The run log states that currency. Each store record keeps the currency of the storefront or products it reports.

**Can I find stores that are not on the Shop marketplace?**
Keyword and category discovery only see stores listed there. Paste those domains in `domains` mode to enrich them directly.

**Why did a category return fewer stores than expected?**
Top-level categories mix departments, editorial shelves and product rows. Pick a deeper subcategory URL for a more focused product list, or use a keyword search for the niche.

**Are social profiles guaranteed?**
No. The actor reports profiles linked from the storefront. A store with no linked profile is omitted from that field; use `requireSocialProfile` to drop it entirely.

**Does `skipAlreadySeen` work across different searches?**
It remembers every store the actor has returned on that account. Turn it on before the first run of a new list; stores returned before it was enabled are not retroactively remembered.

**Can I get more than 5,000 stores in one run?**
The per-run cap is 5,000. Broaden the keywords, deepen the category or use several runs with `skipAlreadySeen` to build a larger list.

### Limitations

- Keyword discovery is limited to stores listed in the Shop marketplace.
- Some storefronts block automated catalogue requests, so price range, product types and newest-product dates can be missing for those records.
- Contact details are best effort: only published emails and phone numbers are returned, and delivery is not verified.
- Store fields are based on the merchant's own published profile; stores that hide their address or currency can still appear when a location or currency filter is set.
- Marketplace price filters use the display currency of the marketplace request, which is stated in the run log.

# Actor input Schema

## `mode` (type: `string`):

Choose how to find stores: search the Shop marketplace by product keyword, browse a Shop category, or enrich a list of store domains.

## `nicheKeywords` (type: `array`):

Product keywords to search in the Shop marketplace, one search per keyword. Stores are de-duplicated across keywords. Used in niche mode.

## `categoryIds` (type: `array`):

Shop category IDs or full shop.com category URLs, for example 69 or https://shop.com/categories/69/fitness-nutrition. Used in category mode.

## `storeDomains` (type: `array`):

Store domains or URLs to enrich, for example example.com or https://www.example.com. Used in domains mode.

## `maxStores` (type: `integer`):

Maximum number of store leads to return per run.

## `maxPagesPerKeyword` (type: `integer`):

How many 30-product marketplace pages to read for each keyword or category. More pages surface more stores and take longer.

## `maxProductsPerStore` (type: `integer`):

Maximum matched or catalogue products to keep in each store record.

## `productPagesPerStore` (type: `integer`):

How many 250-product public catalogue pages to read per store for price range, product types, vendors and newest product date.

## `shipsToCountry` (type: `string`):

Only return products that ship to this country. Any country keeps the marketplace default.

## `priceMin` (type: `number`):

Only return products at or above this price. Bounds use the marketplace display currency shown in the run log.

## `priceMax` (type: `number`):

Only return products at or below this price. Bounds use the marketplace display currency shown in the run log.

## `inStockOnly` (type: `boolean`):

Only return marketplace products that are currently in stock.

## `onSaleOnly` (type: `boolean`):

Only return marketplace products that are currently discounted.

## `storeCountry` (type: `string`):

Keep stores whose own published business address is in this country. Stores without a published address stay in the results.

## `storeCurrency` (type: `string`):

Keep stores whose storefront currency matches this code. Stores without a published currency stay in the results.

## `minProductCount` (type: `integer`):

Keep stores with at least this many published products. Stores without a published count stay in the results.

## `maxProductCount` (type: `integer`):

Keep stores with at most this many published products. Stores without a published count stay in the results.

## `minShopRating` (type: `number`):

Keep stores rated at or above this value on a 0 to 5 scale. Stores without a rating stay in the results.

## `requireEmail` (type: `boolean`):

Drop store leads where no public contact email was found on the homepage or contact page.

## `requirePhone` (type: `boolean`):

Drop store leads where no public phone number was found on the homepage or contact page.

## `requireSocialProfile` (type: `boolean`):

Drop store leads where no Instagram, Facebook, TikTok, YouTube, Pinterest, X or LinkedIn profile was found.

## `includeContactPage` (type: `boolean`):

Also read the store's contact page for emails and phone numbers. Turning this off is faster and cheaper but finds fewer contacts.

## `skipAlreadySeen` (type: `boolean`):

Remember returned stores in the actor's key-value store and skip them in later runs, so each run adds new leads.

## Actor input object example

```json
{
  "mode": "niche",
  "nicheKeywords": [
    "yoga mat"
  ],
  "categoryIds": [],
  "storeDomains": [],
  "maxStores": 3,
  "maxPagesPerKeyword": 1,
  "maxProductsPerStore": 3,
  "productPagesPerStore": 1,
  "shipsToCountry": "ANY",
  "inStockOnly": false,
  "onSaleOnly": false,
  "storeCountry": "ANY",
  "storeCurrency": "ANY",
  "requireEmail": false,
  "requirePhone": false,
  "requireSocialProfile": false,
  "includeContactPage": false,
  "skipAlreadySeen": false
}
```

# Actor output Schema

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

Dataset containing one record per discovered or enriched Shopify store.

# 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 = {
    "mode": "niche",
    "nicheKeywords": [
        "yoga mat"
    ],
    "categoryIds": [],
    "storeDomains": [],
    "maxStores": 3,
    "maxPagesPerKeyword": 1,
    "maxProductsPerStore": 3,
    "productPagesPerStore": 1,
    "shipsToCountry": "ANY",
    "inStockOnly": false,
    "onSaleOnly": false,
    "storeCountry": "ANY",
    "storeCurrency": "ANY",
    "requireEmail": false,
    "requirePhone": false,
    "requireSocialProfile": false,
    "includeContactPage": false,
    "skipAlreadySeen": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("xyrelith-data/shopify-store-leads-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 = {
    "mode": "niche",
    "nicheKeywords": ["yoga mat"],
    "categoryIds": [],
    "storeDomains": [],
    "maxStores": 3,
    "maxPagesPerKeyword": 1,
    "maxProductsPerStore": 3,
    "productPagesPerStore": 1,
    "shipsToCountry": "ANY",
    "inStockOnly": False,
    "onSaleOnly": False,
    "storeCountry": "ANY",
    "storeCurrency": "ANY",
    "requireEmail": False,
    "requirePhone": False,
    "requireSocialProfile": False,
    "includeContactPage": False,
    "skipAlreadySeen": False,
}

# Run the Actor and wait for it to finish
run = client.actor("xyrelith-data/shopify-store-leads-scraper").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 '{
  "mode": "niche",
  "nicheKeywords": [
    "yoga mat"
  ],
  "categoryIds": [],
  "storeDomains": [],
  "maxStores": 3,
  "maxPagesPerKeyword": 1,
  "maxProductsPerStore": 3,
  "productPagesPerStore": 1,
  "shipsToCountry": "ANY",
  "inStockOnly": false,
  "onSaleOnly": false,
  "storeCountry": "ANY",
  "storeCurrency": "ANY",
  "requireEmail": false,
  "requirePhone": false,
  "requireSocialProfile": false,
  "includeContactPage": false,
  "skipAlreadySeen": false
}' |
apify call xyrelith-data/shopify-store-leads-scraper --silent --output-dataset

```

## MCP server setup

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

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/WAHrRL5GQtgHBXGNk/builds/oYjjbP35gfEmtOYew/openapi.json
