# WooCommerce Scraper: Price, Stock & New Product Monitor (`coobyp/woocommerce-price-watch`) Actor

Scrape any WooCommerce store catalog and detect new products, price drops, price increases and restocks between runs.

- **URL**: https://apify.com/coobyp/woocommerce-price-watch.md
- **Developed by:** [Cooper Pulliam](https://apify.com/coobyp) (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.20 / 1,000 result items

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

## WooCommerce Price & Stock Monitor

Scrape the product catalog of any WooCommerce store and see what changed since your last run: **new products, price drops, price increases, restocks and sell-outs**. Schedule it daily to watch competitors, track sales, or feed a price-comparison sheet.

It reads the store's public WooCommerce Store API (`/wp-json/wc/store/v1/products`), so it is fast, cheap to run, and needs no proxy or browser. It checks `robots.txt` first and skips stores that disallow that path. It stays polite: one request per second by default, and it backs off on HTTP 429.

### What you get

- Title, URL, SKU, product type, categories, brands, tags, main image
- Current price (lowest price for variable products), max price, regular price, sale price, `onSale` flag, currency
- In-stock flag and low-stock count when the store exposes it
- Rating and review count, variation count
- `changeType`: `baseline` (first run), `new`, `price_drop`, `price_increase`, `back_in_stock`, `out_of_stock`, `unchanged`
- `previousPrice` for anything that moved

### Input

| Field | What it does |
|---|---|
| `stores` | Store domains or URLs, e.g. `https://example-store.com` |
| `category` | Optional category slug or ID to watch one category |
| `categories` | Optional list of extra categories; each keeps its own change history |
| `webhookUrl` | Optional HTTPS webhook (Slack/Discord/Zapier/Make). A text summary of drops, increases, new items and stock changes is POSTed after each run |
| `maxProductsPerStore` | Cap per store (default 250) |
| `trackChanges` | Compare with the previous run (default on) |
| `onlyChanges` | After the first run, output only changed products |
| `requestDelayMs` | Delay between requests (default 1000) |

### Example output

```json
{
  "store": "example-store.com",
  "productId": 4521,
  "title": "Ceramic Pour-Over Set",
  "url": "https://example-store.com/product/ceramic-pour-over-set/",
  "sku": "POUR-01",
  "type": "simple",
  "categories": ["Coffee Gear"],
  "available": true,
  "currency": "USD",
  "price": 34.5,
  "priceMax": 34.5,
  "regularPrice": 42,
  "salePrice": 34.5,
  "onSale": true,
  "changeType": "price_drop",
  "previousPrice": 39,
  "rating": 4.7,
  "reviewCount": 18,
  "scrapedAt": "2026-11-03T05:00:00.000Z"
}
```

### Good to know

- The Store API is on by default in current WooCommerce, but some stores turn it off or block `/wp-json/`. Those stores return no data and the Actor logs a warning; it does not try to get around a block.
- Change tracking is stored per store (and per category) on your account, so each schedule keeps its own history. Tip: use `onlyChanges` on a daily schedule and you only get the deltas.
- Only public catalog data is collected (no logins, no customer data).

### Cost

Compute is tiny: a 250-product store takes a few seconds on 256 MB of memory.

### Run summary

Every run also stores a `SUMMARY` record in the default key-value store: per store/category counts of each change type plus the 10 biggest price drops. Output items include `priceChangePct`.

### Use cases

- **Competitor price monitoring:** track a rival WooCommerce store and get alerted on price drops or sell-outs.
- **Wholesale and reseller sourcing:** catch new products and restocks as they appear.
- **Price-comparison sheets:** export products, SKUs and prices to CSV, Excel or Google Sheets.

### FAQ

**Do I need a proxy or browser?** No. It uses the store's public Store API, so runs are fast and cheap.

**How do I get alerts?** Schedule the Actor, turn on `onlyChanges`, and set `webhookUrl` (Slack, Discord, Zapier, Make).

**Why did a store return nothing?** Some stores disable the Store API or disallow it in robots.txt. The Actor respects that and moves on.

# Actor input Schema

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

Store homepages or domains, e.g. https://example-store.com. Works on WooCommerce stores that expose the public Store API (/wp-json/wc/store/v1/products).

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

Stop after this many products per store.

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

Remember the previous run and label each product: new, price_drop, price_increase, back_in_stock, out_of_stock, unchanged. Schedule the Actor daily to monitor competitors.

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

After the first (baseline) run, skip unchanged products. You only pay for what changed.

## `requestDelayMs` (type: `integer`):

Be polite to the store. Minimum 250.

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

Only scan one product category, e.g. 'clothing' (slug) or '15' (ID). Leave empty for the whole catalog.

## `categories` (type: `array`):

Scan several categories per store, e.g. \['clothing','sale']. Each category keeps its own change history. Combined with the single category above.

## `webhookUrl` (type: `string`):

HTTPS URL (Slack/Discord/Zapier/Make incoming webhook). After each run a short text summary of price drops, increases, new and stock changes is POSTed as JSON with a 'text' field.

## Actor input object example

```json
{
  "stores": [
    "https://offermanwoodshop.com"
  ],
  "maxProductsPerStore": 250,
  "trackChanges": true,
  "onlyChanges": false,
  "requestDelayMs": 1000
}
```

# Actor output Schema

## `results` (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://offermanwoodshop.com"
    ]
};

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

# Run the Actor and wait for it to finish
run = client.actor("coobyp/woocommerce-price-watch").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://offermanwoodshop.com"
  ]
}' |
apify call coobyp/woocommerce-price-watch --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,coobyp/woocommerce-price-watch"
        }
    }
}
```

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/H4DyRRRbINqFPDl7a/builds/jrd595slJM85R1wLz/openapi.json
