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

Scrape any Shopify store's products, prices, discounts and stock, and track changes between runs: new products, price drops and increases, back in stock, sold out, removed. Accepts domains, collection and product URLs. Pay only for changes with onlyChanges.

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

## Pricing

$0.80 / 1,000 product or variant rows

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, Stock & Changes

Scrape **any Shopify store** (products, prices, compare-at prices, discounts, stock, SKUs, images) and **track what changed since the last run**: new products, price drops, price increases, back in stock, sold out and removed products. Schedule it daily and get only the changes.

Works with bare domains (`allbirds.com`), homepages, collection URLs and product URLs. Non-Shopify sites are detected and skipped with a clear warning instead of failing the run.

### Who is it for

- **E-commerce sellers and brands** watching competitors' prices, sales and new launches
- **Resellers and deal hunters** waiting for restocks and price drops
- **Market researchers and agencies** tracking catalogs of many DTC brands
- **Dropshippers** checking supplier stock and prices every day
- **AI agents and automations** (Make, Zapier, n8n) that need a clean change feed

### Why this actor

| | This actor | Typical Shopify scrapers |
|---|---|---|
| Products, variants, prices, stock | ✅ | ✅ |
| Change detection between runs (NEW, PRICE_DROP, PRICE_UP, BACK_IN_STOCK, OUT_OF_STOCK, REMOVED) | ✅ built in | ❌ you diff yourself |
| Pay only for changes (`onlyChanges`) | ✅ | ❌ |
| Discount % computed | ✅ | sometimes |
| Accepts domains, collections and product URLs | ✅ | often homepage only |
| Price | **$0.80 / 1,000 rows** | $1+ / 1,000 |

### How it works

1. For every store it reads the public Shopify product feed (`/products.json`, 250 products per request, or `/collections/<handle>/products.json`, or `/products/<handle>.js` for single products). Plain HTTP, no browser, so it's fast and cheap: a 1,000-product store takes a few seconds.
2. It saves a compact snapshot of prices and stock per store in your Apify account (key-value store `donzely-shopify-store-monitor-state`).
3. On the next run it compares the new data with the snapshot and labels every row with `changeType`.

It respects robots.txt, waits between requests and backs off when a store answers HTTP 429.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `stores` | array of strings | 2 demo stores | Domains or URLs. Homepage/domain = whole store, `/collections/x` = that collection, `/products/x` = that product. |
| `outputLevel` | `product` / `variant` | `product` | One row per product (cheapest price, max discount, in stock if any variant is) or one row per size/color variant. |
| `trackChanges` | boolean | `true` | Compare with the previous run and add `changeType`. |
| `onlyChanges` | boolean | `false` | Return only changed rows. The first run saves the baseline and returns nothing. |
| `monitorId` | string | empty | Separate change histories for the same store (e.g. per client or schedule). |
| `onlyAvailable` | boolean | `false` | Skip sold-out products (change rows are always returned). |
| `minDiscountPct` | integer | `0` | Only products on sale with at least this discount (change rows are always returned). |
| `maxProductsPerStore` | integer | `5000` | Limit per store or collection. |
| `maxRunMinutes` | integer | `4` | Soft time limit; the run keeps everything collected so far. ~25,000 products per minute. |
| `includeDescription` | boolean | `false` | Add plain-text description. |
| `proxyConfiguration` | object | none | Optional Apify Proxy if a store rate-limits you. |

Example:

```json
{
  "stores": ["allbirds.com", "https://www.deathwishcoffee.com/collections/coffee"],
  "outputLevel": "product",
  "onlyChanges": true
}
```

### Output

One row per product (or variant). Example (product mode, second run):

```json
{
  "store": "www.deathwishcoffee.com",
  "storeName": "Death Wish Coffee",
  "currency": "USD",
  "source": "store",
  "productId": 7361969684535,
  "title": "Valhalla Java Single-Serve Pod",
  "handle": "valhalla-java-single-serve-pods",
  "url": "https://www.deathwishcoffee.com/products/valhalla-java-single-serve-pods",
  "vendor": "Death Wish Coffee",
  "productType": "Single-Serve Pods",
  "tags": ["Pods", "Valhalla Java"],
  "price": 14.99,
  "maxPrice": 14.99,
  "compareAtPrice": 19.99,
  "discountPct": 25,
  "available": true,
  "availableVariants": 1,
  "variantsCount": 1,
  "sku": "VJPOD10",
  "createdAt": "2024-02-01T10:00:00-05:00",
  "publishedAt": "2024-02-01T10:00:00-05:00",
  "updatedAt": "2026-11-18T11:03:48-05:00",
  "image": "https://cdn.shopify.com/s/files/....jpg",
  "variants": [{ "id": 4241, "title": "10 count", "sku": "VJPOD10", "price": 14.99, "compareAtPrice": 19.99, "available": true }],
  "changeType": "PRICE_DROP",
  "changes": ["PRICE_DROP"],
  "previousPrice": 24.99,
  "priceChange": -10,
  "priceChangePct": -40.02,
  "variantChanges": [{ "variantId": 4241, "variantTitle": "10 count", "type": "PRICE_DROP", "from": 24.99, "to": 14.99 }],
  "scrapedAt": "2026-11-18T16:08:40.976Z"
}
```

`changeType` values: `BASELINE` (first run for this store), `UNCHANGED`, `NEW`, `PRICE_DROP`, `PRICE_UP`, `BACK_IN_STOCK`, `OUT_OF_STOCK`, `REMOVED`, and in product mode `VARIANTS_CHANGED` (e.g. one size sold out or a new size added while the product as a whole is still in stock; details in `variantChanges`). Use `outputLevel: "variant"` to get size-level stock alerts as their own rows.

A per-store summary (products found, completeness, problems) is saved in the run's key-value store as `SUMMARY`.

### Pricing

Pay per event: **$0.0008 per output row** ($0.80 per 1,000 products or variants). No start fee. Stores that fail, are not Shopify or are blocked cost nothing. With `onlyChanges` you pay only for rows that changed, so a daily monitor of a 2,000-product store usually costs a few cents.

### Limits and notes

- Only public data that the store publishes in its Shopify product feed. No login, no checkout, no personal data.
- A few stores disable the public feed or block bots (HTTP 403); they are reported in the log and `SUMMARY`.
- Exact stock quantities are not public on Shopify; you get available / sold out per variant.
- Prices are in the store's default currency (`currency` field).
- `REMOVED` is reported only when the whole store/collection was read; runs cut short by `maxProductsPerStore` or `maxRunMinutes` never fake removals.

### FAQ

**How do I get daily alerts?** Create a Task with your stores and `onlyChanges: true`, schedule it daily, and connect a webhook, Slack or email integration to "Run succeeded".

**Can I monitor only one collection?** Yes, paste the collection URL, e.g. `https://store.com/collections/sale`.

**Is the first run with `onlyChanges` empty?** Yes, it saves the baseline. Every later run reports differences.

**How do I know if a site is Shopify?** Just add it. Non-Shopify sites are skipped with a warning and are free.

# Actor input Schema

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

Store domains or URLs, one per line. Accepts bare domains (allbirds.com), homepages, collection URLs (only that collection) and product URLs (only that product). Non-Shopify sites are skipped with a warning.

## `outputLevel` (type: `string`):

'product' = one row per product (cheapest price, max discount, any variant in stock, all variants inside). 'variant' = one row per size/color variant (more rows, more detail).

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

Saves a snapshot of each store and compares the next run with it. Each row gets changeType: NEW, PRICE_DROP, PRICE_UP, BACK_IN_STOCK, OUT_OF_STOCK, REMOVED, VARIANTS_CHANGED (product mode), UNCHANGED, or BASELINE on the first run.

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

Return (and pay for) only rows that changed since the previous run. The first run only saves the baseline and returns nothing. Ideal for scheduled monitoring.

## `monitorId` (type: `string`):

Keeps separate change histories for the same store, e.g. one per schedule or client. Leave empty for a single monitor.

## `onlyAvailable` (type: `boolean`):

Skip sold-out products. Change rows (e.g. OUT_OF_STOCK) are always returned.

## `minDiscountPct` (type: `integer`):

Only products on sale with at least this discount vs. compare-at price. 0 = all. Change rows are always returned.

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

Upper limit per store (or collection). When a store is cut short, REMOVED is not reported for it.

## `maxRunMinutes` (type: `integer`):

Soft time limit: the run stops fetching and saves what it has. Raise it for very large stores (each minute reads ~25,000 products).

## `includeDescription` (type: `boolean`):

Adds the product description as plain text (max 5,000 chars).

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

Usually not needed. Use Apify Proxy if a store rate-limits or blocks you.

## Actor input object example

```json
{
  "stores": [
    "https://www.deathwishcoffee.com",
    "https://www.hiutdenim.co.uk"
  ],
  "outputLevel": "product",
  "trackChanges": true,
  "onlyChanges": false,
  "onlyAvailable": false,
  "minDiscountPct": 0,
  "maxProductsPerStore": 5000,
  "maxRunMinutes": 4,
  "includeDescription": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

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

No description

## `summary` (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": [
        "https://www.deathwishcoffee.com",
        "https://www.hiutdenim.co.uk"
    ],
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("donzely/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 = {
    "stores": [
        "https://www.deathwishcoffee.com",
        "https://www.hiutdenim.co.uk",
    ],
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("donzely/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 '{
  "stores": [
    "https://www.deathwishcoffee.com",
    "https://www.hiutdenim.co.uk"
  ],
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call donzely/shopify-store-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,donzely/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/jy2YglnM2CnbU9hqY/builds/qyhtcdXcYHnu2uDbl/openapi.json
