# WooCommerce Products & Price Monitor (`cleandatatools/woocommerce-products-monitor`) Actor

Get all products from any WooCommerce stores (prices, sale prices, stock, categories, 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/woocommerce-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

## WooCommerce Products & Price Monitor

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

**Full catalog mode:** every product with title, link, SKU, type, current price, regular price, sale price, discount %, price range (for products with variations), stock status, low-stock count, categories, tags, brands, images, short description, rating and review count, and the list of variations with their attributes.

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

- `changed`: price, regular price, sale price, price range, stock or low-stock count 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. **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 (not charged); the others still finish.
- **Respects each store's robots.txt**: stores that disallow the Store API are skipped and reported.
- Uses WooCommerce's own public Store API (`/wp-json/wc/store/v1/products`). No login, no API keys, no browser.
- Polite pacing, retries with backoff, optional Apify Proxy.

### Input

| Field | What it does |
|---|---|
| `stores` | Store addresses, e.g. `["bloomscape.com", "shop.example.com"]`. |
| `mode` | `full` (default) or `changes`. |
| `category` | Optional category ID or slug. |
| `maxProductsPerStore` | Optional limit per store. |
| `firstRunBaseline` | Changes mode: 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": ["bloomscape.com", "jococups.com"], "mode": "changes" }
```

### Output

```json
{
  "store": "https://www.francisfordcoppolawinery.com", "currency": "USD",
  "productId": 12345, "title": "The Perfect Pizza Pairing Pack",
  "url": "https://www.francisfordcoppolawinery.com/product/…", "sku": "…", "type": "simple",
  "price": 145.0, "regularPrice": 145.0, "salePrice": null, "onSale": false, "discountPercent": null,
  "minPrice": 145.0, "maxPrice": 145.0, "inStock": true, "stockStatus": null, "lowStockRemaining": null,
  "categories": ["Gift Sets"], "tags": [], "brands": [], "images": ["https://…"],
  "shortDescription": "…", "averageRating": 0.0, "reviewCount": 0, "variations": [],
  "status": "ok", "fetchedAt": "2026-11-22T07:30:00+00:00"
}
```

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

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

### Limits and good to know

- Works with WooCommerce stores that keep the public Store API on (WooCommerce's default). Some stores block it, return 403/429 to cloud servers (try Apify Proxy) or disallow it in robots.txt. These are reported per store.
- Prices are the store's own display prices in its currency, as shown to visitors (taxes as the store shows them).
- Per-variation prices are not included: the product's price range (`minPrice`/`maxPrice`) covers them.
- Monitoring state is saved in your Apify account (key-value store `woocommerce-monitor-state`). Changing the store list or category 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. bloomscape.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).

## `category` (type: `string`):

Only this product category (category ID or slug). 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": [
    "bloomscape.com"
  ],
  "mode": "full",
  "firstRunBaseline": true,
  "minDelaySecs": 1,
  "maxRetries": 4
}
```

# Actor output Schema

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

Products with prices, sale 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": [
        "bloomscape.com"
    ]
};

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

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

```

## MCP server setup

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