# Shopify Store Products Scraper (`cleanrow/shopify-store-products-scraper`) Actor

Every product and variant from any Shopify-powered store: prices, compare-at prices, sale flags, availability, optional stock counts, images, tags, vendor, type, URLs, and dates. Works on headless stores and catalogs over 25,000 products. No proxy, no login.

- **URL**: https://apify.com/cleanrow/shopify-store-products-scraper.md
- **Developed by:** [Cleanrow Data](https://apify.com/cleanrow) (community)
- **Categories:** E-commerce, Developer tools
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 products

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 Scraper

Get every product and variant from any store built on Shopify: prices, compare-at prices, discounts, availability, optional stock counts, images, tags, vendor, product type, URLs and dates. Paste store domains, collection URLs or product URLs. You get one clean schema for every store.

No proxy, no login and no browser. The Actor reads the public catalog endpoints that every Shopify storefront exposes, and it keeps going where simple scrapers stop:

- **Headless and custom-frontend stores.** Many big brands put a custom site in front of Shopify, and `/products.json` returns 404 or 403 on their domain. The Actor finds the store's `.myshopify.com` domain and reads the catalog from there. In our tests that included Gymshark, Fashion Nova and Hiut Denim.
- **Catalogs over 25,000 products.** Shopify's public product feed stops at 25,000 items. Past that point the Actor switches to the public storefront API and continues, so large stores are not silently cut off.
- **Coverage you can check.** Each store reports how many products it says it publishes and how many you received, so you know whether you got the whole catalog.
- **One bad input never kills the run.** A non-Shopify site, a blocked store or a missing collection gets a clear per-store reason in `RUN_STATS`, and the other stores keep running. A run fails only when every store fails.
- **You pay only for products delivered.** Filtered-out products, duplicates and failed stores are never charged.

### What you can use it for

- Competitor price and discount monitoring (run on a schedule and compare `priceMin` or `variantPrice`)
- New-arrival tracking with `createdWithinDays`
- Building product feeds and catalogs for comparison sites or affiliate pages
- Dropshipping and product research: vendors, types, tags and price ranges across many stores
- Stock and sell-out monitoring with `includeInventory` (where the store publishes quantities)

### Input

| Field | What it does |
|---|---|
| `stores` | Domains or URLs. `brand.com` takes the whole store, `brand.com/collections/sale` takes one collection, and `brand.com/products/x` takes one product. Locale paths (`/en-gb/...`) and `.myshopify.com` domains work too. Up to 500 per run. |
| `outputMode` | `products`: one row per product with a nested `variants` array (default). `variants`: one flat row per variant. |
| `maxProducts` / `maxProductsPerStore` | Limits. `0` means no limit. The default `maxProducts` is 1,000. |
| `includeInventory` | Adds per-variant stock quantity, barcode and inventory policy. It costs one extra request per product and is charged only when the store actually publishes quantities. |
| `includeDescription` | Adds the description as text and HTML. On by default. |
| Filters | `keywords`, `excludeKeywords`, `vendors`, `productTypes`, `tags`, `minPrice`, `maxPrice`, `onlyAvailable`, `onlyOnSale`, `createdWithinDays`, `updatedWithinDays`, `createdAfter`, `updatedAfter`. |

Example:

```json
{
  "stores": [
    "https://www.allbirds.com",
    "https://www.deathwishcoffee.com",
    "https://colourpop.com/collections/lips"
  ],
  "maxProductsPerStore": 20,
  "maxProducts": 60
}
```

### Output

The record below is a real product from a test run. The description and arrays are shortened here.

```json
{
  "id": "deathwishcoffee.myshopify.com:15414106062903",
  "productId": "15414106062903",
  "store": "www.deathwishcoffee.com",
  "storeName": "Death Wish Coffee",
  "handle": "power-surge-mug-ground-bundle",
  "title": "Power Surge Ground Bundle",
  "url": "https://www.deathwishcoffee.com/products/power-surge-mug-ground-bundle",
  "vendor": "Deneen Pottery",
  "productType": "Bundle",
  "tags": ["Bagged", "Bundle", "Coffee & Mug Bundles", "Merch", "Mug"],
  "currency": "USD",
  "priceMin": 52.99,
  "priceMax": 52.99,
  "compareAtPriceMin": 57.99,
  "compareAtPriceMax": 57.99,
  "onSale": true,
  "maxDiscountPercent": 8.6,
  "available": true,
  "variantsCount": 1,
  "availableVariantsCount": 1,
  "totalInventory": null,
  "options": [],
  "featuredImage": "https://cdn.shopify.com/s/files/1/0271/7209/files/...jpg",
  "imagesCount": 7,
  "descriptionText": "Power through anything. ...",
  "createdAt": "2026-10-27T14:32:14Z",
  "updatedAt": "2026-11-15T23:59:52Z",
  "publishedAt": "2026-10-28T13:21:26Z",
  "source": "products.json (store domain)",
  "variants": [
    {
      "variantId": "67671513137207",
      "sku": "LKGPSMUG26",
      "price": 52.99,
      "compareAtPrice": 57.99,
      "onSale": true,
      "discountPercent": 8.6,
      "available": true,
      "inventoryQuantity": null,
      "weightGrams": 1361.0,
      "url": "https://www.deathwishcoffee.com/products/power-surge-mug-ground-bundle?variant=67671513137207"
    }
  ],
  "scrapedAt": "2026-11-15T23:59:52Z"
}
```

In `variants` mode, each row carries the product fields plus `variantId`, `variantTitle`, `variantSku`, `variantBarcode`, `variantPrice`, `variantCompareAtPrice`, `variantOnSale`, `variantDiscountPercent`, `variantAvailable`, `variantInventoryQuantity`, `variantOptions`, `variantWeightGrams`, `variantUrl` and the variant dates.

Notes on the fields:

- `id` is stable across runs and across the store's own domain and its `.myshopify.com` domain, so you can use it to deduplicate and to diff runs.
- Prices are numbers in the store's major unit (52.99, not 5299). `currency` is the one the store served to the request.
- `inventoryQuantity` and `totalInventory` stay `null` unless `includeInventory` is on and the store publishes stock counts. Many stores do not.
- `source` tells you which public endpoint delivered the product.

The `RUN_STATS` record in the key-value store has one row per input. Each row shows the status, store name, myshopify domain, currency, published product count, sources used, fetched, matched, written, `catalogCoverage`, and an `error` with an `errorCode` for failed inputs: `not_shopify`, `blocked`, `unreachable`, `collection_not_found`, `product_not_found`, `no_source` and others.

### Pricing

Pay per event:

| Event | When it is charged |
|---|---|
| `product` | Once per product written. In variants mode, all variant rows of a product count as one product. |
| `inventory_enrichment` | Only with `includeInventory`, and only for products where the store published stock quantities. |
| Actor start | A small fixed amount per run, set by Apify. |

Products your filters remove, duplicates (the same product reached through two inputs or two domains) and stores that fail are not charged. If you set a maximum cost per run, the Actor stops cleanly when it reaches it.

### How it works

1. **Detect.** The Actor checks that the domain is a Shopify store using the public `meta.json` and storefront markers, and finds the store name, currency, published product count and `.myshopify.com` domain. Sites that are not Shopify are reported right away and nothing is charged.
2. **Read the catalog.** It pages through `/products.json` (or `/collections/<handle>/products.json`), first on the store's domain and then on the myshopify domain.
3. **Continue past the limits.** If the feed is capped or unavailable, it switches to the public storefront API, which uses cursor paging with no 25,000 cap. As a last resort for a whole store, it reads `sitemap.xml` together with each product's JSON.
4. **Enrich (optional).** It reads availability and stock counts from each product's public `.js` endpoint.
5. **Retries.** Transient errors (429 and 5xx) are retried with backoff and `Retry-After` is respected. The HTTP client uses a browser-grade TLS fingerprint, so no proxy is needed for normal stores.

### Tested on

These stores were tested before release (local runs, 15 Nov 2026):

| Store | Size (published products) | Notes |
|---|---|---|
| Hiut Denim | 105 | Custom frontend; read via myshopify domain |
| Death Wish Coffee | 168 | |
| Allbirds | 312 | |
| Brooklinen | 509 | |
| ColourPop | 1,115 | |
| tentree | 1,828 | |
| Gymshark, Fashion Nova | large | Headless; read via myshopify domain |
| Kith | 25,001 | Over the 25,000 feed cap; the rest came from the storefront API |

In a full-catalog run of the first six stores, every store returned exactly its published product count: 4,037 products in about 21 seconds.

### FAQ

**Do I need a proxy?** Usually not. A few stores block all automated traffic, even on their home page. Those are reported as `blocked` and are not charged.

**Why is my currency different from what I see in my browser?** Stores with several markets pick the currency from the visitor's location. The Actor reports whatever currency the store served to it.

**Why are stock counts empty?** Most stores hide quantities. When a store publishes them, `includeInventory` returns them, and you are charged for the enrichment only on those products.

**Can it scrape a single collection or product?** Yes. Paste the collection URL or the product URL.

**Does it work on any Shopify store?** It works on any store whose public catalog is reachable. Password-protected stores and stores that block every request cannot be read, and they get a clear error.

### Limitations

- On headless stores, the catalog read from the `.myshopify.com` domain is the one Shopify publishes to the online store channel. It can differ slightly from what the custom frontend shows.
- If a store blocks every request and does not expose its myshopify domain, it cannot be read.
- Stock counts are available only where the store publishes them.
- Prices are the public storefront prices. B2B, member-only and customer-specific prices are not visible.

### Legal and responsible use

This Actor reads only publicly available product data, the same data any visitor's browser loads. It does not log in, bypass passwords or collect personal data. Respect each website's terms and the laws that apply to you, and use reasonable volumes.

This Actor is an independent tool. It is not affiliated with, endorsed by, or sponsored by Shopify Inc. or any of the stores mentioned. Store names are used only to describe test results.

# Actor input Schema

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

Store domains or URLs. Add a /collections/... URL to scrape one collection, or a /products/... URL for one product. Locale paths like /en-gb/ work. A .myshopify.com domain also works.

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

products: one row per product with a nested variants array. variants: one flat row per variant (easier for spreadsheets and price tracking).

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

Stop after this many products across all stores. 0 = no limit.

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

Cap per store or collection. 0 = no limit.

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

Reads per-variant stock quantity, barcode and inventory policy from each product page (one extra request per product). Charged as inventory_enrichment only for products where the store publishes quantities.

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

Adds descriptionText and descriptionHtml. Turn off for smaller rows.

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

Keep products whose title, tags, type or vendor contain any of these words (case-insensitive).

## `excludeKeywords` (type: `array`):

Drop products whose title contains any of these words.

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

Keep only these vendors (exact match, case-insensitive).

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

Keep only these product types (exact match, case-insensitive).

## `tags` (type: `array`):

Keep products that have any of these tags.

## `minPrice` (type: `string`):

In the store's currency. A product matches if any variant is in range.

## `maxPrice` (type: `string`):

In the store's currency.

## `onlyAvailable` (type: `boolean`):

Keep products with at least one variant in stock. In variants mode, also drops sold-out variant rows.

## `onlyOnSale` (type: `boolean`):

Keep products where a variant has a compare-at price above its price.

## `createdWithinDays` (type: `integer`):

Keep products created in the last N days. Good for new-arrival monitoring.

## `updatedWithinDays` (type: `integer`):

Keep products updated in the last N days.

## `createdAfter` (type: `string`):

Absolute date (YYYY-MM-DD). Ignored if Created within is set.

## `updatedAfter` (type: `string`):

Absolute date (YYYY-MM-DD). Ignored if Updated within is set.

## Actor input object example

```json
{
  "stores": [
    "https://www.deathwishcoffee.com",
    "https://colourpop.com/collections/lips",
    "https://www.allbirds.com"
  ],
  "outputMode": "products",
  "maxProducts": 100,
  "maxProductsPerStore": 0,
  "includeInventory": false,
  "includeDescription": true,
  "onlyAvailable": false,
  "onlyOnSale": false
}
```

# Actor output Schema

## `products` (type: `string`):

One row per product (or per variant in variants mode).

## `runStats` (type: `string`):

Per-store results: source used, products fetched, matched, written, catalog coverage, and the reason for any failed input.

# 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": [
        "https://www.deathwishcoffee.com",
        "https://colourpop.com/collections/lips",
        "https://www.allbirds.com"
    ],
    "maxProducts": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("cleanrow/shopify-store-products-scraper").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": [
        "https://www.deathwishcoffee.com",
        "https://colourpop.com/collections/lips",
        "https://www.allbirds.com",
    ],
    "maxProducts": 100,
}

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

```

## MCP server setup

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

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/mENbMAftPW6hKAxM8/builds/EtDQpv6NgYZZFsmpO/openapi.json
