# Shopify Scraper - Product Price & Stock Monitor (`solidscrape/shopify-price-stock-monitor`) Actor

Scrape public Shopify products, variants, SKUs and prices. Track price, sale-price and stock-status changes using snapshots, with firm spending limits.

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

## Pricing

from $0.50 / 1,000 product checkeds

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 product scraper for price and stock tracking

Use this Shopify scraper to export a public store catalog and monitor competitor product prices, compare-at prices, SKUs and variant availability. Keep the first snapshot as your baseline, then compare later runs to see exactly which exposed fields changed. The price and stock monitor supports store URLs you supply and reports unavailable catalogs clearly.

Scrape public Shopify products, variants, SKUs and prices. Track price, sale-price and stock-status changes using snapshots, with firm spending limits.

### Quick start

```json
{
  "storeUrls": [
    "https://www.allbirds.com"
  ],
  "maxItems": 5,
  "maxSpendUsd": 0.05
}
```

Use the Examples tab for saved, capped use cases. Export the dataset as JSON, CSV or Excel, or call `solidscrape/shopify-price-stock-monitor` from the Apify API. The Console prefills and API example use the same small input. No additional site login or third-party API key is needed.

### Coverage and honest limits

Public Shopify storefront `/products.json` catalogs, optional `/meta.json` currency, product IDs, variants, SKUs, prices, compare-at prices, images and source-exposed availability. The actor compares price, compare-at price, SKU and availability per variant, plus title and currency. It does not read customer/order data, call Admin APIs, add items to carts, discover every Shopify store, or bypass a storefront block. Exact inventory quantity is always null: availability is not quantity. Currency remains null when not exposed by metadata. Prices are source decimal strings in that store context; do not combine unknown currencies. Only canonical HTTPS root URLs are supported, not collection/product URLs or localized paths. At most 250 variants and ten images are retained per product. Missing products/variants on bounded or repeated pages must not be interpreted as removed or out of stock. Some public catalogs are disabled or return 429/403; diagnostics identify that condition and automatic retries are disabled.

### Monitoring changes

1. Run once and retain its key-value store ID.
2. Keep sources and filters identical. Set `previousSnapshotStoreId` to that store ID.
3. Optionally set `changesOnly: true`. New and changed records are returned, while unchanged records are hidden. Every unique record checked is still billable; source scans also remain billable.
4. Use the newest run's SNAPSHOT as the next baseline. An unchanged run can have an empty dataset and a positive charge.

`change.status` is `new`, `changed`, or `unchanged`. `change.previous` and `change.details` explain the comparison. First-run records are new to your baseline, not necessarily newly created on the source. Snapshot retention is bounded to 2,000 records and roughly 2 MB, so older unretained records can reappear as new. No removed-product or ended-trend inference is made. Each new snapshot retains older entries within these limits. Only read access to the selected previous store is requested.

### Transparent pricing

- Start: **$0.002** per allocated GB, minimum one event; this actor supports 512 MB.
- Source operation: **$0.003** per attempt, including blocked, empty or invalid responses. Shopify metadata and catalog pages are separate operations. Google uses one feed operation per country.
- Unique record checked: **$0.0005** (**$0.50/1,000**), including unchanged checks hidden by changesOnly. In-run duplicates and filtered topics are not charged as checks. There is no additional automatic dataset-row fee.

Five products from metadata plus one catalog page cost **$0.0105**: $0.002 start + 2 × $0.003 source + 5 × $0.0005 checks. Fifty products from those two operations cost **$0.033**. Each product includes its retained variants at no extra variant fee. These are examples, not fixed prices for arbitrary inputs. Apify free-plan credits can fund small trials under current platform terms; no unlimited free quota is advertised.

`maxSpendUsd` includes all event fees. The lower of that limit and the platform run cap wins. The actor reserves the next check before beginning a source attempt, stops before exceeding a cap, limits source failures to three, and uses no automatic retries or paid proxies. Requests are limited to 12 seconds and 1 MB total response bytes with at most two same-site redirects. `maxItems` is global, including hidden unchanged checks; `maxRequests` and `maxRunSeconds` bound work. Already saved rows remain available after a cap stops processing. Start fees still apply to runs rejected by validation.

### Results and diagnostics

- **Dataset:** normalized records, source evidence and baseline changes.
- **SUMMARY:** checked/output/unchanged counts, source failures, stop reason, warnings, modeled event fees, and effective spending cap.
- **SNAPSHOT:** retained baseline for the next run.
- **REQUEST_REPORT:** source operations and status, including failures.

A run with source failures and no checked records fails explicitly. A valid empty feed/catalog or all-filtered result can finish with zero rows and source fees. The same interrupted run cannot be resurrected safely: replay is refused to avoid uncertain duplicate charges. Start a fresh run and use an available snapshot instead. Unnamed stores follow your Apify data retention; save needed baselines before expiry.

### API usage

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('solidscrape/shopify-price-stock-monitor').call({"storeUrls": ["https://www.allbirds.com"], "maxItems": 5, "maxSpendUsd": 0.05}, { memory: 512, maxTotalChargeUsd: 0.05 });
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

For related workflows, combine this with [Contact Details](https://apify.com/solidscrape/contact-details-scraper) or [Google Maps Business Leads](https://apify.com/solidscrape/google-maps-business-leads). This is an independent SolidScrape tool, not endorsed by the source platform. [Source documentation](https://shopify.dev/docs/api/ajax/reference/product).

### Example output

Excerpt from a tested run on November 2, 2026. News and variant arrays are shortened for readability; this is sample data, not a promise of current values.

```json
{
  "title": "Women's Allbirds Flip Flop - Dusty Pink",
  "productId": "7340901859408",
  "currency": "USD",
  "variants": [
    {
      "id": "42146889039952",
      "title": "5",
      "sku": "A12513W050",
      "price": "50.00",
      "compareAtPrice": null,
      "available": false,
      "options": [
        "5"
      ]
    }
  ],
  "inventoryQuantity": null,
  "change": {
    "status": "new",
    "previous": null,
    "details": null
  }
}
```

### Frequently asked questions

#### Do I need a Shopify Admin API key or login?

No. The Shopify product scraper uses the store's publicly exposed storefront catalog. It does not access customer or order records and cannot read a private or disabled catalog.

#### Does this monitor exact inventory quantities?

No. `available` is the storefront's exposed variant availability, while `inventoryQuantity` remains null. A missing product in a limited scan is not evidence of a stockout or removal.

#### Can I compare prices and SKUs for every variant?

The dataset retains up to 250 variants per product. Use the Variant prices and availability view for one displayed row per retained variant. This view does not add a separate variant fee; billing remains per source attempt and unique product checked.

#### Why did a store return 403, 429 or no products?

The store may block this client, disable its public catalog or expose no products. Check REQUEST_REPORT and SUMMARY. Use the canonical store root URL and reduce scope. The actor does not automatically retry or bypass the block; source attempts remain billable.

#### Why is an unchanged monitoring run still charged?

The actor fetched the source and checked the records against your baseline. `changesOnly` hides unchanged dataset rows; it does not make source work or record checks free. The pricing tab and SUMMARY show the active fees.

#### Can I try it with Apify free-plan credit?

Small runs can use available Apify account credit under the platform's current terms. A $0.05 spending cap is a small trial budget, not a fixed fee or an unlimited free quota.

#### How do I report a problem?

Use this Actor's Issues tab. Include the run ID, non-secret input settings, expected output and relevant REQUEST_REPORT entry. Keep API tokens and credentials out of reports. Source responses and country/store coverage can change over time.

### Python API example

This standard-library example uses your locally stored Apify token. It waits for a small run and reads its dataset; keep credentials out of saved public examples.

```python
import json, os, urllib.request
request = urllib.request.Request(
    "https://api.apify.com/v2/acts/solidscrape~shopify-price-stock-monitor/run-sync-get-dataset-items?memory=512&timeout=120&maxTotalChargeUsd=0.05",
    data=json.dumps({"storeUrls": ["https://www.allbirds.com"], "maxItems": 5, "maxSpendUsd": 0.05}).encode(),
    headers={"Authorization": "Bearer " + os.environ["APIFY_TOKEN"], "Content-Type": "application/json"},
)
with urllib.request.urlopen(request, timeout=150) as response:
    items = json.load(response)
```

# Actor input Schema

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

Canonical public Shopify root URLs. No account, token, URL path or custom proxy is needed. Password-protected and blocked catalogs are unavailable.

## `maxPagesPerStore` (type: `integer`):

Bound pages for each store. Pagination uses up to 50 products per page. All selected stores also share the global item and request caps.

## `maxItems` (type: `integer`):

Global cap on unique records examined, including unchanged records hidden by changesOnly. A check is charged even when its unchanged output is hidden.

## `previousSnapshotStoreId` (type: `string`):

Select the previous run store containing SNAPSHOT. The actor reads it without modifying it. Keep sources and filters identical.

## `changesOnly` (type: `boolean`):

Requires a prior snapshot. Unchanged records are checked and billed, but not returned. Source scans also remain billable.

## `maxSpendUsd` (type: `number`):

Includes start, source attempts and checked records. The lower of this cap and the Apify run cap applies. Collection stops before exceeding it.

## `maxRequests` (type: `integer`):

Global source-attempt limit. Empty, blocked or invalid source responses are included. Each attempt is bounded to 12 seconds, 1 MB and at most three same-site HTTP transports.

## `maxRunSeconds` (type: `integer`):

Global processing deadline; already saved output remains available. Only 512 MB is supported.

## Actor input object example

```json
{
  "storeUrls": [
    "https://www.allbirds.com"
  ],
  "maxPagesPerStore": 5,
  "maxItems": 5,
  "changesOnly": false,
  "maxSpendUsd": 0.05,
  "maxRequests": 20,
  "maxRunSeconds": 90
}
```

# Actor output Schema

## `records` (type: `string`):

No description

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

No description

## `snapshot` (type: `string`):

No description

## `request_report` (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"
    ],
    "maxItems": 5,
    "maxSpendUsd": 0.05
};

// Run the Actor and wait for it to finish
const run = await client.actor("solidscrape/shopify-price-stock-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"],
    "maxItems": 5,
    "maxSpendUsd": 0.05,
}

# Run the Actor and wait for it to finish
run = client.actor("solidscrape/shopify-price-stock-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"
  ],
  "maxItems": 5,
  "maxSpendUsd": 0.05
}' |
apify call solidscrape/shopify-price-stock-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,solidscrape/shopify-price-stock-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/YkGoVC12LjUb3At44/builds/BcBcgt3990trgI6X8/openapi.json
