# Shopify & WooCommerce Scraper + Price Change Monitor (`oscar_ps/shopify-woocommerce-price-monitor`) Actor

Scrape products, prices, variants and stock from any public Shopify or WooCommerce store, and get only price drops, increases, stock changes, new and removed products on scheduled runs. One clean schema for both platforms. No API key, no login.

- **URL**: https://apify.com/oscar_ps/shopify-woocommerce-price-monitor.md
- **Developed by:** [Oscar Palos](https://apify.com/oscar_ps) (community)
- **Categories:** E-commerce, Automation, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 1,000 product saveds

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

## Shopify & WooCommerce Scraper + Price Change Monitor

Scrape **products, prices, variants, SKUs and stock** from any public **Shopify** or **WooCommerce** store, and get **price drop, price increase, back-in-stock, out-of-stock, new product and removed product alerts** on scheduled runs. One clean schema for both platforms. No API key, no login, no browser.

### What can this Shopify and WooCommerce scraper do?

- 🛒 **Two platforms, one Actor**: auto-detects Shopify (`/products.json`) and WooCommerce (Store API `wp-json/wc/store/v1/products`) and returns the same fields for both.
- 📉 **Price monitor mode**: compares with the previous run and outputs only what changed: `price_drop`, `price_increase`, `back_in_stock`, `out_of_stock`, `sale_changed`, `new`, `removed`, with previous price, delta and % change.
- 🔁 **Built for scheduled runs**: run it daily or hourly with the Apify scheduler and connect the dataset to Slack, email, Google Sheets, Make, Zapier or n8n.
- 🧱 **Reliable by design**: sequential, polite requests per store, retries with exponential backoff, `Retry-After` support, a backoff budget so blocked stores fail fast instead of hanging, and duplicate-page protection.
- 🤖 **robots.txt respected** (including crawl-delay), public endpoints only.
- 💸 **You only pay for results**: unsupported, private or blocked stores are never charged.

### What data can I extract?

| Field | Shopify | WooCommerce |
|---|---|---|
| title, url, handle, productId | ✅ | ✅ |
| price, minPrice, maxPrice, compareAtPrice, onSale | ✅ | ✅ |
| currency | ✅ (store meta) | ✅ |
| available (in stock) | ✅ | ✅ |
| variants: SKU, barcode, options, price, stock | ✅ | variation IDs + attributes |
| vendor, productType, tags, categories | ✅ | ✅ |
| images, description (optional) | ✅ | ✅ |
| rating, review count | – | ✅ |
| createdAt / updatedAt | ✅ | – |
| changeType, previousPrice, priceDelta, priceDeltaPct | monitor mode | monitor mode |

### How to use it

1. Add one or more store domains, e.g. `allbirds.com` or `https://nopong.com.au`.
2. Pick **Catalog** (all products) or **Monitor** (only changes since the last run with the same Monitor ID).
3. Run it. In Monitor mode the first run saves a baseline; schedule the next runs to receive only changes.

#### Example input

```json
{
  "stores": ["allbirds.com", "nopong.com.au"],
  "mode": "monitor",
  "monitorId": "competitors-daily"
}
```

#### Example output (monitor mode)

```json
{
  "platform": "shopify",
  "storeDomain": "allbirds.com",
  "title": "Anytime Ankle Sock - Natural Grey Heather",
  "url": "https://allbirds.com/products/...",
  "currency": "USD",
  "price": 8,
  "compareAtPrice": 16,
  "available": true,
  "changeType": "price_drop",
  "previousPrice": 13,
  "priceDelta": -5,
  "priceDeltaPct": -38.46,
  "scrapedAt": "2026-11-20T23:00:00.000Z"
}
```

Every run also writes a `SUMMARY` record to the key-value store with per-store status (`ok`, `partial`, `unsupported`, `rate_limited`, `blocked_by_robots`, `failed`), product counts, requests, retries and duration.

### Use cases

- **Competitor price monitoring** for ecommerce brands and agencies.
- **Price drop and restock alerts** for resellers and deal sites.
- **Product catalog export** to CSV, Excel or JSON for market research, PIM imports or AI agents.
- **Assortment tracking**: detect new and discontinued products across many stores.

### How much does it cost?

Pay per event, no monthly rental. See the pricing tab: products saved in Catalog mode are charged per product; in Monitor mode you pay a small fee per product checked plus a fee per change found. Stores that cannot be read are free. Set a maximum total charge per run in the run options to cap spend.

### Limits and good practice

- Works with stores that expose the standard public endpoints. Headless/custom storefronts, password-protected stores and stores that block automated traffic are reported as `unsupported` or `rate_limited` and are not charged.
- Shopify's public endpoint shows prices in the store's default currency/market.
- Only public catalog data is collected: no customer data, no login, no checkout. You are responsible for using the data in line with the target store's terms and applicable law.

### FAQ

**Does it need a Shopify or WooCommerce API key?** No. It reads the same public JSON the storefront uses.

**Can I monitor only one Shopify collection?** Yes, set *Shopify collection handle* (e.g. `sale`).

**Why do I see every product as `new` on the first monitor run?** The first run creates the baseline. From the second run on you get only changes.

**Can AI agents use it?** Yes, through the Apify MCP server or API; the output schema is flat and stable.

# Actor input Schema

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

One store per line, e.g. allbirds.com or https://shop.example.com. The platform (Shopify or WooCommerce) is detected automatically.

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

Catalog: return every product. Monitor: compare with the previous run of the same monitor ID and return only changes (price drop/increase, back in stock, out of stock, sale changed, new, removed). Schedule the Actor to get daily price alerts.

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

Name of the saved baseline used in Monitor mode. Use a different ID for each watch list. The first run saves the baseline and returns all products as "new".

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

Off = only changes are saved and charged.

## `platform` (type: `string`):

Leave on auto-detect unless you know the platform.

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

Only read one Shopify collection, e.g. "sale" for /collections/sale. Empty = whole catalog.

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

0 = no limit. In Monitor mode a limit prevents "removed" detection.

## `includeVariants` (type: `boolean`):

Variant price, SKU, barcode, options and stock (Shopify) or variation IDs (WooCommerce).

## `includeDescription` (type: `boolean`):

Plain-text description, max 5,000 characters.

## `maxImages` (type: `integer`):

Image URLs per product.

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

Politeness delay per store. robots.txt crawl-delay is honored if higher.

## `maxConcurrency` (type: `integer`):

Each store is always read sequentially; this only sets how many stores run at once.

## `respectRobotsTxt` (type: `boolean`):

Recommended. Endpoints disallowed by robots.txt are skipped.

## Actor input object example

```json
{
  "stores": [
    "allbirds.com",
    "nopong.com.au"
  ],
  "mode": "catalog",
  "monitorId": "default",
  "outputUnchanged": false,
  "platform": "auto",
  "maxProductsPerStore": 0,
  "includeVariants": true,
  "includeDescription": false,
  "maxImages": 3,
  "requestDelayMs": 600,
  "maxConcurrency": 4,
  "respectRobotsTxt": true
}
```

# Actor output Schema

## `products` (type: `string`):

All dataset items: products (Catalog mode) or change records (Monitor mode).

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

Monitor mode change records with previous price, delta and % change.

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

Per-store status (ok, partial, unsupported, rate_limited, blocked_by_robots, failed), product counts and timings.

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

// Run the Actor and wait for it to finish
const run = await client.actor("oscar_ps/shopify-woocommerce-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 = { "stores": [
        "allbirds.com",
        "nopong.com.au",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("oscar_ps/shopify-woocommerce-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 '{
  "stores": [
    "allbirds.com",
    "nopong.com.au"
  ]
}' |
apify call oscar_ps/shopify-woocommerce-price-monitor --silent --output-dataset

```

## MCP server setup

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