# Shopify Products & Price Monitor (`cleandatatools/shopify-products-monitor`) Actor

Get all products from any Shopify stores (prices, discounts, stock, variants, images) or monitor them and get only what changed since the last run: price drops, stock changes, new and removed products.

- **URL**: https://apify.com/cleandatatools/shopify-products-monitor.md
- **Developed by:** [clean datatools](https://apify.com/cleandatatools) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

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

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 Products & Price Monitor

Get the products of **any Shopify store**, or **monitor stores and get only what changed** since your last run.

**Full catalog mode:** every product with title, vendor, type, tags, description, images, product link, min/max price, in-stock flag and all variants (size/colour, SKU, price, compare-at "was" price, discount %, availability). Choose one row per product (variants nested) or one flat row per variant.

**Changes-only mode (monitoring):** schedule it daily or hourly and get **only**:

- `changed`: a variant's price, compare-at price or stock changed (with old and new values);
- `new`: products that appeared since the last run;
- `removed`: products that disappeared.

The first run saves a baseline and outputs nothing, so you aren't charged for the whole catalog. Turn this off if you want everything as `new` on the first run. **You pay only for changes**, which makes daily competitor price tracking cheap.

Also:

- Many stores in one run. A store that fails gets one item with `status: "error"` and a clear reason; the others still finish.
- **Respects each store's robots.txt**: stores or paths it disallows are skipped and reported.
- Polite pacing, retries with backoff, optional Apify Proxy.

### Input

| Field | What it does |
|---|---|
| `stores` | Store addresses, e.g. `["www.allbirds.com", "shop.example.com"]`. |
| `mode` | `full` (default) or `changes`. |
| `outputLevel` | `product` (default) or `variant` (one row per variant). |
| `collection` | Optional collection handle, e.g. `sale`. |
| `maxProductsPerStore` | Optional limit per store. |
| `firstRunBaseline` | Changes mode: the first run only saves a baseline (default `true`). |
| `monitorId` | Changes mode: optional name, to keep separate monitors for the same stores. |
| `proxyConfiguration`, `minDelaySecs`, `maxRetries` | Optional reliability settings. |

```json
{ "stores": ["www.allbirds.com"], "mode": "changes", "outputLevel": "product" }
```

### Output (product level)

```json
{
  "store": "https://www.allbirds.com", "storeName": "Allbirds", "currency": "USD",
  "productId": 7292464824400, "title": "Women's Wool Cruiser - Port (Port Sole)",
  "url": "https://www.allbirds.com/products/womens-wool-cruiser-port-port-sole",
  "vendor": "Allbirds", "productType": "Shoes", "tags": ["…"],
  "minPrice": 120.0, "maxPrice": 120.0, "available": true, "images": ["https://cdn.shopify.com/…"],
  "variants": [
    { "variantId": 41990816137296, "title": "5", "sku": "A12858W050", "price": 120.0, "compareAtPrice": null,
      "discountPercent": null, "available": false, "options": ["5"], "grams": 0 }
  ],
  "status": "ok", "fetchedAt": "2026-11-16T07:40:00+00:00"
}
```

In changes mode, each item also has `changeType` (`new`, `changed`, `removed`) and `changes`, e.g.
`[{"variantId": "41990816137296", "field": "price", "from": 125.0, "to": 120.0}]`.

A run summary (requests, retries, stores ok/failed, counts of new/changed/removed) is saved as `RUN_STATS` in the key-value store.

### Pricing note

You pay per output item. With `outputLevel: variant`, each size/colour is its own item, so a 50-product store can give several hundred rows. Use `product` level to pay per product.

### Limits and good to know

- Works with stores that run on Shopify and keep Shopify's public product feed on. Some stores block automated access (HTTP 403, so try Apify Proxy) or turn the feed off (HTTP 404). These are reported per store.
- Currency comes from the store's own settings; prices are as shown to visitors of the store's main domain.
- Monitoring state is saved in your Apify account (key-value store `shopify-monitor-state`). Changing the store list or collection starts a new monitor, unless you set `monitorId`.
- Only public product data is collected. Please respect each store's terms of use.

# Actor input Schema

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

Store addresses, e.g. www.allbirds.com or https://shop.example.com. Each store is fetched and reported separately.

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

Full catalog: every product. Changes only: only products that are new, removed, or whose price/stock changed since the previous run with the same stores (ideal for scheduled monitoring).

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

Product (variants nested inside) or variant (one flat row per size/colour, product fields repeated).

## `collection` (type: `string`):

Only this collection, e.g. 'sale' for /collections/sale. Leave empty for the whole store.

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

Stop after this many products per store. Leave empty for all.

## `firstRunBaseline` (type: `boolean`):

On the first run for a set of stores, save the current catalog without outputting (or charging) anything. Turn off to get every product as 'new' on the first run.

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

Changes mode: name for the saved state. Use different names to keep separate monitors for the same stores. Default: derived from the store list.

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

Optional. Use Apify Proxy for stores that rate-limit or block cloud IPs.

## `minDelaySecs` (type: `number`):

Polite pause between requests to the same store.

## `maxRetries` (type: `integer`):

Retries with backoff on rate limits (429) and server errors.

## Actor input object example

```json
{
  "stores": [
    "www.allbirds.com"
  ],
  "mode": "full",
  "outputLevel": "product",
  "firstRunBaseline": true,
  "minDelaySecs": 1,
  "maxRetries": 4
}
```

# Actor output Schema

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

Products or variant rows with prices, stock and images; in changes mode, only new/changed/removed products.

## `runStats` (type: `string`):

Requests, retries, stores ok/failed and counts of new/changed/removed products.

# 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": [
        "www.allbirds.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("cleandatatools/shopify-products-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": ["www.allbirds.com"] }

# Run the Actor and wait for it to finish
run = client.actor("cleandatatools/shopify-products-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": [
    "www.allbirds.com"
  ]
}' |
apify call cleandatatools/shopify-products-monitor --silent --output-dataset

```

## MCP server setup

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