# Shopify Store Products & Price Monitor (`omar_jarvis/shopify-store-products`) Actor

Products, variants, prices, discounts, stock and collections from any Shopify store, custom domains and headless stores included. Monitor mode reports only new, changed and removed products with old and new price.

- **URL**: https://apify.com/omar_jarvis/shopify-store-products.md
- **Developed by:** [Omar Nassar](https://apify.com/omar_jarvis) (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 Store Products & Price Monitor

Get all products, variants and prices from any Shopify store. Custom domains, market subfolders and headless (Hydrogen) stores are supported. Monitor mode compares with the previous run and returns only new, changed and removed products, with the old and the new price.

### What it does

- Reads only the public storefront endpoints of each store: `/products.json` (250 per page), `/collections.json`, `/collections/<handle>/products.json`, `/products/<handle>.js` and `/meta.json`. No login, no browser, no proxies.
- Detects Shopify on any domain. A store without Shopify signals gets the error `not a Shopify store`.
- Headless stores (Hydrogen, Next.js) often have no `/products.json` on the public domain. The actor then reads the same public endpoint on the store's own `myshopify.com` domain. Product URLs stay on the public domain.
- A market subfolder (`https://www.brand.com/en-gb`) gives that market's prices and currency. If the subfolder has no product listing, the actor uses the default market and logs a warning.
- Currency comes from `/meta.json`, or from the market page for a subfolder.
- Polite: one request at a time per store, 500 ms between requests (configurable). On HTTP 429 the actor waits for `Retry-After` (or 5, 10, 20 s), and slows down for the rest of that store. It obeys `robots.txt` of the public domain, also for the `myshopify.com` fallback.
- Stores that fail (endpoint switched off, blocked, not Shopify, not reachable) are returned as one row with an `error` field and are **not charged**.

### Input

```json
{
  "stores": ["allbirds.com", "https://www.netflix.shop/en-gb", "skims.com"],
  "mode": "scrape",
  "outputPer": "product",
  "collections": ["sale"],
  "keywords": ["runner", "legging"],
  "changedSince": "2026-11-01",
  "includeInventory": true,
  "includeCollectionMembership": false,
  "maxProductsPerStore": 10000
}
```

| Field | Default | Use |
|---|---|---|
| `stores` | | Store domains or URLs. Required. |
| `mode` | `scrape` | `scrape` returns all matching products. `monitor` returns only changes since the previous run. |
| `outputPer` | `product` | `product`: one row per product with a `variants` list. `variant`: one row per variant. |
| `collections` | all | Collection handles or URLs. An unknown handle is reported in a `partial result` row. |
| `keywords` | none | Match on title, handle, vendor, type, tags or SKU. |
| `changedSince` | none | Keep products created or updated on or after this date. Scrape mode only. |
| `includeInventory` | `false` | Adds barcode, inventory policy and stock per variant where the store exposes it. One extra request per product. |
| `includeCollectionMembership` | `false` | Fills `collections` for each product. Reads the product list of each collection (up to `maxCollections`). |
| `includeDescription` | `true` | Description as plain text. |
| `myshopifyFallback` | `true` | Use the `myshopify.com` domain for headless stores. |
| `monitorStoreName` | `shopify-price-monitor` | Named key-value store that keeps the previous catalog. Use one name per watch list. |
| `requestDelayMs` | `500` | Minimum time between two requests to one store. |
| `concurrency` | `3` | Stores read at the same time. |

### Output (scrape mode, one row per product)

```json
{
  "store": "https://allbirds.com",
  "store_name": "Allbirds",
  "source_domain": "allbirds.com",
  "product_id": 7292464824400,
  "title": "Women's Wool Cruiser - Port (Port Sole)",
  "handle": "womens-wool-cruiser-port-port-sole",
  "url": "https://allbirds.com/products/womens-wool-cruiser-port-port-sole",
  "vendor": "Allbirds",
  "product_type": null,
  "tags": ["11/3/26 DROP"],
  "currency": "USD",
  "price": 120,
  "price_max": 120,
  "compare_at_price": null,
  "discount_pct": null,
  "available": true,
  "variants_count": 13,
  "total_inventory": 109,
  "options": [{ "name": "Size", "values": ["5", "5.5", "6"] }],
  "image": "https://cdn.shopify.com/s/files/1/1104/4168/files/A12858W090-PORT_SIDE_TRANSPARENT.png?v=1793836076",
  "collections": null,
  "created_at": "2026-02-04T17:37:18-08:00",
  "updated_at": "2026-11-09T15:18:51-08:00",
  "variants": [
    {
      "variant_id": 41990816137296,
      "variant_title": "5",
      "sku": "A12858W050",
      "barcode": "196942331460",
      "price": 120,
      "compare_at_price": null,
      "discount_pct": null,
      "available": false,
      "inventory_quantity": 0,
      "inventory_policy": "deny",
      "variant_options": { "Size": "5" },
      "variant_url": "https://allbirds.com/products/womens-wool-cruiser-port-port-sole?variant=41990816137296"
    }
  ],
  "error": null
}
```

With `outputPer: "variant"`, each row has the product fields plus the fields of one variant at the top level.

### Monitor mode

1. The first run for a store saves a baseline and returns no rows.
2. Each next run compares the catalog with the baseline and returns one row per new, changed or removed product (or per variant with `outputPer: "variant"`). A change is a different price, compare-at price or availability, or an added or removed variant.
3. Each row has `change_type`, `old_price`, `new_price`, `price_change`, `price_change_pct` and `variant_changes` (old and new price, compare-at and availability per variant).
4. The baseline moves to the current catalog after each run. If the run stops at **Max cost per run**, the baseline of that store does not move, so no change is lost.
5. Removed products are reported only when the full listing was read. A listing cut short by `maxProductsPerStore` or an error does not report removals.

Schedule the actor (for example daily) with the same input to get a price-change feed. The baseline key depends on the store and on the `collections` and `keywords` filters.

### Pricing

- **$0.001 per product** (event `product`, scrape mode). One event per product in both layouts, also when a product has many variants.
- **$0.002 per change** (event `change`, monitor mode). Unchanged products and baseline runs are not charged.
- Failed stores are not charged.

### Limits

- Up to 1,000 stores per run and 100,000 products per store.
- Stock (`inventory_quantity`) is only present when the store exposes it in `/products/<handle>.js`. Many stores do not.
- Prices are the storefront prices of the store's default market or of the market subfolder you give. Prices that depend on the visitor's country without a subfolder are not covered.
- A store that switches off `/products.json` on all its domains cannot be read. It is returned as an error and not charged.

# Actor input Schema

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

One store per line: a custom domain (allbirds.com), a myshopify.com domain, or a market subfolder (https://www.brand.com/en-gb) for that market's prices. The actor checks that each one is a Shopify store.

## `mode` (type: `string`):

scrape: return every matching product. monitor: compare with the previous run and return only new, changed and removed products, with old and new price. The first monitor run saves a baseline and returns nothing.

## `outputPer` (type: `string`):

product: one row per product with a variants list. variant: one row per variant (size, color) with the product fields repeated. Pricing is per product in both layouts.

## `collections` (type: `array`):

Collection handles or collection URLs, e.g. sale or https://www.brand.com/collections/sale. Empty: the whole catalog.

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

Keep products whose title, handle, vendor, type, tags or SKU contain any of these words (case-insensitive). Empty: no filter.

## `changedSince` (type: `string`):

Keep products created or updated on or after this date, e.g. 2026-11-01 or 2026-11-01T12:00:00Z. Scrape mode only.

## `includeCollectionMembership` (type: `boolean`):

Fill the collections field of each product. Reads every collection's product list, so it adds requests and time on stores with many collections.

## `maxCollections` (type: `integer`):

Upper limit of collections read for membership per store.

## `includeInventory` (type: `boolean`):

Reads /products/<handle>.js for each product: barcode, inventory policy and, where the store exposes it, the stock quantity per variant. One extra request per product.

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

Product description as plain text (up to 5,000 characters).

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

Stop after this many matching products per store.

## `myshopifyFallback` (type: `boolean`):

If the public domain is a headless (Hydrogen) storefront without /products.json, read the same public endpoint on the store's own myshopify.com domain.

## `monitorStoreName` (type: `string`):

Name of the key-value store that keeps the previous catalog between monitor runs. Use a different name per watch list.

## `requestDelayMs` (type: `integer`):

Minimum time between two requests to the same store. The actor slows down further on HTTP 429.

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

How many stores to read at the same time. Requests to one store are always one at a time.

## Actor input object example

```json
{
  "stores": [
    "allbirds.com",
    "deathwishcoffee.com"
  ],
  "mode": "scrape",
  "outputPer": "product",
  "includeCollectionMembership": false,
  "maxCollections": 250,
  "includeInventory": false,
  "includeDescription": true,
  "maxProductsPerStore": 10000,
  "myshopifyFallback": true,
  "monitorStoreName": "shopify-price-monitor",
  "requestDelayMs": 500,
  "concurrency": 3
}
```

# Actor output Schema

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

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

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,omar_jarvis/shopify-store-products"
        }
    }
}
```

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/1E71LZo2K4TLRU36i/builds/bW4zWbp7c4SPaSAYp/openapi.json
