# Shopify Store & Product Scraper (`gutacker/shopify-store-spy`) Actor

Scrape Shopify product catalogs, variants, SKUs, prices, and stock, or collect store contact emails, social links, tracking pixels, and installed Shopify apps by domain.

- **URL**: https://apify.com/gutacker/shopify-store-spy.md
- **Developed by:** [Frank-Ringo Gutacker](https://apify.com/gutacker) (community)
- **Categories:** E-commerce, Lead generation, Agents
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 shopify product results

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 & Product Scraper

<p align="center">
  <img src="https://api.apify.com/v2/key-value-stores/6QYUU1aPOYtTzoLON/records/shopify-store-spy-pro-512.png" alt="Shopify Store & Product Scraper" width="128" />
</p>

Shopify Store & Product Scraper extracts product catalogs from public Shopify stores (titles, prices, variants, SKUs, stock status, discounts, images) or builds one summary record per store with merchant contact details, social links, ad pixels and installed Shopify apps. Enter store domains or collection URLs, run the Actor and download the results as JSON, CSV or Excel. No browser, store login or code is needed.

### What data can you extract from Shopify stores?

The Actor has two modes. `PRODUCTS` (default) returns one record per product. `STORE_LEADS` returns one record per store.

| | `PRODUCTS` mode | `STORE_LEADS` mode |
| :--- | :--- | :--- |
| Output | One record per product | One record per store domain |
| Identity | `title`, `handle`, `productId`, `productUrl`, `vendor`, `productType`, `tags`, `publishedAt`, `updatedAt` | `storeName`, `storeDomain`, `storeUrl`, `myshopifyDomain`, `shopifyShopId`, `storeDescription`, `isShopify`, `isShopifyEvidence` |
| Prices | `priceMin`, `priceMax`, `compareAtPriceMax`, `discountPct` (largest per-variant discount), `isOnSale` | `priceMin`, `priceMax`, `priceMedian` and `discountPct` (share of sampled products on sale), all from up to 250 sampled products |
| Stock | `inStock` and per-variant `available` (a yes/no flag, not a quantity) | `inStockRatePct` of the sampled products |
| Variants and media | `variants` (variant ID, title, SKU, price, compare-at price, availability, options, weight in grams), `images`, `mainImageUrl`, `descriptionText` | `sampleProducts` (up to 5 titles), `collectionsCount` |
| Store details | `storeName`, `currency`, `country`, `themeName` | `currency`, `country`, `city`, `themeName`, `themeId` |
| Contacts | Only with `includeStoreIntel: true` | `merchantEmails` (up to 15), `merchantPhones` (up to 10, from `tel:` links), `socialLinks` |
| Tech stack | Only with `includeStoreIntel: true` | `detectedPixels` (ad and analytics pixels), `detectedApps` (reviews, email/SMS, subscriptions, page builders, payments and similar) |

Every record also has `recordType` and `scrapedAt`. Prices are the values published in the store's catalog; `currency` shows the store currency when it could be detected. Products can be narrowed by collection, keyword, stock status and discount (see Input Fields).

> Merchant emails and phone numbers are business contact details taken from public pages, but they can still be personal data. See the notice in "How the scraper works" and the FAQ below.

### What can you use the Shopify scraper for?

- **Competitor price monitoring:** scrape the same stores or collections on a schedule and compare `priceMin`, `compareAtPriceMax`, `discountPct` and `inStock` between runs. The Actor returns the current snapshot; you keep the history in your own tools.
- **Catalog and product research:** pull titles, vendors, product types, tags, variants and images from stores or collections in a niche. Use `keywordFilter` to focus on a product group.
- **Sale and discount tracking:** use `onSaleOnly` to list only products where at least one variant has a compare-at price above its own price.
- **E-commerce lead lists:** in `STORE_LEADS` mode, build a list of Shopify merchants with email addresses, phone numbers, social profiles, country and currency.
- **Tech-stack prospecting:** find stores that use a given app or pixel (for example Klaviyo, Judge.me or Meta Pixel) through `detectedApps` and `detectedPixels`, for agency or SaaS outreach.
- **Feeding data pipelines and AI agents:** call the Actor through the Apify API, n8n, Make, Python or the Apify MCP server (see Integrations).

### How to scrape a Shopify store

1. Open the Actor on Apify and go to the Input tab.
2. Add one or more store domains, store URLs or collection URLs to `stores`, for example `allbirds.com` or `https://tentree.com/collections/mens`.
3. Choose the mode: `PRODUCTS` for catalog data or `STORE_LEADS` for one record per store. In `PRODUCTS` mode, set `maxProductsPerStore` (default 25) and optional filters.
4. Click Start. When the run finishes, open the dataset and download it as JSON, CSV or Excel. The `RUN_SUMMARY` record in the key-value store lists succeeded, empty and failed inputs.
5. To automate, schedule the Actor on the Apify platform or call it through the API or an integration (see Integrations).

### How much does it cost to scrape Shopify?

Pay-per-event, no start fee: `product` is $0.0015 per product ($1.50 per 1,000) and `store-lead` is $0.006 per store ($6.00 per 1,000). Examples, assuming every store returns the number of records shown:

| Run | Calculation | Price |
| :--- | :--- | :--- |
| 1 store, default 25 products | 25 x $0.0015 | $0.0375 |
| 1,000 products | 1,000 x $0.0015 | $1.50 |
| One full 10,000-product catalog (the per-store maximum) | 10,000 x $0.0015 | $15.00 |
| 100 stores x 25 products | 2,500 x $0.0015 | $3.75 |
| 100 stores in `STORE_LEADS` mode | 100 x $0.006 | $0.60 |
| 1,000 stores in `STORE_LEADS` mode | 1,000 x $0.006 | $6.00 |
| `PRODUCTS` with `includeStoreIntel`, 10 stores x 50 products | 500 x $0.0015 + 10 x $0.006 = $0.75 + $0.06 | $0.81 |

Failed stores, such as blocked or password-protected ones, are not billed, and a store is billed only for the products actually delivered. The full billing rules follow.

#### Pricing details

Pay-Per-Event with no start fee. `product` is $1.50 per 1,000 products in `PRODUCTS` mode. `store-lead` is $6.00 per 1,000 stores in `STORE_LEADS` mode (or once per store if `includeStoreIntel` is enabled in `PRODUCTS` mode; that add-on is charged only after the first product of the store has actually been written to the dataset, and not at all if the spending limit leaves no room for it). In `STORE_LEADS` mode, unreachable domains, homepages returning HTTP errors, and homepages that answer with a bot-challenge page (Cloudflare, AWS WAF and similar, even with HTTP 200) are recorded as failed in `RUN_SUMMARY` without pushing a dataset item and are **not** billed; reachable non-Shopify websites (a real page with `HTTP 200`) are output with `isShopify: false` (plus any public contact/social/pixel signals detected on the page) and billed as one `store-lead`.

### How the scraper works

This scraper fetches product catalogs and store metadata from public Shopify storefronts over HTTP/2. If a custom domain blocks `/products.json` behind a CDN rule, the scraper reads the `Shopify.shop` identifier from the HTML and falls back to the underlying `.myshopify.com` origin automatically.

You can run it in two modes depending on what you need.

In `PRODUCTS` mode (the default), it paginates `/products.json` (or `/collections/{handle}/products.json`) in batches of 250 items and outputs one record per product. Each record contains the title, vendor, category, tags, plain-text description, image URLs, minimum and maximum variant prices, `compareAtPriceMax`, `isOnSale` and `discountPct` (a product is on sale only if at least one variant has a compare-at price above its own price; `discountPct` is the largest per-variant discount), stock status, and the full `variants` list (SKU, option values, price, availability). You can narrow results with `collectionHandle`, `keywordFilter`, `inStockOnly`, and `onSaleOnly`. With filters, the Actor keeps reading catalog pages until `maxProductsPerStore` products match or the catalog ends. To bound run time it scans at most 10,000 products per store; if that cap stops the scan before enough products matched, a warning is logged and recorded under `warnings` in `RUN_SUMMARY`. A store is billed only for the products actually delivered.

In `STORE_LEADS` mode, it outputs one summary record per domain instead of individual products. It checks `/meta.json`, the storefront homepage, `/policies/contact-information`, and `/pages/contact` to collect merchant email addresses, phone numbers, social links, store currency, country, active theme name, price range across up to 250 sampled products, tracking pixels (Meta, Google Tag Manager, GA4/Ads, TikTok, Pinterest, Snapchat, Clarity, Bing, Reddit, LinkedIn, Triple Whale, Elevar), and common third-party Shopify apps (Klaviyo, Attentive, Postscript, Omnisend, Judge.me, Yotpo, Loox, Okendo, Gorgias, Zendesk, Recharge, Skio, Loop, PageFly, Shogun, Replo, Tapcart, Smile.io, Privy, Hotjar, Algolia, Klarna, Afterpay, Shop Pay). Merchant contact details (`merchantEmails`, `merchantPhones`) are collected only when `mode: "STORE_LEADS"` or `includeStoreIntel: true` is explicitly selected; lawful use of extracted contact details under applicable privacy and marketing regulations is the sole responsibility of the user.

### Input Example (`STORE_LEADS`)

```json
{
  "stores": ["allbirds.com", "colourpop.com", "beardbrand.com"],
  "mode": "STORE_LEADS"
}
```

### Input Example (`PRODUCTS`)

```json
{
  "stores": ["allbirds.com"],
  "mode": "PRODUCTS",
  "maxProductsPerStore": 50,
  "keywordFilter": "runner, wool",
  "inStockOnly": true
}
```

### Input Fields

| Field | Type | Default | Notes |
| :--- | :--- | :--- | :--- |
| `stores` | `string[]` | — | Required (or single `store` / `domain` / `url`); domains, store URLs, or collection URLs. A comma-separated string is accepted too |
| `mode` | `string` | `"PRODUCTS"` | `PRODUCTS` or `STORE_LEADS` |
| `maxProductsPerStore` | `integer` | `25` | Max products per store in `PRODUCTS` mode (`1` to `10000`) |
| `collectionHandle` | `string` | `""` | Optional collection slug |
| `keywordFilter` | `string` | `""` | Comma-separated filter on title, vendor, type, or tags (a JSON array of strings is accepted too) |
| `inStockOnly` | `boolean` | `false` | Exclude sold-out items |
| `onSaleOnly` | `boolean` | `false` | Keep only discounted items |
| `includeStoreIntel` | `boolean` | `false` | Add store emails, social links, pixels, and apps in `PRODUCTS` mode |
| `concurrency` | `integer` | `6` | Stores fetched in parallel (`1` to `20`) |

### How Shopify stores are detected

`isShopify` is `true` only on strong evidence, listed in the record field `isShopifyEvidence`: a `Shopify.shop = "...myshopify.com"` identifier in the page, a `myshopify_domain` in `/meta.json`, Shopify-only response headers (`x-shopid`, `x-shopify-stage`), or a valid `/products.json` product list. Weaker hints such as `cdn.shopify.com` URLs, a `Shopify.theme` object, or a bare `/meta.json` `id` are not enough on their own, because non-Shopify sites (for example a WordPress page with a Shopify Buy Button) show them too; when only such hints exist, the Actor checks `/products.json` before deciding.

### Blocked or changed stores

A store whose homepage or `/products.json` answers with HTTP 401, 403, 429, 430 or 5xx (after retries), or with a bot-challenge page instead of the real content (recognised by challenge scripts, iframes, ids or block-page titles of Cloudflare, DataDome, AWS WAF, PerimeterX, Incapsula and similar; ordinary page text such as "Are you a robot?" is not enough, a valid `/products.json` catalog is never treated as a challenge, and a bare HTTP 200 page counts only when it is tiny, has no normal page structure (no navigation, at most two links, no meta description or og tags) and its short text is made of challenge wording such as "Checking your browser" plus "Verifying you are human"), is reported as **failed** in `RUN_SUMMARY` (input, error type, HTTP status). It is never reported as an empty store and it is not billed. A store that is still locked behind Shopify's "Enter store using password" page (the homepage redirects to `/password`) is reported as failed with `errorType: PasswordProtected` and is not billed, in both modes. `storeUrl` and all product URLs use the store origin (scheme and host only); a homepage that redirects to `/?country=XX` or `/en-us` does not change it. If a later page of a catalog fails, the products already fetched are delivered, a warning is logged, and the cut-off is listed under `warnings` in `RUN_SUMMARY`. If every input fails, the run ends as failed. Exception in `STORE_LEADS` mode: the lead comes from the homepage and contact pages, so a blocked `/products.json` does not fail the store. The lead is still output and billed as one `store-lead` with its contacts, pixels and apps, but the price and stock statistics stay empty and a `ProductSampleUnavailable` entry appears under `warnings` in `RUN_SUMMARY`.

### Restarts and run diagnostics

When the Apify platform migrates the run to another server, the Actor stops starting new pushes and charges, saves its state right away and the next container continues from it: inputs that were already processed are not fetched again, and records that were already delivered are not pushed or charged a second time. After an unplanned crash and restart the state saved last is used (the SDK saves it about every 60 seconds), so records pushed after that save (up to roughly a minute of work) can be delivered and charged again; everything pushed before it is skipped. A record counts as delivered as soon as it is in the dataset; if the optional `store-lead` add-on charge then fails, the record stays delivered, the charge is retried up to 2 more times with the same idempotency key (it can never be charged twice), a warning is logged for every failed attempt and `addonChargeErrors` in `RUN_SUMMARY` is increased; if all attempts fail, that store's add-on stays uncharged. A store counts as `succeeded` once, when its input is finished. After every run (also after an unexpected crash) the uncharged key-value store record `RUN_SUMMARY` lists the counters (`succeeded`, `empty`, `failed`, `itemsPushed`, `chargedEvents`), every failed input with `errorType` and `httpStatus`, `warnings`, and the duplicates that were skipped. A store counts as `empty` only when its catalog was read successfully and contained nothing (or nothing matched your filters); blocked or changed sources count as `failed`.

### Duplicates

Inputs that point to the same target (`allbirds.com`, `https://www.allbirds.com`, `https://allbirds.com/`) are processed once; the skipped inputs are logged and listed under `duplicateInputs` in `RUN_SUMMARY`. In `PRODUCTS` mode two different collections of one store stay separate inputs. Within one run the same product (or store lead) is never pushed or billed twice, even when inputs overlap; skipped records are counted in `duplicateRecordsSkipped`.

### Sample Output (`STORE_LEADS`)

```json
{
  "recordType": "STORE_LEAD",
  "isShopify": true,
  "storeDomain": "beardbrand.com",
  "storeUrl": "https://www.beardbrand.com",
  "storeName": "Beardbrand",
  "myshopifyDomain": "beardbrand.myshopify.com",
  "shopifyShopId": 2090478,
  "currency": "USD",
  "country": "US",
  "city": "Austin",
  "themeName": "Split v1.0.3.9.4 [holiday/timerPDP/fc optz]",
  "priceMin": 10.0,
  "priceMax": 170.0,
  "priceMedian": 36.0,
  "discountPct": 15.9,
  "inStockRatePct": 78.3,
  "collectionsCount": 49,
  "merchantEmails": ["support@beardbrand.com"],
  "socialLinks": {
    "instagram": "https://www.instagram.com/beardbrand",
    "tiktok": "https://www.tiktok.com/@beardbrand",
    "facebook": "https://www.facebook.com/beardbrand"
  },
  "detectedPixels": ["Google Analytics 4 / Ads"],
  "detectedApps": ["Klaviyo", "Judge.me Reviews", "Zendesk", "Bold Commerce"],
  "sampleProducts": [
    "Bold Fortune Classic Beard Bundle",
    "Old Money Classic Beard Bundle",
    "Tree Ranger Classic Beard Bundle"
  ],
  "scrapedAt": "2026-11-13T13:18:34.671115+00:00"
}
```

### FAQ

#### Is it legal to scrape Shopify stores?

The Actor collects publicly available data from storefront pages and public catalog endpoints such as `/products.json`. This is not legal advice. Whether your use is lawful depends on your jurisdiction, the data you collect and what you do with it, so consult a lawyer for your own use case. In `STORE_LEADS` mode (or with `includeStoreIntel`) the Actor can return business contact details such as emails and phone numbers, which may be personal data under GDPR and similar laws. You are responsible for lawful use of that data.

#### How do I know if a website is a Shopify store?

Run the Actor in `STORE_LEADS` mode and check `isShopify` and `isShopifyEvidence` in the result. `isShopify` is `true` only on strong evidence (see "How Shopify stores are detected"). A reachable website that is not Shopify is returned with `isShopify: false` and is billed as one `store-lead`.

#### Do I need an API key, login or proxy?

No store login or store API key is needed, because the Actor reads public pages. You need an Apify account to run it, and an Apify API token if you call it through the API. The Actor does not use proxies. Stores behind Shopify's "Enter store using password" page are reported as failed.

#### Can I use it with n8n, Make or Claude via MCP?

Yes. The Actor can be called through the Apify API (including the synchronous `run-sync-get-dataset-items` endpoint), the Python client and the Apify MCP server. Examples are in the Integrations section below.

#### Why did my run return 0 products?

Check `RUN_SUMMARY` in the key-value store first. Common causes:

- The store is counted as `empty`: its catalog was read successfully but had no products, the `/products.json` endpoint is not available (the site may not be Shopify), or no product matched your `keywordFilter`, `inStockOnly`, `onSaleOnly` or collection.
- The store is counted as `failed`: it blocked the request (HTTP 401, 403, 429 or 5xx, or a bot-challenge page) or is password-protected. The error type and HTTP status are listed under `failedInputs`.

Empty and failed stores are not billed. If every input fails, the run ends as failed.

#### How many products can I scrape per store?

Up to 10,000 per store (`maxProductsPerStore`). With filters, the Actor scans at most 10,000 products per store looking for matches and logs a warning under `warnings` if that cap is reached first. Use `collectionHandle` or a collection URL to narrow the search.

### Integrations (n8n, Make, MCP & Python)

#### n8n / Make / REST API (`run-sync-get-dataset-items`)

Enrich DTC e-commerce leads (`STORE_LEADS`) or monitor competitor pricing (`PRODUCTS`) from **n8n**, **Clay**, or **Make** with one `POST` call (`Bearer Auth` using your `APIFY_TOKEN`):

```bash
curl -X POST "https://api.apify.com/v2/acts/gutacker~shopify-store-spy/run-sync-get-dataset-items" \
  -H "Authorization: Bearer <APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{
    "stores": ["allbirds.com", "beardbrand.com"],
    "mode": "STORE_LEADS"
  }'
```

#### AI Agents & Model Context Protocol (Claude, Cursor, n8n AI Agent)

Expose Shopify store tech stacks, pixels, merchant contacts, and catalog pricing to AI agents via the Apify MCP Server:

```json
{
  "mcpServers": {
    "apify": {
      "url": "https://mcp.apify.com/?actors=gutacker/shopify-store-spy,gutacker/google-ads-transparency",
      "headers": { "Authorization": "Bearer <APIFY_TOKEN>" }
    }
  }
}
```

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

```python
from apify_client import ApifyClient

client = ApifyClient("<APIFY_TOKEN>")
run = client.actor("gutacker/shopify-store-spy").call(run_input={
    "stores": ["beardbrand.com"],
    "mode": "STORE_LEADS",
})
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
```

### Other Scrapers by gutacker

Also available: [Google Ads Transparency Scraper](https://apify.com/gutacker/google-ads-transparency) for Google Search, Shopping, and YouTube ads, [LinkedIn Ad Library Scraper](https://apify.com/gutacker/linkedin-ad-library) for LinkedIn ads, [Company KYB, DNS Tech Stack & NIS2 Readiness Check](https://apify.com/gutacker/company-kyb-compliance) for domain verification and DNS tech stacks, [EU Public Tenders & Winner Company Enricher](https://apify.com/gutacker/eu-public-tenders) for EU procurement awards, [Career Site Jobs Scraper](https://apify.com/gutacker/career-site-jobs) for ATS job boards, and [App Store & Google Play Reviews](https://apify.com/gutacker/app-store-reviews) for iOS and Android app reviews.

# Actor input Schema

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

Store domains, homepage URLs, or collection URLs such as 'allbirds.com', 'colourpop.com', 'beardbrand.com', or 'https://tentree.com/collections/mens'.

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

'PRODUCTS' outputs one record per product with variants and pricing. 'STORE_LEADS' outputs one summary record per store with contact emails, social links, ad pixels, and detected Shopify apps.

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

Maximum products returned per store in PRODUCTS mode. With a keyword, in-stock, or on-sale filter the Actor keeps reading the catalog until this many products match, the catalog ends, or 10,000 products have been scanned.

## `collectionHandle` (type: `string`):

Optional Shopify collection handle like 'best-sellers' or 'new-arrivals'.

## `keywordFilter` (type: `string`):

Optional comma-separated terms matched against title, vendor, productType, or tags.

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

Skip sold-out products in PRODUCTS mode.

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

Return only products where at least one variant has a compare_at_price higher than its own price.

## `includeStoreIntel` (type: `boolean`):

Always active in STORE_LEADS mode. In PRODUCTS mode, adds store emails, social links, pixels, and detected apps (billed once per store via 'store-lead').

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

Number of stores fetched concurrently.

## Actor input object example

```json
{
  "stores": [
    "allbirds.com",
    "colourpop.com",
    "beardbrand.com"
  ],
  "mode": "PRODUCTS",
  "maxProductsPerStore": 50,
  "collectionHandle": "",
  "keywordFilter": "",
  "inStockOnly": false,
  "onSaleOnly": false,
  "includeStoreIntel": true,
  "concurrency": 6
}
```

# Actor output Schema

## `results` (type: `string`):

No description

## `runSummary` (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",
        "colourpop.com",
        "beardbrand.com"
    ],
    "maxProductsPerStore": 50,
    "includeStoreIntel": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("gutacker/shopify-store-spy").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",
        "colourpop.com",
        "beardbrand.com",
    ],
    "maxProductsPerStore": 50,
    "includeStoreIntel": True,
}

# Run the Actor and wait for it to finish
run = client.actor("gutacker/shopify-store-spy").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",
    "colourpop.com",
    "beardbrand.com"
  ],
  "maxProductsPerStore": 50,
  "includeStoreIntel": true
}' |
apify call gutacker/shopify-store-spy --silent --output-dataset

```

## MCP server setup

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

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/AuYH6ch16b2yzprP7/builds/kuGvuwZLVHcYEYwHi/openapi.json
