# Shopify Price & Stock Monitor — Competitor Variant Alerts (`flyerlin/shopify-variant-monitor`) Actor

Track competitor Shopify variant prices and public availability across runs. Get NEW, UPDATED and REMOVED events with changed fields. No store API key needed. $2 per 1,000 checked variants, platform usage included.

- **URL**: https://apify.com/flyerlin/shopify-variant-monitor.md
- **Developed by:** [林 吴](https://apify.com/flyerlin) (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

from $1.40 / 1,000 variant checkeds

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 Price & Stock Monitor — Variant Change Alerts

Track variant-level price and availability changes on public Shopify catalogs, on a schedule.

### Start small and make the second run useful

Use one public store and `max_products: 5` to check compatibility before scaling. The limit counts products, while billing counts **variants**: one product may contain many sizes or colors. Inspect the variant count in `SUMMARY` before choosing a schedule.

First run: save `BASELINE` rows. Second run: select the saved `snapshot_store_id` and reuse the product limit. Filter dataset rows by `event: UPDATED` and inspect `changed_fields` for price or availability changes. A successful run with no changes may have an empty event dataset; checked variants are still billed and the run summary confirms what was checked.

For a store with 100 checked variants, one daily check costs approximately **$6 per 30 days** at the base rate. Hourly checks cost about 24 times as much. Start daily unless your workflow needs faster detection. Availability is a public purchasable flag, not an inventory quantity.

### Use it when

- DTC brands watching competitor pricing and stockouts.
- Dropshippers tracking supplier catalog changes.
- Agencies monitoring client stores for unexpected price edits.
- Analysts building price-history datasets from public catalogs.

**Input → output:** Store URLs → variant baseline, then price and availability changes.

Works with Apify Schedules, webhooks/API and the Apify MCP server (Claude, Cursor and other MCP clients).

### Track competitor Shopify prices and stock

Any store that exposes the public `/products.json` endpoint can be watched, including competitor DTC brands. Variants are matched by Shopify variant ID, so a Shopify price tracker sees edits to price, compare-at price, SKU and availability even when a product title changes.

### Quick start

1. Paste 1–20 public Shopify store URLs, one per line, e.g. `https://www.allbirds.com`. The Actor reads the public `/products.json` catalog — no API key or store access needed.
2. Run once. The first run saves a variant baseline and returns `BASELINE` rows: nothing to alert on yet.
3. Schedule daily or hourly. Later runs return `UPDATED` rows for price, compare-at price, availability, SKU or title changes, plus `NEW` and (on complete catalogs) `REMOVED` variants.
4. Copy `snapshot_store_id` from `SUMMARY` and select it with **Existing snapshot store (grant access)** for repeat runs or saved tasks. Keep `max_products` constant. Typing a store name alone does not grant access.

```json
{"store_urls":["https://www.allbirds.com"],"max_products":5,"store_name":"competitor-prices"}
```

### Example event

```json
{
  "event": "UPDATED",
  "title": "Wool Runner",
  "variant_id": "40001",
  "price": "95.00",
  "compare_at_price": "120.00",
  "available": true,
  "changed_fields": ["price", "compare_at_price"],
  "observed_at": "2026-11-13T06:12:00Z"
}
```

### Pricing

**$0.002 per successfully checked variant**, including unchanged variants — $2 per 1,000. Failed stores are not billed. Platform usage is included in the event price. Apify paid plans receive volume discounts — Bronze 10%, Silver 20%, Gold and above 30%. Store pricing is authoritative.

Example: one store with 250 variants checked daily ≈ 7,500 variant checks/month ≈ **$15/month** in event fees, all-inclusive.

### Results

One dataset record per event: `BASELINE` on the first run, then `NEW`, `UPDATED`, `REMOVED`. `SUMMARY` in the run's key-value store holds per-store counts, errors and a `notice` that tells you whether the run was a baseline or a comparison. `CURRENT-*` records in the run store hold the latest full variant snapshot.

### Usage and limits

Input `store_urls` (1–20 stores), `max_products` (1–5000; default 500) and an optional persistent `store_name`. Uses public `products.json` catalogs; stores that disable this endpoint or block access are unsupported — there is no authentication or challenge bypass. Price, compare-at price, availability, SKU and titles are tracked by variant ID. `REMOVED` is only emitted when both snapshots contain complete catalogs; capped catalogs never prove a variant was removed. Public availability is not physical inventory quantity. Currency is an unknown/user-supplied label unless set via `currency_label` — it is not converted or verified. Region/session-specific and subscription pricing are not supported; keep market conditions constant between runs. No cross-store price matching. Schedule via Apify Schedules; no automatic messages are sent.

### Cost example

At the current configured rate, 100 checked variants cost $0.2 in custom events. The event fee already covers platform usage. This is not a quote; Store pricing is authoritative.

### Synthetic output example

Illustrative example only, not customer data or a claim about a live source. Fields may be omitted from this fragment; inspect your dataset for the full record.

```json
{
  "product_id": "1",
  "variant_id": "2",
  "title": "Demo product",
  "price": "12.00",
  "available": true,
  "event": "UPDATED",
  "changed_fields": [
    "price"
  ]
}
```

### Platform usage

Event prices include platform usage: there is no separate compute, storage or transfer charge. Apify paid plans receive volume discounts — Bronze 10%, Silver 20%, Gold and above 30%. Current Store pricing is authoritative.

### FAQ

**Do I need API keys or store access?**
No. It reads the public products.json catalog. Stores that disable that endpoint or block access are unsupported.

**Can I monitor a competitor's Shopify store?**
Yes, if it exposes the public `/products.json` catalog. Stores that hide that endpoint or block automated access are unsupported.

**Which fields trigger an update?**
Price, compare-at price, availability, SKU, product title and variant title, tracked by variant ID.

**Does it track inventory quantity?**
No. It tracks public purchasable availability, not physical stock counts.

**How are removed variants detected?**
REMOVED is emitted only when both snapshots contain complete catalogs. Capped catalogs never prove a variant was removed.

**What about currency?**
Currency is an optional user-supplied label only. There is no conversion or verified currency detection; keep market conditions constant between runs.

**How much does it cost?**
$0.002 per checked variant, including unchanged variants. 100 variants checked daily is about $6/month in event fees, all-inclusive.

### Related Actors

- [Website Change Monitor — Page Diffs & Change Alerts](https://apify.com/flyerlin/website-change-monitor)
- [Data Cleaner — Dedupe, Map & Validate JSON / CSV](https://apify.com/flyerlin/advanced-data-cleaner)
- [Webpage to JSON — Text, Tables, Links & JSON-LD](https://apify.com/flyerlin/webpage-clean-json)
- [All Actors by flyerlin](https://apify.com/flyerlin)

### Two-run acceptance checklist

1. Start with one public Shopify catalog and `max_products: 5`. Check `SUMMARY.errors`, actual variant count and the BASELINE rows. A product may have many variants.
2. Select the returned `snapshot_store_id` using the input resource picker. Run again with the same store URL and product limit. `first_check_stores` should be 0. No events means no detected changes; it does not mean the check failed.
3. For useful alerts, filter output to `event == UPDATED` and `changed_fields` containing `price` or `available`. Include `store_url`, `url`, `variant_id`, previous and current values in your downstream notification. BASELINE rows should not trigger change alerts.
4. Start with a daily schedule only after inspecting the per-check cost. This Actor does not send email/Slack messages itself. Connect your own integration.

This tool follows stable variant IDs within each public Shopify store. It does not match equivalent products across different merchants, enforce MAP, monitor Amazon sellers, or automatically reprice your store. If those are your requirements, this Actor is not a complete solution.

# Actor input Schema

## `store_urls` (type: `array`):

Public Shopify store URLs, one per line (max 20), e.g. https://www.allbirds.com. Reads the public /products.json catalog; no API key needed. The first run saves a variant baseline.

## `max_products` (type: `integer`):

Start with 5 products to check compatibility. Billing counts variants, including unchanged variants; inspect SUMMARY before scheduling.

## `store_name` (type: `string`):

Store holding variant snapshots between runs. Reuse the same name to compare across runs. Default: shopify-variant-monitor-state.

## `currency_label` (type: `string`):

Optional label copied to every event, e.g. USD. It is only a label — no currency conversion or detection is performed.

## `snapshot_store_id` (type: `string`):

Select the saved snapshot store from the first run SUMMARY for repeat checks. Takes priority over store_name. A name alone does not grant access.

## Actor input object example

```json
{
  "store_urls": [
    "https://www.allbirds.com"
  ],
  "max_products": 50
}
```

# Actor output Schema

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

Extracted records or lifecycle events.

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

Counts and per-source errors.

# 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 = {
    "store_urls": [
        "https://www.allbirds.com"
    ],
    "max_products": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("flyerlin/shopify-variant-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 = {
    "store_urls": ["https://www.allbirds.com"],
    "max_products": 50,
}

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

```

## MCP server setup

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