# Shopify Price Tracker: Price, Stock & New Product Monitor (`coobyp/shopify-price-watch`) Actor

Scrape any Shopify store and see what changed since last run: new products, price drops, restocks, sell-outs. Schedule daily to monitor competitors.

- **URL**: https://apify.com/coobyp/shopify-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 $0.80 / 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

## Shopify Price & Stock Monitor

Scrape the full product catalog of any Shopify 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 `/products.json` catalog, so it is fast, light on compute, and needs no proxy or browser. It checks `robots.txt` first and stays polite (one request per second by default, backs off on 429s).

### What you get

- Title, vendor, product type, tags, URL, main image
- Lowest/highest price, compare-at (sale) price, `onSale` flag
- In-stock flag per product and per variant, SKUs
- `changeType`: `baseline` (first run), `new`, `price_drop`, `price_increase`, `back_in_stock`, `out_of_stock`, `unchanged`
- `previousPrice` and `priceChangePct` for anything that moved
- A `SUMMARY` record (key-value store) per run: counts per change type and the 10 biggest price drops per store
- Optional webhook: a text summary POSTed to your Slack/Discord/Zapier/Make URL after each run

### Input

| Field | What it does |
|---|---|
| `stores` | Store domains or URLs, e.g. `https://www.allbirds.com` |
| `collection` | Optional collection handle (e.g. `sale`) to watch one collection |
| `collections` | Optional list of collection handles or URLs (e.g. `sale`, `new-arrivals`); each is scanned and tracked separately |
| `maxProductsPerStore` | Cap per store (default 250) |
| `trackChanges` | Compare with the previous run (default on) |
| `onlyChanges` | After the first run, output only changed products |
| `webhookUrl` | Optional HTTPS webhook; receives `{text, summaries}` JSON after each run |
| `requestDelayMs` | Delay between requests (default 1000) |

### Example output

```json
{
  "store": "www.allbirds.com",
  "title": "Women's Allbirds Flip Flop - Dusty Pink",
  "url": "https://www.allbirds.com/products/womens-allbirds-flip-flop-dusty-pink",
  "vendor": "Allbirds",
  "available": true,
  "priceMin": 50,
  "priceMax": 50,
  "compareAtPriceMax": null,
  "onSale": false,
  "changeType": "price_drop",
  "previousPrice": 80,
  "priceChangePct": -37.5,
  "variants": [{ "title": "5", "sku": "A12513W050", "price": 50, "available": false }]
}
```

### Tips

- First run is the baseline. Run it again later (or put it on an Apify schedule) to get changes. History is kept per store in a named key-value store, `shopify-price-watch-state`, on your account.
- Use `onlyChanges` plus a webhook or Zapier/Make integration to get alerts on price drops.
- Some stores block automated requests (HTTP 403) or disable the public catalog. The Actor reports these and moves on; it does not try to get around blocks.

### Limits

Public catalog data only: no logins, no customer data. Check the store's terms for your use case.

### Use cases

- **Competitor price monitoring:** watch a rival Shopify store daily and get a webhook when prices drop.
- **Dropshipping and resale:** spot new arrivals, sell-outs and restocks before your competitors do.
- **Price-comparison sheets:** export clean product, variant and price data to CSV, Excel or Google Sheets.
- **Catalog research:** pull a full product list (titles, vendors, tags, images) from any public Shopify store.

### FAQ

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

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

**Can it scrape any store?** Any Shopify store with a public catalog that allows it in robots.txt. Blocked stores are skipped, not bypassed.

# Actor input Schema

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

Store homepages or domains, e.g. https://www.allbirds.com. Works on any Shopify store with a public catalog.

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

Only scan one collection, e.g. 'sale' for /collections/sale. Leave empty for the whole catalog.

## `collections` (type: `array`):

Scan several collections per store, e.g. \['sale','new-arrivals']. Each collection keeps its own change history. Combined with the single handle above; full collection URLs are accepted.

## `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.

## `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://www.allbirds.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://www.allbirds.com"
    ]
};

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

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

```

## MCP server setup

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