# Shopify Price & Stock Change Monitor (`avisha-ai/shopify-price-stock-monitor`) Actor

Watch any public Shopify store and get only what changed since the last run: price drops, price increases, back in stock, sold out, new and removed products.

- **URL**: https://apify.com/avisha-ai/shopify-price-stock-monitor.md
- **Developed by:** [Avisha](https://apify.com/avisha-ai) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 result rows

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 Price & Stock Change Monitor

Watch any public Shopify store and get **only what changed** since your last run: price drops, price increases,
back in stock, sold out, new variants and removed variants. Schedule it daily and pipe the changes to Slack,
Google Sheets, email or a webhook.

### Why this one

Most Shopify scrapers give you the whole catalogue every time, and you have to diff it yourself. This Actor keeps
the last snapshot for you and returns a short list of changes, so a daily check of 20 stores costs cents, not dollars.

- Any public Shopify store, or one collection (e.g. `…/collections/sale`)
- Variant level: size/colour prices and stock, not just the product
- Change flags: `BASELINE`, `NEW`, `PRICE_DROP`, `PRICE_INCREASE`, `BACK_IN_STOCK`, `OUT_OF_STOCK`, `REMOVED`
- Price change % and discount vs. compare-at ("was") price
- Light and fast: plain HTTP on the store's public product feed, no browser, no proxies needed for most stores
- Polite: respects robots.txt, pauses between pages, backs off on HTTP 429

### Who uses it

E-commerce brands watching competitors, dropshippers and resellers tracking supplier stock, deal sites looking for
price drops, and analysts tracking pricing over time.

### Input

| Field | What it does |
|---|---|
| `stores` | Store domains or URLs, e.g. `allbirds.com`, `https://www.tentree.com/collections/sale` |
| `outputMode` | `changesOnly` (default): first run = baseline of all variants, later runs = only changes. `all`: every variant every run, with flags |
| `maxProductsPerStore` | Cap per store (default 1000) |
| `stateStoreName` | Name of the snapshot store. Use one name per watch list |
| `requestDelayMs` | Pause between catalogue pages (default 1000 ms) |

```json
{ "stores": ["allbirds.com", "https://www.tentree.com/collections/sale"], "outputMode": "changesOnly" }
```

### Output (one row per changed variant)

```json
{
  "changeTypes": ["PRICE_DROP", "BACK_IN_STOCK"],
  "store": "allbirds.com",
  "productTitle": "Digital Gift Card",
  "variantTitle": "$15",
  "previousPrice": 30,
  "price": 15,
  "priceChangePercent": -50,
  "compareAtPrice": null,
  "discountPercent": null,
  "previousAvailable": false,
  "available": true,
  "sku": "GIFTDGT015",
  "url": "https://allbirds.com/products/digital-gift-cards?variant=40967048101968",
  "checkedAt": "2026-11-20T10:28:17.871Z"
}
```

Each row also has `productId`, `variantId`, `handle`, `vendor`, `productType`, `imageUrl` and `updatedAt`.
A run summary (stores checked, counts per change type, errors) is saved as `SUMMARY` in the run's key-value store.

### How to use it as a monitor

1. Run it once: you get the baseline (every variant) and the snapshot is saved.
2. Add a schedule (e.g. daily). Each run returns only the changes.
3. Connect an integration (Slack, Sheets, webhook) to get the changes where you work.

### Pricing (pay per event)

- $0.005 per run start
- $0.005 per store checked
- $1.50 per 1,000 result rows (baseline rows on the first run, then only changed variants)

Example: a daily check of 10 stores with ~30 changes a day costs about $0.10/day after the first run.

### Limits

- Works with stores that keep Shopify's public product feed open. A few stores block it; they are skipped and named in `SUMMARY`.
- Prices are in the store's default currency (the feed has no currency code).
- `REMOVED` is reported only when the whole store fits under `maxProductsPerStore`.
- Public catalogue data only. No customer data, no logins, no checkout.

### Legal

This Actor reads public product information that stores publish for anyone to see. It does not collect personal data.
You are responsible for using the data in line with the target sites' terms and the laws that apply to you.

# Actor input Schema

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

Store domains or URLs (e.g. allbirds.com). Add a collection URL (…/collections/sale) to watch just that collection.

## `outputMode` (type: `string`):

changesOnly: the first run saves a baseline (all variants), later runs return only variants that changed. all: every variant every run, with change flags.

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

Stop after this many products per store. Removed-product detection only works when the whole catalogue fits under this limit.

## `stateStoreName` (type: `string`):

Name of the key-value store that keeps the last snapshot. Use a different name for each separate watch list.

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

Polite pause between catalogue pages of the same store.

## Actor input object example

```json
{
  "stores": [
    "allbirds.com"
  ],
  "outputMode": "changesOnly",
  "maxProductsPerStore": 1000,
  "stateStoreName": "shopify-price-stock-monitor-state",
  "requestDelayMs": 1000
}
```

# Actor output Schema

## `changes` (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": [
        "allbirds.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("avisha-ai/shopify-price-stock-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"] }

# Run the Actor and wait for it to finish
run = client.actor("avisha-ai/shopify-price-stock-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"
  ]
}' |
apify call avisha-ai/shopify-price-stock-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,avisha-ai/shopify-price-stock-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/svXa5h0rugetTXWeS/builds/fzdanMq0UF9Pslrbl/openapi.json
