# Shopify Store Monitor – Products, Prices & Stock Changes (`xerneas_ftw/shopify-store-monitor`) Actor

Track any Shopify store's products, prices and stock. Get new, removed, price-changed and restocked items each run. No API key.

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

## Pricing

$1.50 / 1,000 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 Monitor: products, prices and stock changes

Track any **Shopify** store's full catalog: products, variants, prices, compare-at (sale) prices and stock status, as clean JSON. Every run also tells you **what changed since the last run**: new products, removed products, price changes, restocks and sell-outs. No API key and no store access needed. It reads the same public product feed the storefront itself uses.

Illustrative output of a scheduled daily run with **Output only changes** on:

| storeDomain | title | changeType | previousPrice | priceMin | available |
|---|---|---|---|---|---|
| allbirds.com | Men's Tree Runners | `price_changed` | 98.00 | 79.00 | true |
| tentree.com | Juniper Fleece Hoodie | `restocked` | | 88.00 | true |
| gymshark.com | Vital Seamless Leggings | `removed` | 54.00 | | false |

- **Change tracking built in:** each product gets a `changeType` of `new`, `removed`, `price_changed`, `restocked`, `out_of_stock` or `unchanged`. Price changes include the previous price.
- **No false alarms:** a product is only reported `removed` after a complete scan, and only once its own product page also confirms it is gone. Capped or interrupted runs never report removals.
- **Any Shopify store:** custom domains (allbirds.com) and `*.myshopify.com` alike. Shopify is detected automatically; other sites are skipped and **not charged**.
- **Fast and cheap:** 250 products per request with no browser. On Apify, a 10,000-product store takes under a minute.
- **Spreadsheet-ready rows:** flat field names, one row per product or one row per variant (size/colour).

### What can you use it for?

- **Competitor price tracking:** schedule a daily run on your competitors and get only the products whose price moved.
- **Restock alerts:** get notified when a sold-out product or size comes back in stock.
- **Dropshipping and sourcing:** pull a supplier's full catalog with SKUs, prices and availability.
- **New product monitoring:** see the day a brand launches something.
- **Catalog feeds for AI agents and analytics:** clean JSON for every product and variant, ready for a database or LLM pipeline.

### How to monitor a Shopify store

1. Add one or more stores to **Shopify stores**, e.g. `allbirds.com`. To watch just one collection, paste its URL: `https://www.allbirds.com/collections/mens`.
2. Click **Start**. The first run saves a baseline and returns the whole catalog, with every product marked `new`.
3. Schedule the actor (e.g. daily) under **Schedules**. Each later run marks what changed. Turn on **Output only changes** to receive (and pay for) just the changed items.
4. Send the results anywhere with Apify integrations: Slack, Google Sheets, email, Zapier, Make or a webhook.

### Input

```json
{
  "storeUrls": ["allbirds.com", "https://www.tentree.com/collections/sale"],
  "trackChanges": true,
  "onlyChanges": false,
  "outputMode": "product",
  "maxProductsPerStore": 0
}
```

| Field | Description |
|---|---|
| `storeUrls` | Store domains or URLs. A `/collections/<handle>` URL scrapes only that collection. |
| `trackChanges` | Compare with the previous run of the same store (default `true`). |
| `onlyChanges` | Output only `new`, `removed`, `price_changed`, `restocked` and `out_of_stock` items. The first run of a store only records the baseline and outputs nothing. |
| `collections` | Collection handles (e.g. `mens-shoes`) applied to every store. Empty = whole catalog. |
| `maxProductsPerStore` | Cap per store for test runs (0 = no limit). |
| `outputMode` | `product` (variants nested in each row) or `variant` (one row per size/colour, with variant-level price and stock changes). |
| `includeVariants` | Product mode: include the nested `variants` array (default `true`). |
| `includeDescriptionHtml` | Add the product description HTML (default `false`, keeps rows small). |
| `failOnStoreErrors` | Mark the run failed if any store is skipped or only partly scraped, so failure alerts fire (default `false`). |
| `maxConcurrency` | Stores scraped in parallel (default 5). |
| `snapshotStoreName` | Named key-value store that keeps each store's last snapshot. Give separate monitors of the same store different names. |
| `proxyConfiguration` / `fallbackProxyConfiguration` | No proxy by default (fastest). A store that blocks the run switches to residential proxy for the rest of it. |

### Output

One row per product (product mode; values from a real Allbirds product, with an illustrative price change):

```json
{
  "storeDomain": "allbirds.com",
  "storeName": "Allbirds",
  "currency": "USD",
  "productId": 7215632482384,
  "handle": "mens-wool-runner-nz-waterproof-natural-black",
  "title": "Men's Wool Runner NZ Waterproof - Natural Black (Natural Black Sole)",
  "vendor": "Allbirds",
  "productType": "Shoes",
  "tags": ["allbirds::gender => mens", "FINAL SALE"],
  "url": "https://allbirds.com/products/mens-wool-runner-nz-waterproof-natural-black",
  "images": ["https://cdn.shopify.com/s/files/1/1104/4168/files/A12019_..._PDP_LEFT.png?v=1757523355"],
  "options": [{ "name": "Size", "values": ["8", "8.5", "9"] }],
  "priceMin": 95,
  "priceMax": 105,
  "compareAtPriceMax": 150,
  "onSale": true,
  "available": true,
  "variantCount": 13,
  "variants": [
    { "id": 41315598073936, "title": "8", "sku": "A12019M080", "price": 95, "compareAtPrice": 150, "onSale": true, "available": true, "option1": "8", "option2": null, "option3": null, "grams": 1016, "requiresShipping": true, "imageUrl": null, "createdAt": "2025-08-29T11:40:33-07:00", "updatedAt": "2026-11-24T01:05:59-08:00" }
  ],
  "createdAt": "2025-08-29T11:40:33-07:00",
  "updatedAt": "2026-11-24T01:26:30-08:00",
  "publishedAt": "2026-11-23T13:08:25-08:00",
  "changeType": "price_changed",
  "changes": ["price_changed", "restocked"],
  "previousPrice": 105,
  "previousPriceMax": 105,
  "scrapedAt": "2026-11-25T08:00:00.000Z"
}
```

- `changeType` is the most important change; `changes` lists all of them (a product can drop in price and come back in stock at once).
- `previousPrice` / `previousPriceMax` are filled only when the price changed.
- A product's price changes when any of its variants changes price. It is `restocked` when the first variant comes back after all were sold out, and `out_of_stock` when the last one sells out. For size-level alerts use `outputMode: "variant"`.
- `removed` rows keep the last known `title`, `handle`, `url` and `previousPrice`; current values are empty.

Variant mode rows have `productTitle`, `variantId`, `variantTitle`, `sku`, `price`, `compareAtPrice`, `available`, `option1`–`option3` and a variant URL, plus the same change fields.

The **OUTPUT** record of each run summarises stores scraped, stores skipped with the reason (`not_shopify`, `products_json_unavailable`, `password_protected`, `blocked`, `store_unavailable`, `invalid_url`, `duplicate`), product counts and change counts.

### Pricing

**$1.50 per 1,000 rows**, with no start fee and no per-store fee. You pay only for rows saved to the dataset. Skipped stores cost nothing, and with **Output only changes** you pay only for changed items.

| Use | Rows | Cost |
|---|---|---|
| One-off export of a 1,000-product store | 1,000 | $1.50 |
| One-off export of 10 stores × 1,000 products | 10,000 | $15.00 |
| Daily monitor of 10 stores × 1,000 products, only changes (~2% change a day) | ~6,000 / month | ~$9 / month |
| 100,000-product catalog export | 100,000 | $150.00 |

Set a **maximum cost per run** in the run options and the actor stops at that limit.

### Limitations

- **Exact inventory counts** are not public on most stores; you get in stock / out of stock per variant.
- **Headless storefronts** (custom front ends such as Hydrogen or Next.js that turn off Shopify's product feed) and **password-protected stores** can't be read. They're reported in the OUTPUT record and not charged.
- **Reviews** live in third-party apps (Judge.me, Yotpo, …) and are not included.
- **Stores over 25,000 products:** Shopify serves at most 25,000 products per listing. The actor reads the rest oldest-first, which reaches up to 50,000; beyond that the run says how many it got and reports no removals for that store.
- Some very large stores rate-limit long scans. The actor retries with backoff and switches proxy. If a store still stops answering, the products scanned so far are kept, the store is marked `partial`, and no removals are reported for it.

### FAQ

**How do I scrape a Shopify store?** Enter the store's domain and click Start. You don't need an API key, login or app install.

**Can I use this as a Shopify price tracker?** Yes. Schedule it daily with `onlyChanges` on and connect an integration (Slack, email, Google Sheets). You'll get just the price changes, restocks, new and removed products.

**How do I monitor competitors on Shopify?** Add all competitor stores to one run. Each store keeps its own snapshot, so changes are tracked per store.

**How do I know if a site is a Shopify store?** Just add it. Non-Shopify sites are detected, listed in the OUTPUT record with the reason, and not charged.

**Is it legal?** The actor reads only public product data that the store publishes to every visitor, and no personal data. Check that your use complies with the store's terms and your local laws. This is not legal advice.

# Actor input Schema

## `storeUrls` (type: `array`):

Store domains or URLs, e.g. allbirds.com. Custom domains work. A URL with /collections/<handle> scrapes only that collection. Non-Shopify sites are skipped and not charged.

## `trackChanges` (type: `boolean`):

Compare with the previous run of the same store and fill changeType: new, removed, price_changed, restocked, out_of_stock or unchanged. The first run of a store is the baseline (every product is new).

## `onlyChanges` (type: `boolean`):

Save (and charge for) only new, removed, price-changed, restocked and out-of-stock items. The first run of a store only records the baseline and outputs nothing. Turns on change tracking.

## `collections` (type: `array`):

Collection handles (e.g. mens-shoes) or collection URLs, applied to every store. Empty = whole catalog.

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

0 = no limit. Use a small number for test runs. A capped run never reports products as removed.

## `outputMode` (type: `string`):

One row per product (variants nested), or one row per variant (size/colour), with variant-level price and stock changes.

## `includeVariants` (type: `boolean`):

Product mode: nest the variants (id, title, sku, price, compareAtPrice, available, options) in each row.

## `includeDescriptionHtml` (type: `boolean`):

Adds the product description as raw HTML. Off by default to keep rows small.

## `failOnStoreErrors` (type: `boolean`):

Mark the run as failed when any store is skipped or only partly scraped, so Apify failure notifications and webhooks alert you. Rows already scraped are kept.

## `maxConcurrency` (type: `integer`):

Each store is paged one request at a time; this many stores run at once.

## `snapshotStoreName` (type: `string`):

Named key-value store holding the last snapshot of each store. Use different names to keep separate monitors (e.g. two tasks on the same store) apart.

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

Default: no proxy (Shopify serves Apify servers directly, and fastest). A store that blocks twice in a row switches to the fallback proxy.

## `fallbackProxyConfiguration` (type: `object`):

Used for a store once the primary proxy is blocked there. Default: Apify residential proxy.

## Actor input object example

```json
{
  "storeUrls": [
    "allbirds.com",
    "https://www.tentree.com"
  ],
  "trackChanges": true,
  "onlyChanges": false,
  "maxProductsPerStore": 0,
  "outputMode": "product",
  "includeVariants": true,
  "includeDescriptionHtml": false,
  "failOnStoreErrors": false,
  "maxConcurrency": 5,
  "snapshotStoreName": "shopify-store-monitor-snapshots",
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "fallbackProxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

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

One row per product (or per variant in variant mode), with its change since the last run.

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

Stores scraped and skipped (with reason), product counts and change counts.

# 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 = {
    "storeUrls": [
        "allbirds.com",
        "https://www.tentree.com"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    },
    "fallbackProxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("xerneas_ftw/shopify-store-monitor").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 = {
    "storeUrls": [
        "allbirds.com",
        "https://www.tentree.com",
    ],
    "proxyConfiguration": { "useApifyProxy": False },
    "fallbackProxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("xerneas_ftw/shopify-store-monitor").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 '{
  "storeUrls": [
    "allbirds.com",
    "https://www.tentree.com"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  },
  "fallbackProxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call xerneas_ftw/shopify-store-monitor --silent --output-dataset

```

## MCP server setup

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

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/iQC0Sf7cPLbylHK2o/builds/CFQrqHXT6isyZ2oQR/openapi.json
