# Shopify Store Finder - Find Stores by Niche & Country (`bin_ai_tools/shopify-store-finder-by-niche`) Actor

Find Shopify stores in any niche. Every store is verified as Shopify with evidence, filtered by country, currency and catalog size, deduped, and scored for niche match. Pay only per store found.

- **URL**: https://apify.com/bin_ai_tools/shopify-store-finder-by-niche.md
- **Developed by:** [Bin Bin](https://apify.com/bin_ai_tools) (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 event

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-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 Finder — Discover Stores by Niche, Country & Keyword

Type a niche ("yoga mat", "matcha", "dog harness") and get a list of **verified Shopify stores** in that niche: store name, domain, `.myshopify.com` domain, country, currency, number of products, price range, how many products match your niche, and when a product was last added or updated. Pay only for stores that pass your filters.

### Who it's for

- Shopify agencies and freelancers building prospect lists by niche
- Shopify app makers sizing a market and finding target merchants
- Ecommerce researchers mapping competitors in a category

### What makes it different

- **Shopify verified, with evidence.** Each store lists the evidence checked (`meta_json_reachable`, `products_json_reachable`, `window_shopify_object`, response headers). You can verify any row yourself.
- **Niche match, not just keyword hits.** The Actor reads the store's catalog and counts products whose title, type or tags contain your keyword (`nicheMatchedProducts`), with sample product links. A blog page that happens to mention your keyword doesn't count.
- **Filters that matter for prospecting:** store country, currency, catalog size (skip giant brands or empty stores), and recent activity.
- **Deduped** by `.myshopify.com` domain, so a brand with several domains appears once.

### How it works

1. Each keyword is searched on Google with three Shopify-specific query patterns
2. Every candidate domain is checked live: homepage, `/meta.json`, `/products.json`
3. Non-Shopify sites, duplicates and stores outside your filters are set aside
4. The run stops when `maxStores` verified stores are delivered

### Input

| Field | What it does |
|---|---|
| `keywords` | 1–50 niche keywords |
| `maxStores` | **Batch size: 30–500** stores to deliver |
| `googleCountry` | Google results country, e.g. `us`, `gb`, `de` |
| `storeCountries` | Keep only these shop countries, e.g. `US`, `CA` |
| `currencies` | Keep only these currencies, e.g. `USD` |
| `minProducts` / `maxProducts` | Catalog size range |
| `minNicheMatchedProducts` | Products in the first 250 that must match the keyword (default 1) |
| `activeWithinDays` | A product was added or updated within N days |
| `excludeDomains` | Skip stores you already have |

### Output

Every row has a `status`:

- `found` — verified Shopify store that passed all filters. **Charged.**
- `skipped_filter` — Shopify store outside your filters; `filterReason` says which filter (e.g. `country_GB`, `too_few_products_2`). **Free.**
- `skipped_not_shopify` — candidate is not a Shopify store; evidence included. **Free.**
- `error` — a Google search or store check failed; stage and message included. **Free.**

Example `found` row (shortened):

```json
{
  "status": "found",
  "storeDomain": "jadeyoga.myshopify.com",
  "myshopifyDomain": "jadeyoga.myshopify.com",
  "storeName": "JadeYoga",
  "country": "US", "city": "BRIDGEPORT", "currency": "USD",
  "publishedProducts": 84, "nicheMatchedProducts": 32,
  "sampleMatchedProducts": [{ "title": "Jade Extra Yoga Mat Wholesale - JadeYoga", "url": "https://jadeyoga.myshopify.com/products/level-one-mat-wholesale" }],
  "priceMin": 0, "priceMax": 250,
  "evidence": ["shopify_cdn_assets", "window_shopify_object", "shopify_response_header", "meta_json_reachable", "products_json_reachable"],
  "sourceKeyword": "yoga mat",
  "charged": true, "chargedEvent": "store-found"
}
```

Run totals (Google requests, candidates checked, skipped, errors) are saved in the key-value store as RUN_STATS.

### Pricing

- $0.003 per store-found (= $3 per 1,000 stores)
- Actor start: $0.00005
- skipped\_\* and error rows: $0
- Set a max cost per run in Apify; the Actor stops cleanly when the limit is reached.

### Notes

- Country and currency come from the store's public /meta.json. Some stores close that endpoint; with a country filter on, those are set aside as country_unknown (free).
- If fewer than maxStores are delivered, add keywords, raise maxSerpPagesPerQuery, or relax filters.
- Next step: get emails, phones and socials with Shopify Store Leads, find which ones advertise with Shopify Store Leads from Meta Ad Library, or audit them with Shopify Store Audit.

# Actor input Schema

## `activeWithinDays` (type: `integer`):

Keep only stores that added or updated a product within this many days. 0 = off.

## `concurrency` (type: `integer`):

How many candidate stores to check in parallel.

## `currencies` (type: `array`):

Keep only stores selling in these currencies (e.g. USD, EUR). Empty = any.

## `excludeDomains` (type: `array`):

Domains to skip entirely (e.g. stores you already have).

## `googleCountry` (type: `string`):

Two-letter country code for Google results (gl), e.g. us, gb, de, au.

## `keywords` (type: `array`):

1–50 niche keywords, e.g. "yoga mat", "dog harness". Each keyword is searched with several Shopify-specific query patterns.

## `maxProducts` (type: `integer`):

Use to target small and mid-size brands and skip giant catalogs.

## `maxSerpPagesPerQuery` (type: `integer`):

10 results per page. More pages = more candidates and a longer run.

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

Stop after this many verified stores pass your filters. Must be 30–500.

## `minNicheMatchedProducts` (type: `integer`):

Products (in the first 250) whose title, type or tags contain all words of the keyword. Filters out unrelated stores.

## `minProducts` (type: `integer`):

Stores with fewer published products than this are set aside.

## `storeCountries` (type: `array`):

Keep only stores whose Shopify shop country matches one of these (e.g. US, GB). Empty = any country.

## Actor input object example

```json
{
  "activeWithinDays": 0,
  "concurrency": 10,
  "currencies": [],
  "excludeDomains": [],
  "googleCountry": "us",
  "keywords": [
    "yoga mat",
    "dog harness",
    "matcha"
  ],
  "maxProducts": 0,
  "maxSerpPagesPerQuery": 2,
  "maxStores": 30,
  "minNicheMatchedProducts": 1,
  "minProducts": 5,
  "storeCountries": []
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `stats` (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 = {
    "keywords": [
        "yoga mat",
        "dog harness",
        "matcha"
    ],
    "maxSerpPagesPerQuery": 2,
    "maxStores": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("bin_ai_tools/shopify-store-finder-by-niche").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 = {
    "keywords": [
        "yoga mat",
        "dog harness",
        "matcha",
    ],
    "maxSerpPagesPerQuery": 2,
    "maxStores": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("bin_ai_tools/shopify-store-finder-by-niche").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 '{
  "keywords": [
    "yoga mat",
    "dog harness",
    "matcha"
  ],
  "maxSerpPagesPerQuery": 2,
  "maxStores": 30
}' |
apify call bin_ai_tools/shopify-store-finder-by-niche --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bin_ai_tools/shopify-store-finder-by-niche"
        }
    }
}
```

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/EUroY1FUo7Nb1vtcy/builds/cFf62XacVxzTaIY2F/openapi.json
