# Shopify Catalog & Price Monitor (`techionik9993/shopify-catalog-price-monitor`) Actor

Scrape and monitor any public Shopify store. Extract the full catalog, prices, variants and availability, then track new products, price changes, restocks and sell-outs on a schedule.

- **URL**: https://apify.com/techionik9993/shopify-catalog-price-monitor.md
- **Developed by:** [Techionik](https://apify.com/techionik9993) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.00 / 1,000 results

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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Shopify Catalog & Price Monitor

Scrape public Shopify product catalogs and optionally monitor stores for new products, price changes, restocks, sell-outs, and removed products.

This Actor is built for predictable output. In normal catalog mode, the number entered in **Max products per store** is the maximum number of product rows written to the dataset for each store.

### What You Get

- Product title, handle, URL, vendor, type, tags, images, and publish dates
- Variant IDs, titles, SKUs, prices, compare-at prices, and availability
- Product-level minimum and maximum prices
- Product-level availability and sale status
- Optional change monitoring between runs

### Quick Start

1. Enter one or more Shopify store domains, for example `deathwishcoffee.com`.
2. Set **Max products per store** to the number of product rows you want.
3. Leave **Monitor changes since last run** off for a one-time catalog scrape.
4. Turn **Monitor changes since last run** on for scheduled tracking.
5. Keep **Output only the changes** off unless you want change events instead of product rows.

### Result Limits And Billing

Apify charges for dataset results based on rows written to the dataset. This Actor keeps that simple:

- If **Max products per store** is `20`, normal output writes up to 20 product rows per store.
- Turning on **Monitor changes since last run** does not double the normal dataset output.
- Monitoring snapshots and latest change details are saved in a named key-value store so scheduled runs can compare against previous runs.
- Change rows are written to the dataset only when **Output only the changes** is enabled.

Recommended setup for most monitoring users:

- **Monitor changes since last run:** on
- **Output only the changes:** off
- **Max products per store:** the number of product rows the user wants

With that setup, the user receives the latest product catalog while the Actor quietly keeps monitoring state in storage.

### Monitoring Logic

When monitoring is enabled, the Actor:

1. Fetches the current Shopify catalog.
2. Applies the selected product limit.
3. Compares the current products with the previous snapshot for that store.
4. Saves the new snapshot to a named key-value store.
5. Saves latest detected changes to a key such as `changes-example.com`.
6. Outputs either product rows or change rows, depending on **Output only the changes**.

Detected change types:

- `new_product`
- `removed_product`
- `price_change`
- `restock`
- `out_of_stock`

### Input Options

#### Shopify Store Domains

One or more Shopify store domains or URLs. Both `example.com` and `https://example.com` are accepted.

#### Max Products Per Store

Maximum number of products to fetch and output per store in normal catalog mode. Use `0` to fetch the full public catalog.

#### Monitor Changes Since Last Run

Compares the current run with the previous saved snapshot for each store. This is most useful when running the Actor on a schedule.

#### Output Only The Changes

Outputs change events instead of product rows. Use this when you want the dataset to contain only detected changes.

#### Proxy Configuration

Most public Shopify stores work without a proxy. If a store blocks datacenter requests with HTTP 403 or 429, enable Apify Proxy with a residential proxy group.

### Output

Normal output rows are product rows. Each row includes product metadata, prices, availability, and variants.

When **Output only the changes** is enabled, output rows are change events. Change events include the store, change type, product ID, and the relevant price or availability information when available.

### Storage

The Actor uses the named key-value store `shopify-catalog-price-monitor-state` for monitoring state:

- `snapshot-<store>` stores the latest product snapshot for comparison.
- `changes-<store>` stores the latest detected changes for that store.

### Notes

- The Actor uses Shopify public catalog endpoints where available.
- Password-protected, custom headless, Hydrogen, or heavily protected storefronts may not expose a public catalog endpoint.
- For scheduled monitoring, keep the same store domain format between runs so snapshots match cleanly.

# Actor input Schema

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

One or more Shopify store domains or URLs. Examples: deathwishcoffee.com, https://www.gymshark.com
## `maxProductsPerStore` (type: `integer`):

Maximum product rows to write per store in normal output mode. 0 = the full public catalog.
## `monitorChanges` (type: `boolean`):

Compare against the previous snapshot in a named key-value store and save new products, price changes, restocks, sell-outs, and removed products there. Normal product output still respects Max products per store.
## `onlyChanges` (type: `boolean`):

When monitoring is on, output change events instead of product rows. Leave off for normal catalog output.
## `proxyConfiguration` (type: `object`):

Most small/mid stores need NO proxy. Only enable Apify Proxy → Residential if a large store returns HTTP 403.

## Actor input object example

```json
{
  "storeUrls": [
    "deathwishcoffee.com",
    "gymshark.com"
  ],
  "maxProductsPerStore": 0,
  "monitorChanges": false,
  "onlyChanges": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
````

# Actor output Schema

## `results` (type: `string`):

Normal runs contain product rows. When Output only the changes is enabled, rows contain change events.

# 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": [
        "deathwishcoffee.com"
    ]
};

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

# Run the Actor and wait for it to finish
run = client.actor("techionik9993/shopify-catalog-price-monitor").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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": [
    "deathwishcoffee.com"
  ]
}' |
apify call techionik9993/shopify-catalog-price-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=techionik9993/shopify-catalog-price-monitor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Shopify Catalog & Price Monitor",
        "description": "Scrape and monitor any public Shopify store. Extract the full catalog, prices, variants and availability, then track new products, price changes, restocks and sell-outs on a schedule.",
        "version": "0.0",
        "x-build-id": "9I85g9DMyvp1juOy7"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/techionik9993~shopify-catalog-price-monitor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-techionik9993-shopify-catalog-price-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/techionik9993~shopify-catalog-price-monitor/runs": {
            "post": {
                "operationId": "runs-sync-techionik9993-shopify-catalog-price-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/techionik9993~shopify-catalog-price-monitor/run-sync": {
            "post": {
                "operationId": "run-sync-techionik9993-shopify-catalog-price-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "storeUrls"
                ],
                "properties": {
                    "storeUrls": {
                        "title": "Shopify store domains",
                        "type": "array",
                        "description": "One or more Shopify store domains or URLs. Examples: deathwishcoffee.com, https://www.gymshark.com",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxProductsPerStore": {
                        "title": "Max products per store",
                        "minimum": 0,
                        "type": "integer",
                        "description": "Maximum product rows to write per store in normal output mode. 0 = the full public catalog.",
                        "default": 0
                    },
                    "monitorChanges": {
                        "title": "Monitor changes since last run",
                        "type": "boolean",
                        "description": "Compare against the previous snapshot in a named key-value store and save new products, price changes, restocks, sell-outs, and removed products there. Normal product output still respects Max products per store.",
                        "default": false
                    },
                    "onlyChanges": {
                        "title": "Output only the changes",
                        "type": "boolean",
                        "description": "When monitoring is on, output change events instead of product rows. Leave off for normal catalog output.",
                        "default": false
                    },
                    "proxyConfiguration": {
                        "title": "Proxy configuration",
                        "type": "object",
                        "description": "Most small/mid stores need NO proxy. Only enable Apify Proxy → Residential if a large store returns HTTP 403.",
                        "default": {
                            "useApifyProxy": false
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
