# Shopify Scraper: Products, Prices & Price-Drop Monitor (`berryish_pillar/shopify-products-monitor`) Actor

Pull every published product and variant from a Shopify storefront's public /products.json endpoint, with prices, stock flags and a monitoring mode for price drops, restocks, and new or removed products. Honours each store's robots.txt and Crawl-delay.

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

## Pricing

Pay per event

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 Products & Price-Drop Monitor

Pull **every published product and variant** from a Shopify storefront's public **`/products.json`** endpoint, with **prices**, **stock flags** and a **monitoring mode** for **price drops, restocks, and new or removed products**.

The Actor talks only to the store you name. It **checks robots.txt first**, honours **Crawl-delay** (for example a 10-second delay), and skips any store that disallows `/products.json`.

### What can it do?

- 🛍️ **Variant-level rows.** One dataset row per variant: title, handle, vendor, type, tags, SKU, price, compare-at price, availability, options, image and product URL.
- 💱 **Currency** when the storefront exposes it on `/cart.js` or `/meta.json`.
- 📉 **Monitoring mode.** Remember the last catalogue (per Monitor ID) and output only the changes below. Catalogue memory needs a run with full permissions or from the Actor owner's account; limited-permission runs still return the current catalogue, but have no previous snapshot to compare against. Changes detected when memory is available:
  - `new` — a variant that wasn't there last time
  - `removed` — a variant that disappeared
  - `price_drop` / `price_increase`
  - `restock` (was out of stock, now available) / `out_of_stock`
- 🤖 **Polite by default.** robots.txt is checked before `/products.json`, `/cart.js` and `/meta.json`. Disallowed stores are reported as `robots_blocked` and are not crawled. Per-host rate limits apply, and a robots Crawl-delay always wins.
- 📄 **Pagination.** Walks `?limit=250&page=N` until the catalogue ends, or until your product/page cap.

### Who uses this?

- **Sellers and agencies** watching competitor prices and restocks.
- **Deal and inventory apps** that need a clean product feed.
- **AI agents and automations** (n8n, Make, Zapier, MCP) that should not have to scrape HTML.

### How to use it

1. Add storefronts to **Shopify storefronts**, one per line (`https://www.example.com` or `example.myshopify.com`).
2. Click **Start**. Download JSON, CSV or Excel, or pull the dataset from the API.
3. For alerts, turn on **Only price drops, restocks, and new or removed products**, pick a **Monitor ID**, and add a **Schedule**.

#### Input example

```json
{
  "stores": ["https://www.allbirds.com"],
  "onlyChanges": false,
  "respectRobotsTxt": true
}
```

#### Output example

```json
{
  "store": "https://www.allbirds.com",
  "storeDomain": "allbirds.com",
  "productId": 123,
  "productTitle": "Wool Runner",
  "handle": "wool-runner",
  "vendor": "Allbirds",
  "variantId": 456,
  "sku": "WR-001",
  "variantTitle": "Natural White / 9",
  "price": "98.00",
  "compareAtPrice": null,
  "currency": "USD",
  "available": true,
  "productUrl": "https://www.allbirds.com/products/wool-runner",
  "changeTypes": [],
  "isPriceDrop": false,
  "isRestock": false,
  "previousPrice": null,
  "scrapedAt": "2026-11-11T06:30:00+00:00"
}
```

The **Variants** and **Price drops, restocks and other changes** tabs in the Output view show the main columns. `RUN_SUMMARY` in the key-value store has per-store status, including robots blocks.

### How much does it cost?

Pay per event: you pay only for what you get.

| Event | Price |
|---|---|
| Product variant returned (`product`) | $0.0007 ($0.70 per 1,000 variants) |
| Change event (`change-event`) | $0.002 |
| Actor start (`apify-actor-start`) | $0.00005 (platform default) |

In full-catalogue mode you are charged the `product` event for each variant row (including `removed` rows on later runs). In monitoring mode you are charged the `change-event` price for each change only. Set **Maximum cost per run** and the Actor stops cleanly when it's reached.

### Tips and limits

- **Public catalogue only.** This uses the storefront `/products.json` feed, not the Shopify Admin API. Draft, hidden and password-protected products are not returned. Password-gated storefronts will fail or return an empty catalogue.
- **Some stores block `/products.json` in robots.txt.** Those stores come back as `robots_blocked`. That is intentional.
- **Removal detection** is skipped when you set a product or page cap, because a truncated catalogue would look like a mass deletion.
- **Currency** is best-effort. If `/cart.js` and `/meta.json` are blocked or missing, `currency` is null and `price` is still the storefront amount as a decimal string.
- **Terms of use vary by store.** Even when robots.txt allows the feed, a store's terms may restrict automated access. Use this Actor only on stores you are allowed to monitor, keep rate limits conservative, and honour opt-outs (see below).

### Is it legal? Responsible use

The Actor only requests public storefront endpoints for **stores you supply**. It does not log in, does not collect customer data, and does not touch the Shopify Admin API. It **always checks robots.txt** (unless you turn that off, which you should not) and honours crawl delays.

If you operate a store and want it excluded, open an issue on this Actor's page with the domain. We will add it to an exclusion list in a later version. A robots.txt `Disallow` for `/products.json` is honoured immediately, with no waiting for a release.

You are responsible for using the data lawfully and for complying with each store's terms.

### FAQ

**Does it need a Shopify Admin API token?** No. It only uses the public storefront catalogue.
**Does it need proxies?** Usually no. If a store rate-limits you, lower the request rate or try again later.
**Can I run it from code or an AI agent?** Yes, through the Apify API, the Python and JavaScript clients, or any Apify integration.

# Actor input Schema

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

One per line. A storefront domain (allbirds.com), a myshopify.com subdomain, or any URL on the store. The Actor uses the origin and requests /products.json.

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

Remembers the last catalogue per store (per Monitor ID) and only outputs rows that changed: new, removed, price_drop, price_increase, restock, or out_of_stock. Schedule the Actor daily for alerts. The first run can optionally output the full catalogue as 'new' (see Include first snapshot).

## `includeFirstSnapshot` (type: `boolean`):

When Only changes is on and this is the first run for a store, output every variant tagged 'new' so you have a baseline. Turn off to silently save the snapshot and wait for later changes.

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

Name for the remembered catalogues. Use a different ID for each watchlist.

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

0 = no limit. When set, removed-product detection is skipped for that run (a cap would look like mass deletions).

## `maxPagesPerStore` (type: `integer`):

Each page has up to 250 products. 0 = no limit. Same caveat as max products for removal detection.

## `maxRows` (type: `integer`):

Stop after this many dataset rows across all stores. 0 = no limit.

## `pageSize` (type: `integer`):

Page size for /products.json (Shopify's maximum is 250).

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

How many stores to fetch at the same time. Each host is still rate-limited.

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

Skip a store when robots.txt disallows /products.json for this Actor or for \*. Honour Crawl-delay (for example, a 10-second delay). Leave this on.

## `maxRequestsPerSecondPerHost` (type: `number`):

Default politeness cap per hostname. If robots.txt sets a higher Crawl-delay, that delay wins.

## `maxRetries` (type: `integer`):

Retries with exponential backoff on timeouts, 429 and 5xx responses.

## Actor input object example

```json
{
  "stores": [
    "https://www.allbirds.com"
  ],
  "onlyChanges": false,
  "includeFirstSnapshot": true,
  "monitorId": "default",
  "maxProductsPerStore": 15,
  "maxPagesPerStore": 0,
  "maxRows": 0,
  "pageSize": 250,
  "maxConcurrency": 2,
  "respectRobotsTxt": true,
  "maxRequestsPerSecondPerHost": 1,
  "maxRetries": 4
}
```

# Actor output Schema

## `variants` (type: `string`):

No description

## `summary` (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"
    ],
    "maxProductsPerStore": 15
};

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

# Run the Actor and wait for it to finish
run = client.actor("berryish_pillar/shopify-products-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": [
    "https://www.allbirds.com"
  ],
  "maxProductsPerStore": 15
}' |
apify call berryish_pillar/shopify-products-monitor --silent --output-dataset

```

## MCP server setup

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