# Shopify Store Catalog, Price-Drop & Restock Monitor (`gridline-labs/shopify-price-monitor`) Actor

Extract Shopify store catalogs, SKU variants, discounts & stock status via keyless /products.json. Track price drops, new launches & restocks across runs with persistent snapshot diffing.

- **URL**: https://apify.com/gridline-labs/shopify-price-monitor.md
- **Developed by:** [Gridline Labs](https://apify.com/gridline-labs) (community)
- **Categories:** E-commerce, Business, Automation
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.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/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 Catalog, Price-Drop & Restock Monitor

Extract full product catalogs, SKU variants, compare-at discounts, and live stock availability from any public Shopify storefront using **keyless pure HTTP (`/products.json`)** — or schedule recurring runs in **`changes_only` Monitor Mode** to catch **new product launches, price drops, price increases, and back-in-stock alerts** with **$0 charged on unchanged items**.

Built by [Gridline Labs](https://gridlinelabshq.com) for e-commerce brands, MAP compliance teams, dropshippers, n8n/Make workflows, and AI Agents via MCP.

***

### Key Features

- **Pure HTTP · Zero Headless Browsers · 256 MB RAM:** Fast, low-compute extraction directly from Shopify's `/products.json` and `/collections/<handle>/products.json` endpoints.
- **Persistent Snapshot Diffing (`changes_only` mode):** Stores per-store product price/stock baselines in an Apify Key-Value Store (`gridline-shopify-monitor-state`) and emits exact change tags:
  - `NEW_PRODUCT`
  - `PRICE_DROP` / `PRICE_INCREASE` (with `previousMinPrice`, `priceDelta`, `priceDeltaPct`)
  - `BACK_IN_STOCK` / `OUT_OF_STOCK`
  - `SALE_STARTED` / `SALE_ENDED`
- **Granular Merchandising Filters:** Filter by collection handle, keywords, vendors, product type, `inStockOnly`, `onSaleOnly`, `minDiscountPct`, `minPrice`, and `maxPrice` — filtered-out items cost **$0**.
- **SKU-Level Variant Array:** Every record includes `minPrice`, `maxPrice`, `compareAtPrice`, `discountPct`, `availableVariantsCount`, `totalVariantsCount`, and clean `variants[]` (`id`, `title`, `sku`, `price`, `compareAtPrice`, `available`).
- **Graceful Store Protection Handling:** If a store disables `/products.json` or returns HTTP 403/404, the store is logged cleanly in `RUN_SUMMARY.blockedOrNonShopifyStores` without crashing the batch.

***

### Example Input

```json
{
  "storeUrls": [
    "allbirds.com",
    "chubbiesshorts.com"
  ],
  "outputMode": "changes_only",
  "inStockOnly": false,
  "maxProductsPerStore": 250,
  "maxResults": 500
}
```

### Example Output

```json
{
  "storeDomain": "chubbiesshorts.com",
  "productKey": "chubbiesshorts.com:7890123456",
  "productId": "7890123456",
  "title": "The Prowl Packable Jacket",
  "vendor": "Chubbies Shorts",
  "productType": "Jackets",
  "minPrice": 119.0,
  "maxPrice": 119.0,
  "compareAtPrice": 149.5,
  "isOnSale": true,
  "discountPct": 20.4,
  "inStock": true,
  "availableVariantsCount": 4,
  "totalVariantsCount": 6,
  "changeTypes": ["PRICE_DROP", "SALE_STARTED"],
  "previousMinPrice": 149.5,
  "priceDelta": -30.5,
  "priceDeltaPct": -20.4,
  "productUrl": "https://chubbiesshorts.com/products/the-prowl-packable-jacket"
}
```

***

### Transparent Pay-Per-Event Pricing

| Event | Price | When Charged |
| :--- | :---: | :--- |
| `product-record` | **$0.0015** (`$1.50 / 1,000`) | Per matching product emitted in `products` mode |
| `change-alert` | **$0.0025** (`$2.50 / 1,000`) | Per price/stock/launch/sale change emitted in `changes_only` mode |
| Unchanged / filtered / blocked stores | **$0.00** | Never charged |

***

### Support & Other B2B Data Feeds

- Studio & Live Tools: [gridlinelabshq.com](https://gridlinelabshq.com)
- Live UK & EU Public Tenders Explorer: [gridlinelabshq.com/tenders](https://gridlinelabshq.com/tenders)
- Support: `support@gridlinelabshq.com`

# Actor input Schema

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

List of Shopify store domains or URLs (e.g. 'allbirds.com', 'https://chubbiesshorts.com', 'gymshark.com').

## `collectionHandle` (type: `string`):

Optional Shopify collection slug (e.g. 'new-arrivals', 'mens-shoes') to scope /collections/<handle>/products.json instead of the full catalog.

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

Choose 'products' to emit all matching catalog products ($1.50 / 1k), or 'changes_only' to persist snapshots and emit only NEW_PRODUCT, PRICE_DROP, PRICE_INCREASE, BACK_IN_STOCK, OUT_OF_STOCK, and SALE delta alerts ($2.50 / 1k, $0 for unchanged items).

## `keywords` (type: `array`):

Optional case-insensitive keywords matched against product title, tags, vendor, and productType (OR logic).

## `vendors` (type: `array`):

Optional case-insensitive vendor/brand substring filters (OR logic).

## `productTypes` (type: `array`):

Optional case-insensitive product_type filters (OR logic), e.g. \['Shoes', 'Jackets'].

## `inStockOnly` (type: `boolean`):

When enabled, emit only products with at least one available variant.

## `onSaleOnly` (type: `boolean`):

When enabled, emit only products with a compare-at price strictly higher than current price.

## `minDiscountPct` (type: `number`):

Only emit products discounted by at least this percentage (0–99).

## `minPrice` (type: `number`):

Minimum variant price filter (store currency). Set 0 to disable.

## `maxPrice` (type: `number`):

Maximum variant price filter (store currency). Set 0 to disable.

## `includeDescription` (type: `boolean`):

Include stripped plain-text description from body_html (up to 4,000 chars).

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

Maximum products to fetch/emit per store (up to 5,000).

## `maxResults` (type: `integer`):

Maximum total dataset records to emit across all stores (up to 10,000).

## `concurrency` (type: `integer`):

Number of Shopify stores to fetch concurrently (1–10).

## Actor input object example

```json
{
  "storeUrls": [
    "allbirds.com",
    "chubbiesshorts.com"
  ],
  "collectionHandle": "",
  "outputMode": "products",
  "keywords": [],
  "vendors": [],
  "productTypes": [],
  "inStockOnly": false,
  "onSaleOnly": false,
  "minDiscountPct": 0,
  "minPrice": 0,
  "maxPrice": 0,
  "includeDescription": false,
  "maxProductsPerStore": 100,
  "maxResults": 250,
  "concurrency": 4
}
```

# Actor output Schema

## `results` (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 = {
    "storeUrls": [
        "allbirds.com",
        "chubbiesshorts.com"
    ]
};

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

# Run the Actor and wait for it to finish
run = client.actor("gridline-labs/shopify-price-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 '{
  "storeUrls": [
    "allbirds.com",
    "chubbiesshorts.com"
  ]
}' |
apify call gridline-labs/shopify-price-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,gridline-labs/shopify-price-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/d9OmRLj9x5iwd7Rv5/builds/8Oz2EOxhmj9q3hgWX/openapi.json
