# Shopify Store Monitor (`brotherly_elm/shopify-store-monitor`) Actor

Monitor public Shopify product feeds for product, variant, price and stock changes. Uses feeds and robots.txt; incomplete scans do not infer removals. Not affiliated with Shopify.

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

## Pricing

from $2.00 / 1,000 monitor dataset 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 Store Monitor

Watch changes in the public product catalogs of Shopify storefronts. The first successful scan for a monitor name saves the baseline and emits one summary row per store. Later successful scans emit summaries and selected product/variant change rows. Reuse the same `monitorName` to compare future scheduled runs against the same baseline.

The Actor reads only each store's public `robots.txt` and public `/products.json` feed using GET requests. It follows the inherited Shopify source's robots, HTTPS/redirect, and immediate no-retry behavior after HTTP 403 or 429. It returns product and variant information only; it does not access customer or staff data. No claim is made about sales, earnings, rank, or popularity. This independent tool is not affiliated with or endorsed by Shopify.

### Input

The default form prefill is `bombtechgolf.com` (the schema uses `prefill`, not a runtime fallback). Supply a different public storefront in `stores` to monitor another catalog; an omitted or empty `stores` value in a direct API run does not select this prefill automatically. The first complete scan establishes a baseline.

| Field | Type / default | Description |
|---|---|---|
| `stores` | list of domains or HTTPS URLs; required (1–20) | Shopify storefronts to check. |
| `monitorName` | text; `default` | Stable label that separates baselines. Keep it unchanged on scheduled runs. |
| `changeTypes` | multi-select; all seven types | `new_product`, `removed_product`, `new_variant`, `price_drop`, `price_rise`, `back_in_stock`, `out_of_stock`. Empty list means summaries only. |
| `maxProductsPerStore` | integer; `100` (1–1000) | Per-store product cap. Reaching the cap is incomplete and will not replace the prior baseline or infer removals/out-of-stock. |
| `selfTest` | checkbox; `false` | Offline two-pass synthetic test; makes no storefront requests. |

### Output and sample

Every run writes a summary row for each store, with scanned products and variants, low/high price, in-stock count, and whether a baseline was found. Subsequent complete scans may also emit one row per enabled change. Change rows include the product URL and old/new values. Failed, refused, or cap-limited scans preserve their prior baseline and do not infer removals or out-of-stock changes.

A controlled local `price_drop` example emitted during the third monitor ladder pass (data run 2026-11-21; documentation dated 2026-11-22). Store, product URL and IDs are redacted to avoid naming a third-party brand; price values are unchanged:

```json
{"rowType":"price_drop","store":"[redacted]","productId":"[redacted]","productUrl":"[redacted]","oldValue":{"variantId":"[redacted]","price":4.0},"newValue":{"variantId":"[redacted]","price":3.0}}
```

This row was emitted after a controlled local baseline edit (saved value 4.00; public feed value 3.00); it is not a hosted run or an assertion that a merchant changed its price in that interval. The exact pass rows and edits are retained in the local sample evidence, not included in the Actor's source bundle.

### Tracking price drops and sale prices on a schedule

Use `price_drop` in `changeTypes`, select the storefronts and a safe product cap, and establish the baseline with the first complete run. Schedule later runs with the same `monitorName`, stable store list, change types, and cap so the named key-value store can compare each complete observation to its previous baseline. Review store statuses and cap flags before interpreting changes; incomplete scans do not replace baselines and do not infer removals or out-of-stock changes. The monitor records change rows in its dataset; it does not send alerts by itself.

Apify’s schedule documentation (read 2026-11-22) says: “Schedules allow you to run your Actors and tasks at specific times.” In Console, open **Schedules**, choose **Create new**, configure the interval/cron expression and timezone, add the Actor, and set the input JSON; the Actor must have run at least once before it can be scheduled. The same documentation says, “All schedules have notifications enabled by default,” and a failed-to-start scheduled Actor/task run generates an email; review these settings in the schedule setup tool or Console **Settings → Notifications**.

- Schedule docs: https://docs.apify.com/platform/actors/running/schedules
- Webhook docs: https://docs.apify.com/platform/integrations/webhooks — “Webhooks allow you to configure the Apify platform to perform an action when a certain system event occurs.” The available action described there is to POST to a URL you specify; use only a destination you control and are authorized to receive the data.

Black Friday and Cyber Monday week is one use for monitoring public catalog price changes on a schedule. A `price_drop` record reflects only the values observed in the returned feed, not a savings claim or notification delivery.

#### Dated local sample — data run 2026-11-21; documentation revised 2026-11-22

The monitor change row above is from the final local three-pass run, not an Apify-hosted run. The ladder used 20 stores from the 60-store approved list, cap 500, 1.2-second minimum inter-request delay, GET-only public feeds, and one request at a time. Pass 3 emitted three rows following three controlled, local baseline edits: one price decrease, one new variant, and one availability change. The redacted price-drop row above is the example; complete local evidence is retained separately. The sample demonstrates local change detection only.

### Pricing

Proposed pay-per-event price: **$0.002 per dataset row**, plus the **$0.00005 Actor-start event**. Summary and change rows each count as one dataset row. No hosted price write is included in this staged README work.

### Limits

- Only public Shopify products feed data and `robots.txt` are requested; respect each site's terms and robots directives.
- A 403 or 429 is terminal for that store; the Actor does not retry it.
- A failed, refused, invalid, or cap-limited scan does not replace its baseline and never produces `removed_product` or `out_of_stock` based on an incomplete feed.
- Change detection is limited to products and variants returned by the public feed and selected cap. It is not a complete inventory guarantee or an alert delivery service.
- First-run output is baseline summaries only; changes are not inferred until a later complete scan.

This Actor is not affiliated with or endorsed by Shopify.

# Actor input Schema

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

Shopify storefront domains or HTTPS URLs. Only each store's public products.json feed and robots.txt are read.

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

Stable label that keeps this monitor's baseline separate from other monitors. Reuse it on every scheduled run.

## `changeTypes` (type: `array`):

Choose which product or variant changes are written after the initial baseline. An empty selection produces summaries only.

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

Maximum products to scan per store. Scans that reach the cap are incomplete and do not replace the saved baseline.

## `selfTest` (type: `boolean`):

Run two passes over bundled synthetic products without network access; used to verify Actor behavior.

## Actor input object example

```json
{
  "stores": [
    "bombtechgolf.com"
  ],
  "monitorName": "default",
  "changeTypes": [
    "new_product",
    "removed_product",
    "new_variant",
    "price_drop",
    "price_rise",
    "back_in_stock",
    "out_of_stock"
  ],
  "maxProductsPerStore": 100,
  "selfTest": false
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `summary` (type: `string`):

No description

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

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

# Run the Actor and wait for it to finish
run = client.actor("brotherly_elm/shopify-store-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": [
    "bombtechgolf.com"
  ]
}' |
apify call brotherly_elm/shopify-store-monitor --silent --output-dataset

```

## MCP server setup

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