# Shopify Public Catalog & Price Monitor (`deliberate_gratitude_shj/shopify-catalog-monitor`) Actor

Fast, zero-browser Shopify product catalog, variant pricing, compare-at-price discount, and stock availability monitor via public JSON & sitemap endpoints in 128 MB RAM with MCP-ready output.

- **URL**: https://apify.com/deliberate_gratitude_shj/shopify-catalog-monitor.md
- **Developed by:** [Apex Automation Labs](https://apify.com/deliberate_gratitude_shj) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.00 / 1,000 products extracted

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 Product & Price Scraper API — Public Catalog & Stock Monitor

Extract full product catalogs, variant pricing, `compare_at_price` discounts, live stock availability, SKUs, tags, vendor, images, and clean product descriptions from any public Shopify store—using **pure Node.js / TypeScript HTTP JSON (`fetch`) inside 128 MB RAM** with **zero Playwright, zero Puppeteer, and zero headless browsers**.

Priced at **$1.00 per 1,000 products** (`$0.001 / product`, **$0 start fee**), built by **Apex Automation Labs** for **e-commerce price intelligence**, **competitor MAP & discount tracking**, **inventory/restock alerts**, **n8n / Make.com automations**, and **AI Agents via Apify MCP**.

#### Verified Apify Cloud Benchmark (128 MB RAM)

- **Live Cloud Run (`yADf3XI4rONMIeTop`):** Extracted 30 normalized products across 3 live Shopify stores (`colourpop.com`, `allbirds.com`, `tentree.com`) in **2.59s total** (**664 ms** extraction time).
- **Memory Footprint:** **54.1 MB peak RAM** (`34.5 MB` average) inside a `128 MB` container.
- **Compute Efficiency:** **`0.00009007` Compute Units** (`~0.0030 CU / 1,000 products`, **$0.000276** platform cost, **99.1%+ net compute margin**).

***

### Zero-Browser HTTP API vs Headless Browser Scrapers

| Metric / Capability | Shopify Product & Price Scraper API (This Actor) | Headless Browser Shopify Scrapers (Playwright / Puppeteer) |
|---|---|---|
| **Container RAM Footprint** | **54.1 MB peak** (runs in **128 MB RAM**) | 1,024–4,096 MB RAM per browser container |
| **Runtime Speed (30 Products, 3 Stores)** | **2.59s total** (**664 ms** extraction) | 20–60+ seconds (DOM hydration + clicking variants) |
| **Compute Cost per 1,000 Products** | **~0.0030 CU** (~$0.0012 Apify compute) | 0.15–0.50+ CU ($0.06–$0.20+ compute) |
| **Pricing per 1,000 Products** | **$1.00 / 1,000 products** (`$0` start fee) | Often $2.00–$8.00 / 1,000 products + proxy cost |
| **Variant & Stock Accuracy** | Reads full variant JSON (`sku`, `price`, `compare_at_price`, `available`) in one call | Requires clicking swatches/dropdowns to reveal variant prices |
| **Fallback on Disabled `/products.json`** | Auto-falls back to `/sitemap_products_1.xml` + `/products/{handle}.json` | Fails or triggers storefront anti-bot popups |
| **Failure Mode on Non-Shopify Sites** | Clean `0` items pushed at **$0.00 charge** | Burns compute/browser startup before failing |

***

### Key Features & Storefront Safeguards

- **Official Public Shopify Endpoints + Sitemap Fallback:** Queries `/products.json`, `/collections/{handle}/products.json`, `/collections.json`, and `/meta.json` directly, falling back to `/sitemap_products_1.xml` + `/products/{handle}.json` when `/products.json` returns `403`/`404`.
- **Automatic Pagination & `429` Backoff:** Paginates automatically across full catalogs, honors HTTP `Retry-After` headers, and applies exponential backoff + jitter on `429`/`5xx` responses.
- **Variant Pricing, Compare-At Discounts & Stock Status:** Computes `priceMin`, `priceMax`, `compareAtPriceMin`, `compareAtPriceMax`, `onSale`, `maxDiscountPercent`, `available`, and `availableVariantCount`, plus per-variant SKUs and stock flags.
- **Currency Auto-Detection & Multi-Store Caps:** Detects store currency (`USD`, `CAD`, `GBP`, `EUR`, `AUD`, etc.) and lets `maxProductsPerStore` prevent one huge store from exhausting `maxProducts`.

***

### Quick Start Input JSON

Click **Start** immediately with the pre-configured defaults, or customize:

```json
{
  "storeUrls": [
    "https://www.allbirds.com",
    "https://www.tentree.com",
    "https://colourpop.com"
  ],
  "maxProducts": 50,
  "maxProductsPerStore": 20,
  "availableOnly": false,
  "onSaleOnly": false,
  "includeVariants": true,
  "includeDescription": true,
  "maxDescriptionChars": 800,
  "useSitemapFallback": true,
  "concurrency": 3,
  "timeoutMs": 15000
}
```

#### Key Input Parameters

- **`storeUrls`** *(required)*: Store domains (`allbirds.com`), full URLs (`https://www.tentree.com`), or direct collection URLs (`https://www.brooklinen.com/collections/best-sellers-shop`). Normalized and deduplicated automatically.
- **`collectionHandle`** *(optional)*: Global collection handle (e.g. `sale`, `best-sellers`) to query `/collections/{handle}/products.json`.
- **`maxProducts`** *(default `50`, max `10000`)*: Strict Pay-Per-Event spending cap across the entire run.
- **`maxProductsPerStore`** *(optional)*: Caps products extracted per store across multi-store batches.
- **`availableOnly` / `onSaleOnly`**: Filter for in-stock or discounted items (`compareAtPrice > price`) before pushing and charging.
- **`searchQuery` / `tagsFilter`**: Case-insensitive keyword and tag filtering.

***

### Sample Output JSON (Verified Live Cloud Run)

```json
{
  "productId": "7133077242042",
  "handle": "mens-mystery-bag",
  "title": "Men's Mystery Box (5 Items)",
  "vendor": "tentree",
  "productType": "Mystery Bags",
  "storeDomain": "www.tentree.com",
  "storeUrl": "https://www.tentree.com",
  "storeName": "Tentree",
  "productUrl": "https://www.tentree.com/products/mens-mystery-bag",
  "collectionHandle": null,
  "sourceEndpoint": "products_json",
  "currency": "USD",
  "priceMin": 150,
  "priceMax": 150,
  "compareAtPriceMin": 330,
  "compareAtPriceMax": 330,
  "onSale": true,
  "maxDiscountPercent": 54.5,
  "available": true,
  "availableVariantCount": 5,
  "variantCount": 5,
  "tags": ["accessories", "best-sellers", "in-stock", "mens", "organic-cotton", "sitewide-sale"],
  "imageUrl": "https://cdn.shopify.com/s/files/1/2341/3995/files/WI25_GivingTuesday_PDP_5-Item-Mystery-Box_Mens_Hover_FA.jpg?v=1763057185",
  "variants": [
    {
      "variantId": "41607105970362",
      "title": "MULTI / S",
      "sku": "MMYSB-MLTI-S",
      "price": 150,
      "compareAtPrice": 330,
      "discountPercent": 54.5,
      "available": true,
      "option1": "MULTI",
      "option2": "S",
      "option3": null
    }
  ],
  "descriptionText": "Become a MVP (Most Valuable Planter) in one go with a tentree Mystery Box! Just order your usual size, and you'll get 5 mystery items selected and packaged by our own tentree team.",
  "publishedAt": "2026-11-28T19:54:29-07:00",
  "createdAt": "2022-07-12T21:24:06-07:00",
  "updatedAt": "2026-12-04T11:24:48-07:00",
  "scrapedAt": "2026-12-04T18:24:48.540Z"
}
```

***

### MCP & n8n Quick-Start

#### Native MCP Integration (`mcp.apify.com`)

Connect this Actor directly to **Claude Desktop**, **Cursor**, or **Windsurf** via Apify's official Streamable HTTP MCP server. Replace `<YOUR_APIFY_TOKEN>` with your Apify API token.

##### Claude Desktop (`claude_desktop_config.json`)

```json
{
  "mcpServers": {
    "shopify-catalog-monitor": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://mcp.apify.com/?actors=deliberate_gratitude_shj/shopify-catalog-monitor",
        "--header",
        "Authorization: Bearer <YOUR_APIFY_TOKEN>"
      ]
    }
  }
}
```

##### Cursor (`.cursor/mcp.json`) & Windsurf (`mcp_config.json`)

```json
{
  "mcpServers": {
    "shopify-catalog-monitor": {
      "url": "https://mcp.apify.com/?actors=deliberate_gratitude_shj/shopify-catalog-monitor",
      "headers": {
        "Authorization": "Bearer <YOUR_APIFY_TOKEN>"
      }
    }
  }
}
```

*(In Windsurf `~/.codeium/windsurf/mcp_config.json`, replace `"url"` with `"serverUrl"`.)*

##### Ready-to-Use AI Agent Prompts

1. **Competitor Discount Audit:** *"Use `shopify-catalog-monitor` to inspect `https://www.allbirds.com` and `https://www.tentree.com` (`onSaleOnly: true`, `maxProductsPerStore: 15`) and rank the steepest discounts."*
2. **Stock & SKU Monitoring:** *"Check `https://colourpop.com` with `availableOnly: true` and `includeVariants: true` and list in-stock SKUs under $20."*

#### n8n & Make.com Synchronous API Setup

Import-ready workflow JSON is available in [`distribution/n8n_workflow.json`](https://github.com/tikzyre8-cmyk/shopify-catalog-monitor/blob/main/distribution/n8n_workflow.json).

- **Method:** `POST`
- **URL:** `https://api.apify.com/v2/acts/deliberate_gratitude_shj~shopify-catalog-monitor/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>`
- **Headers:** `Content-Type: application/json`
- **Body:**

```json
{
  "storeUrls": ["https://www.allbirds.com", "https://www.tentree.com"],
  "maxProducts": 20,
  "maxProductsPerStore": 10,
  "onSaleOnly": true,
  "includeVariants": false
}
```

- **Make.com:** Add **Apify -> Run an Actor** (`deliberate_gratitude_shj/shopify-catalog-monitor`, **Run synchronously** enabled), then send price-drop or restock alerts to Slack, Google Sheets, or Airtable.

***

### Transparent Pay-Per-Event Pricing

Simple, predictable **Pay-Per-Event (PPE)** billing — **$0.00 actor start fee** and **$0.001 per product** (**$1.00 / 1,000 products**). Test free inside Apify's monthly $5 developer credit (up to 5,000 products/month free).

| Products Extracted | Event Rate (`product-extracted`) | Estimated Total Cost |
|---:|---:|---:|
| **20 products** (Quick Test) | $0.001 / product | **$0.02** |
| **50 products** (Default Cap) | $0.001 / product | **$0.05** |
| **1,000 products** | $0.001 / product | **$1.00** |
| **10,000 products** | $0.001 / product | **$10.00** |

*Non-Shopify / 404 stores produce `0` dataset items and incur **$0.00** event charges; `maxProducts` and `maxProductsPerStore` enforce strict spend limits.*

***

### Frequently Asked Questions (FAQ)

**1. What happens if a Shopify store disables `/products.json`?**\
When `useSitemapFallback: true` (default), the Actor automatically probes `/sitemap_products_1.xml` and fetches individual `/products/{handle}.json` endpoints so catalogs still extract cleanly.

**2. Are filtered-out items (`availableOnly` or `onSaleOnly`) billed?**\
No. Filtering happens in memory before pushing items to the dataset and charging `product-extracted`, so you only pay for matching products returned in your dataset.

**3. Can I scrape a specific Shopify collection URL instead of the entire store?**\
Yes. Pass direct `/collections/<handle>` URLs inside `storeUrls` or set `collectionHandle` globally to pull `/collections/{handle}/products.json`.

**4. How do I keep payloads compact for Claude, Cursor, or n8n?**\
Set `includeVariants: false` and `includeDescription: false` to keep product-level min/max pricing, discounts, currency, tags, and stock availability while stripping nested variant arrays and HTML descriptions.

**5. What if I need to scrape WooCommerce, BigCommerce, Magento, or custom e-commerce stores too?**\
Use our companion [Universal E-Commerce JSON-LD Price Scraper & Product Schema API](https://apify.com/deliberate_gratitude_shj/universal-ecommerce-schema-api) (`\$1.50 / 1k URLs`), which normalizes JSON-LD, OpenGraph, and Microdata across any storefront into one uniform schema.

***

### More Fast Zero-Browser Tools by Apex Automation Labs

| Tool | Primary Use Case | Pricing (PPE, $0 Start) | Verified Peak RAM & Speed | Apify Store Link |
|---|---|---|---|---|
| **ATS Job Board Scraper API** | Greenhouse, Lever, Ashby, Workable, SmartRecruiters & `/careers` discovery | **$2.00 / 1k jobs** | 75.1 MB RAM · 3.39s (3 boards) | [Open in Apify Store](https://apify.com/deliberate_gratitude_shj/ats-jobs-extractor) |
| **Technical SEO Broken Link Checker** | 4xx/5xx links, `#fragment` anchors, redirects, JSON-LD & `llms.txt` | **$2.00 / 1k pages** | 59.1 MB RAM · 4.23s (5 pages) | [Open in Apify Store](https://apify.com/deliberate_gratitude_shj/http-seo-link-auditor) |
| **Domain Security & Tech Stack API** | DNS, email host, SPF/DMARC score, RDAP age, SSL/TLS & CDN stack | **$2.00 / 1k domains** | 58.5 MB RAM · 2.45s analysis (5 domains) | [Open in Apify Store](https://apify.com/deliberate_gratitude_shj/domain-intel-api) |
| **B2B Website Email & Contact Extractor** | Role vs. personal emails, phones, 7 social profiles & JSON-LD | **$2.00 / 1k domains** | 101.1 MB RAM · 5.06s extraction (5 domains) | [Open in Apify Store](https://apify.com/deliberate_gratitude_shj/b2b-contact-social-extractor) |
| **Website to Markdown Crawler (RAG & n8n)** | Clean LLM Markdown, token counts, boilerplate stripping & `/llms.txt` | **$1.00 / 1k pages** | 39.8 MB RAM · 2.97s (5 sites) | [Open in Apify Store](https://apify.com/deliberate_gratitude_shj/fast-http-markdown-crawler) |
| **Universal E-Commerce JSON-LD Price Scraper** | Cross-platform JSON-LD (`Product`/`ProductGroup`), OG & Microdata | **$1.50 / 1k products** | 39.7 MB RAM · 2.91s (3 fast URLs) | [Open in Apify Store](https://apify.com/deliberate_gratitude_shj/universal-ecommerce-schema-api) |

*Explore the open-source portfolio hub on GitHub: [Apex Automation Labs (`tikzyre8-cmyk`)](https://github.com/tikzyre8-cmyk/tikzyre8-cmyk) · [All Actors on Apify Store](https://apify.com/deliberate_gratitude_shj).*

# Actor input Schema

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

List of Shopify store domains, store URLs, or collection URLs (e.g. allbirds.com, https://www.tentree.com, https://www.brooklinen.com/collections/best-sellers-shop). Normalized and deduplicated automatically.

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

Optional collection handle (e.g. 'mens', 'sale', 'best-sellers') or collection URL path to fetch only /collections/<handle>/products.json across target stores.

## `maxProducts` (type: `integer`):

Maximum total unique products to extract across all stores. Acts as a strict Pay-Per-Event spending cap ($0.001 / product).

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

Optional per-store cap so a single large catalog does not exhaust maxProducts before other stores are scraped.

## `availableOnly` (type: `boolean`):

Only output products where at least one variant is currently available in stock.

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

Only output products where at least one variant has compare_at_price higher than price.

## `searchQuery` (type: `string`):

Case-insensitive substring match against product title, vendor, productType, handle, or tags.

## `tagsFilter` (type: `array`):

Only output products containing at least one matching tag (case-insensitive).

## `includeVariants` (type: `boolean`):

Include per-variant pricing, compareAtPrice, discountPercent, SKU, options, and availability. Disable for ultra-compact MCP/LLM context payloads.

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

Strip HTML from body_html into clean plain text capped at maxDescriptionChars.

## `maxDescriptionChars` (type: `integer`):

Maximum character length for descriptionText (0 omits text).

## `includeCollectionsList` (type: `boolean`):

Query /collections.json per store and record top collection handles and product counts in RUN_SUMMARY.

## `useSitemapFallback` (type: `boolean`):

If /products.json is disabled or returns 403/404, probe /sitemap_products_1.xml and per-product JSON endpoints.

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

Maximum number of Shopify stores queried in parallel.

## `timeoutMs` (type: `integer`):

Strict HTTP timeout per request in milliseconds.

## Actor input object example

```json
{
  "storeUrls": [
    "https://www.allbirds.com",
    "https://www.tentree.com",
    "https://colourpop.com"
  ],
  "maxProducts": 50,
  "availableOnly": false,
  "onSaleOnly": false,
  "includeVariants": true,
  "includeDescription": true,
  "maxDescriptionChars": 800,
  "includeCollectionsList": false,
  "useSitemapFallback": true,
  "concurrency": 3,
  "timeoutMs": 15000
}
```

# Actor output Schema

## `dataset` (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": [
        "https://www.allbirds.com",
        "https://www.tentree.com",
        "https://colourpop.com"
    ],
    "maxProducts": 50
};

// Run the Actor and wait for it to finish
const run = await client.actor("deliberate_gratitude_shj/shopify-catalog-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": [
        "https://www.allbirds.com",
        "https://www.tentree.com",
        "https://colourpop.com",
    ],
    "maxProducts": 50,
}

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

```

## MCP server setup

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