# Price & Stock Tracker for Shopify, WooCommerce & Any Store (`signal_factory/store-price-monitor`) Actor

Monitor competitor stores for price drops, price increases, restocks, sell-outs, new and removed products. Reads Shopify and WooCommerce JSON, or schema.org data on any store. Outputs only what changed since the last run. No proxy, no API key.

- **URL**: https://apify.com/signal_factory/store-price-monitor.md
- **Developed by:** [Signal Factory](https://apify.com/signal_factory) (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 product checkeds

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

## Price & Stock Tracker for Shopify, WooCommerce & Any Store

Monitor competitor stores and get only what changed since the last run: **price drops, price increases, restocks, sell-outs, new products and removed products**. Works on Shopify and WooCommerce stores out of the box, and on any other store whose product pages carry schema.org data (most do, because Google Shopping needs it).

Schedule it daily and the dataset is a change log. You don't get the whole catalogue again every day.

### What it does

1. You give it store home pages, Shopify collections or single product pages.
2. It works out the platform and reads the store's own public data:
   - **Shopify**: the public `/products.json` catalogue. Every variant (size, colour) is tracked separately.
   - **WooCommerce**: the public Store API (`/wp-json/wc/store/v1/products`). It needs no key.
   - **Anything else**: product pages from the store's sitemap, read through their schema.org `Product` / `Offer` markup.
3. It saves a snapshot in your own key-value store, `store-price-monitor-state`.
4. On the next run it compares the store with that snapshot and outputs one row per change.

It doesn't use a browser, a proxy or a third-party API, so you need no key and the runs are cheap.

### Who it is for

- **Ecommerce sellers** watching competitor pricing.
- **Resellers and deal sites** catching price drops and restocks before anyone else.
- **Brands** checking that retailers follow their price rules (MAP).
- **Analysts** who want a daily price history without storing full catalogue dumps.

### Input

| Field | What it does |
|---|---|
| `storeUrls` | Store home pages (whole catalogue), Shopify collection URLs, or product page URLs. Up to 500. |
| `maxProductsPerStore` | Cost cap per URL. Default 1,000. |
| `monitorName` | Each name keeps its own snapshot. Use different names for different schedules or clients watching the same store. |
| `outputUnchanged` | Off (default): changes only. On: every product, every run, with changes marked. |

```json
{
    "storeUrls": [
        "https://www.deathwishcoffee.com",
        "https://woocommerce.com",
        "https://www.adafruit.com/product/1"
    ],
    "maxProductsPerStore": 1000
}
```

### Output

Each row has a `type` field:

| `type` | When |
|---|---|
| `baseline` | First run for a URL: the current state of every product. No changes can be reported yet. |
| `change` | Something changed. `changes` lists what: `price_drop`, `price_increase`, `back_in_stock`, `out_of_stock`, `new`, `removed`. |
| `unchanged` | Only with `outputUnchanged` on. |
| `store` | One status row per URL on every run: platform, products read, change counts, and any error. |

This change row came from a real local run on 2026-11-22. To test it, the saved price was edited from $45 to $50 before the second run:

```json
{
    "type": "change",
    "changes": ["price_drop"],
    "store": "https://www.deathwishcoffee.com",
    "platform": "shopify",
    "title": "Triple Threat Chocolate Bark Bundle",
    "variantTitle": null,
    "sku": "LKCHOCB26",
    "url": "https://www.deathwishcoffee.com/products/triple-threat-chocolate-bark-bundle",
    "price": 45,
    "previousPrice": 50,
    "priceChange": -5,
    "priceChangePct": -10,
    "currency": "USD",
    "inStock": true,
    "previousInStock": true,
    "checkedAt": "2026-11-22T06:00:33.408Z"
}
```

Each product row also carries `productId`, `variantId`, `vendor`, `imageUrl`, `compareAtPrice` (the struck-through "was" price, where the store shows one) and `previousCheckedAt` (the time of the run it was compared with).

**Alerts:** add a Slack, email or webhook integration to the Actor (or to a saved task). Filter for `type == "change"` to skip the status rows.

### Pricing

Pay per event:

| Event | Price |
|---|---|
| Product checked (all its variants count as one) | $0.0005 |
| Change detected | $0.002 |

Two examples:

- 500 products checked daily for 30 days costs 500 × $0.0005 × 30 = **$7.50**.
- On top of that, 20 changes a day costs 20 × $0.002 × 30 = **$1.20**.

You are never charged for a store that fails to load, or for its status row. Set a spending limit when you start the run and the Actor stays under it. Changes it could not report within the limit are not lost: they stay in the snapshot and show up on the next run.

### Scheduling

1. Run it once by hand. That saves the baseline.
2. Create a schedule (Apify Console, Schedules) with the same input. Daily is typical. Hourly works for restock alerts.
3. Keep `monitorName` the same between runs, or the Actor starts a new baseline.

### Limits, stated plainly

- **The first run cannot report changes**, because there is nothing to compare with yet. It saves the baseline.
- **Removed products are only reported after a complete read of the URL.** If `maxProductsPerStore` cut the read short, or some pages failed, a product that is missing might just not have been read. The Actor does not report it as removed.
- **WooCommerce variable products** (sizes, colours) are tracked at product level, at the lowest variation price. Shopify tracks each variant separately.
- **Stores that block automated requests** (some large retailers answer 403 to any non-browser client) get a `store` row with `status: "error"`. They are not charged. Shopify can slow a busy IP down with HTTP 429. The Actor waits and retries up to 3 times before giving up on that store.
- **Prices are the public prices** a visitor sees on the site, in the store's currency. Logged-in, B2B or geo-specific prices are not seen.
- **Schema.org stores** must put the price in the page markup. Stores that load prices only with JavaScript are not supported yet.

### FAQ

**Is this allowed?** It reads the same public data a browser loads when anyone visits the store: Shopify's public product JSON, WooCommerce's public Store API, and the structured data stores publish for search engines. It doesn't log in, and it doesn't touch carts or checkout. You are responsible for how you use the data.

**Why not scrape the whole catalogue every day with a generic scraper?** You can. Then you have to diff the files yourself, and you pay per result for products that did not change. This Actor keeps the snapshot and does the diff, so the dataset is the list of changes.

**Can two clients monitor the same store?** Yes. Give each a different `monitorName`.

**Does it follow the store's redirects?** Yes. Give the canonical home page URL for the cleanest results.

# Actor input Schema

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

One URL per line. A store home page (e.g. https://shop.example.com) monitors the whole catalogue: Shopify via /products.json, WooCommerce via its public Store API, anything else via the sitemap and schema.org product data. A Shopify collection URL monitors that collection. A product page URL monitors that one product. Up to 500 URLs.

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

Stops reading a store after this many products, to cap cost. Removed products are only reported when the whole catalogue was read, so set this above the store's size if you want removals.

## `monitorName` (type: `string`):

Each name keeps its own saved snapshot (in your key-value store "store-price-monitor-state"). Use different names for different schedules or clients watching the same store. Letters, digits, - and \_.

## `outputUnchanged` (type: `boolean`):

Off: the dataset holds only changes (plus one status row per URL). On: every product is output on every run, so the dataset is a full price list with changes marked.

## Actor input object example

```json
{
  "storeUrls": [
    "https://www.deathwishcoffee.com",
    "https://woocommerce.com"
  ],
  "maxProductsPerStore": 20,
  "monitorName": "default",
  "outputUnchanged": false
}
```

# Actor output Schema

## `changes` (type: `string`):

No description

## `stores` (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 = {
    "storeUrls": [
        "https://www.deathwishcoffee.com",
        "https://woocommerce.com"
    ],
    "maxProductsPerStore": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("signal_factory/store-price-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": [
        "https://www.deathwishcoffee.com",
        "https://woocommerce.com",
    ],
    "maxProductsPerStore": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("signal_factory/store-price-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": [
    "https://www.deathwishcoffee.com",
    "https://woocommerce.com"
  ],
  "maxProductsPerStore": 20
}' |
apify call signal_factory/store-price-monitor --silent --output-dataset

```

## MCP server setup

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