# Shopify & WooCommerce Price Monitor – Products & Stock (`sn41lz/shopify-woocommerce-price-monitor`) Actor

Get every product and variant from any Shopify or WooCommerce store: price, compare-at price, discount, SKU, stock and images. 'Only changes' mode returns just new products, price drops, price rises and stock changes since the last run.

- **URL**: https://apify.com/sn41lz/shopify-woocommerce-price-monitor.md
- **Developed by:** [Sergi Espí Zamora](https://apify.com/sn41lz) (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

$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 Price Monitor – Products, Prices & Stock

Get **every product and variant from any Shopify or WooCommerce store** in one clean table: **price, compare-at price, discount %, SKU, barcode, stock, vendor, type, tags, images and links**. Then switch on **Only changes** and schedule it: each run returns only **new products, price drops, price rises, back-in-stock, out-of-stock and removed products** since the last run.

One Actor for both platforms. The platform is detected automatically; just paste store URLs.

### Who is it for?

- **Brands and retailers** watching competitors' prices, discounts and new launches.
- **Resellers and arbitrage sellers** looking for price drops and restocks.
- **Marketplaces and comparison sites** keeping catalogs and prices in sync.
- **Analysts and agencies** tracking assortment, pricing and promotions over time.

### Why this Actor?

- **Shopify and WooCommerce in one schema**, with the same fields for both, so you can mix stores in one run.
- **Real change monitoring.** Each store's last catalog is remembered per monitor, so you get the changes (`changeType`), with `previousPrice` and `priceChangePct`, not the whole catalog again. You only pay for the products that changed.
- **Fast and light.** It reads each store's own public catalog feed (Shopify `/products.json`, WooCommerce Store API), not HTML pages, with no browser and no proxy.
- **Polite and reliable.** It respects each store's robots.txt and crawl-delay and backs off on rate limits. A store that blocks automated access, or isn't a Shopify/WooCommerce shop, is skipped with a warning; the run continues with the rest.

### How much does it cost?

**$1 per 1,000 products** ($0.001 per product), **all its variants included**. There is no start fee.

| You get | You pay |
|---|---|
| 100 products | $0.10 |
| A 1,250-product store with 5,000 variant rows | $1.25 |
| Daily changes on 3 competitors, ~40 changed products a day | about $1.20 a month |

In *Only changes* mode, unchanged products are not charged. **Max products** is 1,000 by default (so a huge store can't run up a surprise bill); set it higher, or 0 for no limit.

### Input example

```json
{
  "storeUrls": ["https://www.deathwishcoffee.com", "https://jococups.com", "allbirds.com/collections/mens"],
  "mode": "changes",
  "monitorName": "competitors",
  "keywords": ["decaf", "mug"],
  "includeVariants": true,
  "maxItems": 0
}
```

- A **collection URL** (`…/collections/mens` on Shopify, `…/product-category/mugs` on WooCommerce) limits that store to the collection.
- **Collection / category** applies to every store without its own collection URL.
- **Shopify: barcode and stock quantity** opens each product's own JSON to add the barcode and stock count when the store publishes them (slower, same price).

### Output example

One variant row from a real run (tags and image URL shortened):

```json
{
  "store": "www.deathwishcoffee.com",
  "platform": "shopify",
  "productId": "15414106062903",
  "title": "Power Surge Ground Bundle",
  "vendor": "Deneen Pottery",
  "productType": "Bundle",
  "tags": ["Bundle", "Coffee & Mug Bundles", "Mug"],
  "handle": "power-surge-mug-ground-bundle",
  "variantId": "67671513137207",
  "variantTitle": null,
  "sku": "LKGPSMUG26",
  "price": 52.99,
  "compareAtPrice": 57.99,
  "discountPct": 8.6,
  "currency": "USD",
  "available": true,
  "inventoryQuantity": null,
  "url": "https://www.deathwishcoffee.com/products/power-surge-mug-ground-bundle",
  "image": "https://cdn.shopify.com/s/files/1/0271/7209/files/DeathWishCoffee_October26_Product_PowerSurge_Mugandgrounds_Web_2.jpg",
  "changeType": "new",
  "scrapedAt": "2026-11-10T16:14:00+00:00"
}
```

### Output fields

| Field | Description |
|---|---|
| `store`, `platform` | Store host and `shopify` / `woocommerce` |
| `productId`, `variantId`, `handle` | Store IDs and URL handle |
| `title`, `variantTitle`, `options` | Product name and variant (size, colour…) |
| `vendor`, `productType`, `categories`, `tags` | Brand, type, WooCommerce categories and tags |
| `sku`, `barcode` | SKU, and barcode (EAN/UPC) when the store publishes it |
| `price`, `compareAtPrice`, `discountPct`, `currency` | Current price, the store's "was" price and the discount |
| `priceMax`, `variantsCount` | When one row per product is chosen |
| `available`, `inventoryQuantity` | In stock, and the stock count when the store shows it |
| `url`, `image`, `weightGrams` | Product link, main image, weight (Shopify) |
| `createdAt`, `updatedAt`, `publishedAt` | Shopify dates |
| `changeType` | Only-changes mode: `new`, `priceDrop`, `priceIncrease`, `backInStock`, `outOfStock`, `removed` |
| `previousPrice`, `priceChangePct`, `previouslyAvailable`, `lastSeen` | What it was in the last run |
| `scrapedAt` | When the row was read |

### How to use it

1. Paste one or more store URLs (with or without `https://`).
2. Leave **Mode** on *All products* for a full catalog, or choose *Only changes since the last run* and give the monitor a name.
3. Optionally narrow by collection/category or keywords and set **Max products**.
4. Run it, or **schedule** it daily or weekly. Connect Slack, e-mail or Google Sheets in the Integrations tab to get price-drop alerts.

The first *Only changes* run returns everything as `new` and becomes the baseline. A store's `removed` products are only reported after a complete read of that store.

### Notes

- Only public catalog data is read: product, price and stock information that the store itself publishes. No customer or personal data.
- Stores that block automated access (HTTP 403 or a bot challenge), disallow the catalog feed in robots.txt, or have switched their public catalog off are skipped and listed in the run's status message. Nothing is charged for them.
- WooCommerce prices are the prices the store displays (they may include tax, depending on the store's settings).
- Very large stores (tens of thousands of variants) may need more memory: raise it in the run options.

# Actor input Schema

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

Shopify or WooCommerce shops, e.g. 'https://www.allbirds.com' or 'kith.com'. The platform is detected automatically. A collection or category URL (…/collections/mens-shoes or …/product-category/mugs) limits that store to it.

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

'All products' returns the full catalog. 'Only changes' returns just new products, price drops and rises, back-in-stock, out-of-stock and removed products since the last run with the same monitor name. Schedule it daily or weekly.

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

Name of the price history to compare with, e.g. 'competitors-coffee'. Use one name per set of stores and filters. Leave empty to use one history per combination of settings.

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

Optional. Only products in this Shopify collection handle or WooCommerce category slug (the last part of its URL, e.g. 'coffee' or 'insulated-bottles'). Applies to every store without its own collection URL.

## `keywords` (type: `array`):

Optional. Only products whose title, brand, type, category or tags contain one of these words, e.g. 'decaf' or 'hoodie'.

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

One row per size/colour variant with its own price, SKU and stock. Turn off for one row per product (cheapest price, available if any variant is). The price is per product either way.

## `includeDetails` (type: `boolean`):

Also open each Shopify product's own JSON to add the barcode (EAN/UPC/GTIN) and the stock quantity when the shop shows them. Slower (one extra request per product); same price. WooCommerce stores show low-stock counts without this.

## `maxItems` (type: `integer`):

Stop after this many products in total (all their variant rows included). Default 1,000 products ($1) so a huge store can't run up a surprise bill; set 0 for no limit.

## `proxyConfiguration` (type: `object`):

Not needed for most shops. Stores that block automated access are skipped with a warning.

## Actor input object example

```json
{
  "storeUrls": [
    "https://www.deathwishcoffee.com",
    "https://www.printingnewyork.com"
  ],
  "mode": "all",
  "includeVariants": true,
  "includeDetails": false,
  "maxItems": 20,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `overview` (type: `string`):

No description

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

// Run the Actor and wait for it to finish
const run = await client.actor("sn41lz/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 = {
    "storeUrls": [
        "https://www.deathwishcoffee.com",
        "https://www.printingnewyork.com",
    ],
    "maxItems": 20,
}

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

```

## MCP server setup

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