# Shopify Store Scraper: Products, Prices, Variants, Stock (`zhtech/shopify-store-scraper`) Actor

Scrape the full public product catalog of any Shopify store: prices, sale and discount detection, every variant with SKU and stock status, images, tags, collections and store info (currency, country). Clear error rows for non Shopify sites. No login, no API key.

- **URL**: https://apify.com/zhtech/shopify-store-scraper.md
- **Developed by:** [ZH Tech](https://apify.com/zhtech) (community)
- **Categories:** E-commerce, Lead generation, Marketing
- **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 products

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Scraper: products, prices, variants, stock and store info

Scrape the full public product catalog of **any Shopify store**: titles, prices, compare at prices, sale and discount detection, every variant with SKU, options and stock status, all images, tags, vendor, product type, dates, plus a store info row with the store's currency, country and product count.

Just paste store domains. No login, no API key, no browser, and no proxy for most stores. It reads the public JSON feeds every Shopify storefront serves (`/products.json`, `/collections/<handle>/products.json`, `/collections.json`, `/meta.json`), so it is fast: 1,000 products in about 8 seconds.

### What can this Shopify scraper do?

- **Whole catalogs**: up to 25,000 products per store feed, 250 per request.
- **Any input format**: `allbirds.com`, `https://www.allbirds.com`, `brand.myshopify.com`, a collection URL (`/collections/sale`) or a product URL (`/products/handle`).
- **Prices done right**: min and max price, compare at (original) price, `onSale` flag and `discountPercent` on product and variant level.
- **Currency you can trust**: read from the store's own public `/meta.json` (the base currency that the feed prices use). If it cannot be confirmed from a public source, `currency` stays `null` instead of being guessed, and `currencySource` tells you where it came from.
- **Variants your way**: nested (one row per product with a `variants` array) or separate rows (one row per variant, perfect for spreadsheets). You pay per product either way.
- **Filters**: collections, keywords, exclude keywords, vendors, product types, tags, in stock only, on sale only, min and max price, created after and updated after (for example `7 days`).
- **Store info row**: name, description, currency, country, city, ships to countries, published product and collection counts, myshopify domain.
- **Collections list**: every collection with its handle, URL and product count.
- **Clear errors, never silent**: non Shopify sites, Shopify stores with the product feed turned off, password protected stores, unknown domains, missing collections and products each get an error row with a code and a plain English reason. A run that saves nothing always tells you why.
- **Clean text**: plain text descriptions with paragraphs kept (HTML optional), and automatic repair of broken characters some stores have in their data (for example `â€™` back to an apostrophe).

### Use cases

- **Competitor price monitoring**: schedule a run on competitor stores, filter `updatedAfter: "1 day"`, track price and sale changes.
- **New product tracking**: `createdAfter: "7 days"` returns only newly launched products.
- **Dropshipping and product research**: find what sells in a niche, at what price, with which variants.
- **Sale and deal hunting**: `onSaleOnly` with a minimum discount you compute from `discountPercent`.
- **Catalog migration and backups**: export a full catalog (with images, options, SKUs) to JSON, CSV or Excel.
- **Market and brand research**: vendors, product types and price ranges across many stores.
- **AI and LLM pipelines**: clean product text and structured prices for RAG, enrichment or classification.

### How to use

1. Add one or more stores to **Store URLs or domains**.
2. Set **Max products per store** (0 for the whole catalog).
3. Optional: choose **Variants output**, add filters, turn on **Collections list**.
4. Run, then open the **Output** tab. Views: Products, Variant rows, Store info, Collections and Errors. Export to JSON, CSV, Excel, XML or HTML, or read it through the API.

### Input examples

Two stores, 10 products each (the default test input):

```json
{ "storeUrls": ["www.allbirds.com", "www.tentree.com"], "maxProductsPerStore": 10 }
```

Whole catalog, one row per in stock variant, no descriptions (spreadsheet export):

```json
{
    "storeUrls": ["kith.com"],
    "maxProductsPerStore": 0,
    "variantMode": "rows",
    "inStockOnly": true,
    "descriptionFormat": "none"
}
```

Only discounted products between 20 and 100, from one collection:

```json
{
    "storeUrls": ["https://colourpop.com"],
    "collections": ["best-sellers"],
    "onSaleOnly": true,
    "minPrice": "20",
    "maxPrice": "100"
}
```

New products of the last week from several stores, with the collections list:

```json
{
    "storeUrls": ["www.deathwishcoffee.com", "www.tentree.com"],
    "createdAfter": "7 days",
    "maxProductsPerStore": 0,
    "includeCollections": true
}
```

Specific products (price and stock watch):

```json
{
    "storeUrls": [
        "https://www.tentree.com/products/mountain-summit-apex-hat-ridgeline-meteorite-black",
        "https://www.allbirds.com/products/mens-wool-runner-nz-shadow-blue-natural-white-sole"
    ]
}
```

### Output

Every row has a `type`: `product`, `variant` (separate rows mode), `store`, `collection` or `error`.

Product (nested mode, shortened):

```json
{
    "type": "product",
    "storeDomain": "www.tentree.com",
    "storeUrl": "https://www.tentree.com",
    "productId": 8462694744250,
    "title": "Mountain Summit Apex Hat",
    "handle": "mountain-summit-apex-hat-ridgeline-meteorite-black",
    "url": "https://www.tentree.com/products/mountain-summit-apex-hat-ridgeline-meteorite-black",
    "vendor": "tentree",
    "productType": "Accessories",
    "tags": ["accessories", "baseball-cap", "hats", "organic-cotton"],
    "price": 36,
    "priceMin": 36,
    "priceMax": 36,
    "compareAtPriceMin": 45,
    "compareAtPriceMax": 45,
    "onSale": true,
    "discountPercent": 20,
    "currency": "USD",
    "currencySource": "meta.json",
    "available": true,
    "variantsCount": 1,
    "availableVariantsCount": 1,
    "options": [{ "name": "Color", "values": ["RIDGELINE METEORITE BLACK"] }, { "name": "Size", "values": ["ONE"] }],
    "imageUrl": "https://cdn.shopify.com/s/files/1/2341/3995/files/Black-Five-Panel-Ball-Cap-TAU6702-6364_3.png?v=1784936539",
    "images": ["https://cdn.shopify.com/s/files/1/2341/3995/files/Black-Five-Panel-Ball-Cap-TAU6702-6364_3.png?v=1784936539"],
    "imagesCount": 3,
    "createdAt": "2026-07-24T16:42:12-07:00",
    "updatedAt": "2026-11-20T09:51:26-07:00",
    "publishedAt": "2026-11-19T17:25:26-07:00",
    "collection": null,
    "description": "Keep it clean, keep it classic. This mid-profile flat brim hat pairs a simple, structured silhouette with an adjustable snapback...",
    "variants": [
        {
            "variantId": 46195217858746,
            "title": "RIDGELINE METEORITE BLACK / ONE",
            "sku": "TAU6702-6364-ONE",
            "price": 36,
            "compareAtPrice": 45,
            "onSale": true,
            "discountPercent": 20,
            "available": true,
            "options": { "Color": "RIDGELINE METEORITE BLACK", "Size": "ONE" },
            "grams": 106,
            "requiresShipping": true,
            "imageUrl": "https://cdn.shopify.com/s/files/1/2341/3995/files/Black-Five-Panel-Ball-Cap-TAU6702-6364_3.png?v=1784936539",
            "url": "https://www.tentree.com/products/mountain-summit-apex-hat-ridgeline-meteorite-black?variant=46195217858746"
        }
    ],
    "scrapedAt": "2026-11-20T16:51:26.632Z"
}
```

Store info row:

```json
{
    "type": "store",
    "storeDomain": "www.allbirds.com",
    "name": "Allbirds",
    "description": "The world's most comfortable shoes, made with natural materials...",
    "myshopifyDomain": "weareallbirds.myshopify.com",
    "city": "Beverly Hills",
    "province": "California",
    "country": "US",
    "currency": "USD",
    "currencySource": "meta.json",
    "shipsToCountries": ["US"],
    "shipsToCountriesCount": 1,
    "publishedProductsCount": 303,
    "publishedCollectionsCount": 1354,
    "productsJsonAvailable": true,
    "productsSaved": 10
}
```

Error row:

```json
{
    "type": "error",
    "input": "hiutdenim.co.uk",
    "storeDomain": "hiutdenim.co.uk",
    "errorCode": "PRODUCTS_JSON_DISABLED",
    "error": "hiutdenim.co.uk is a Shopify store, but its public products.json feed is disabled or hidden (HTTP 404 for /products.json). This store does not expose its catalog through the public JSON endpoints."
}
```

Error codes: `INVALID_INPUT`, `DOMAIN_NOT_FOUND`, `UNREACHABLE`, `NOT_SHOPIFY`, `PRODUCTS_JSON_DISABLED`, `PASSWORD_PROTECTED`, `BLOCKED`, `RATE_LIMITED`, `COLLECTION_NOT_FOUND`, `COLLECTION_EMPTY`, `PRODUCT_NOT_FOUND`, `NO_PRODUCTS`. When filters remove every product of a store, the run log and `RUN_SUMMARY` say how many products were checked.

A run summary (counts per store, HTTP stats, why the run stopped) is saved as `RUN_SUMMARY` in the default key-value store.

### Pricing

Pay per event, you only pay for what is saved:

- a small start fee per run,
- a price per product saved (all variants included, also in separate rows mode),
- a price per store info row and per collection row when you turn those on.

Error rows, products removed by filters, duplicates and retries are free. Invalid input fails before the start fee. Set a maximum cost per run in the run options and the scraper stops cleanly when it is reached. See the Pricing tab for current prices.

### FAQ

**Does it work on every Shopify store?**
On every store that keeps its public product feed open, which is the large majority. Some stores turn the feed off or put a firewall in front of it; you get a `PRODUCTS_JSON_DISABLED` or `BLOCKED` error row for those instead of an empty result.

**Do I need a proxy?**
Usually not. If a store rate limits or blocks requests, enable Apify Proxy (datacenter is normally enough) and raise the request delay.

**Why is `currency` null for some stores?**
Only public sources are used: the store's `/meta.json`, or the storefront's own currency setting when it equals the base currency. If neither confirms it, the field stays null instead of guessing. Prices are always in the store's base currency.

**Can I get exact inventory counts?**
No. The public feed only says whether each variant is available. Exact stock numbers would need cart tricks, which this actor does not do.

**Is there a product limit?**
Shopify serves up to 25,000 products per feed. Bigger catalogs are marked with `catalogTruncated: true` in the store row; use the collection filter to reach the rest.

**Can it sort by best selling?**
No, the public feed has no sales data or best selling order.

**Is it legal?**
It only reads data every store publishes openly to any visitor, with no login and at a polite rate. You are responsible for how you use the data; check the terms of the stores you scrape and the laws that apply to you.

### Limitations

- Only public data. Password protected stores and anything behind a login are not accessible.
- No exact inventory quantities, no sales numbers, no reviews (reviews live in third party apps).
- `/collections/<handle>/products.json` and `/products/<handle>.json` are rate limited harder by Shopify than the main feed. Product URLs automatically fall back to the main feed; for heavy collection runs use a proxy or a longer request delay.
- Prices are the store's base currency, not localized market prices.

### API and integrations

Run it from your code with the Apify API or client libraries:

```js
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });
const run = await client.actor('zhtech/shopify-store-scraper').call({
    storeUrls: ['www.allbirds.com'],
    maxProductsPerStore: 50,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

Python:

```python
from apify_client import ApifyClient
client = ApifyClient("YOUR_TOKEN")
run = client.actor("zhtech/shopify-store-scraper").call(run_input={"storeUrls": ["kith.com"], "onSaleOnly": True})
items = client.dataset(run["defaultDatasetId"]).list_items().items
```

It also works with Make, Zapier, n8n, Google Sheets, webhooks and scheduled tasks, and with AI agents through the Apify MCP server (the actor's clear input descriptions let an LLM call it directly, for example "get all on sale products from kith.com under 100 dollars").

Built and maintained by ZH Tech. Found a store that does not work? Open an issue with the store URL and the run ID.

# Actor input Schema

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

Shopify stores to scrape. Accepted: a domain (allbirds.com), a store URL (https://www.allbirds.com), a myshopify domain (brand.myshopify.com), a collection URL (https://store.com/collections/sale, scrapes only that collection) or a product URL (https://store.com/products/handle, scrapes only that product). Non Shopify sites and stores with a disabled product feed get a clear error row.

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

Maximum number of products saved for each store (after filters). 0 means the whole catalog (Shopify serves up to 25,000 products per feed).

## `maxTotalProducts` (type: `integer`):

Hard cap on products for the whole run, across all stores. 0 means no overall cap.

## `variantMode` (type: `string`):

Nested: one row per product with a variants array (sizes, colors, SKUs) inside. Separate rows: one row per variant with the product fields repeated, easiest for spreadsheets. You pay per product either way.

## `includeStoreInfo` (type: `boolean`):

Adds one row per store with its public details from /meta.json: name, description, currency, country, city, ships to countries, published product and collection counts.

## `includeCollections` (type: `boolean`):

Adds one row per collection of the store (title, handle, URL, product count). Useful to discover collection handles for the filter below.

## `includeProducts` (type: `boolean`):

Turn off to only collect store info and/or collections without products.

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

Collection handles (sale, mens-shoes) or collection URLs. When set, products are read from /collections/<handle>/products.json of every store instead of the full catalog. Products in several collections are saved once.

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

Keep only products whose title, handle, vendor, product type or tags contain at least one of these words (case insensitive).

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

Drop products whose title, handle, vendor, product type or tags contain any of these words.

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

Keep only products from these vendors (exact name, case insensitive).

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

Keep only products of these product types (exact name, case insensitive), for example Shoes or T-Shirts.

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

Keep only products that have at least one of these tags (exact tag, case insensitive).

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

Keep only products with at least one available variant. In separate rows mode, sold out variants are dropped too.

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

Keep only products with at least one variant priced below its compare at price.

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

Keep only products with at least one variant at or above this price, in the store's currency. Leave empty for no minimum.

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

Keep only products with at least one variant at or below this price, in the store's currency. Leave empty for no maximum.

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

Keep only products created on or after this date. YYYY-MM-DD, a full ISO timestamp, or relative like 7 days, 2 weeks, 1 month. Great for new product monitoring.

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

Keep only products updated on or after this date (price, stock or content changes). Same formats as above.

## `descriptionFormat` (type: `string`):

Plain text (clean, readable), raw HTML, both, or none (smaller output).

## `maxConcurrency` (type: `integer`):

How many stores are scraped at the same time. Requests to one store are always sequential and spaced out.

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

Polite pause between two requests to the same store. Raise it if a store rate limits you.

## `proxyConfiguration` (type: `object`):

Not needed for most stores. If a store blocks or rate limits requests, enable Apify Proxy (datacenter is usually enough).

## Actor input object example

```json
{
  "storeUrls": [
    "www.allbirds.com",
    "www.tentree.com"
  ],
  "maxProductsPerStore": 10,
  "maxTotalProducts": 0,
  "variantMode": "nested",
  "includeStoreInfo": true,
  "includeCollections": false,
  "includeProducts": true,
  "inStockOnly": false,
  "onSaleOnly": false,
  "descriptionFormat": "text",
  "maxConcurrency": 3,
  "requestDelayMs": 1000,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

## `variants` (type: `string`):

No description

## `stores` (type: `string`):

No description

## `collections` (type: `string`):

No description

## `errors` (type: `string`):

No description

## `allResults` (type: `string`):

No description

## `runSummary` (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": [
        "www.allbirds.com",
        "www.tentree.com"
    ],
    "maxProductsPerStore": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("zhtech/shopify-store-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 = {
    "storeUrls": [
        "www.allbirds.com",
        "www.tentree.com",
    ],
    "maxProductsPerStore": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("zhtech/shopify-store-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 '{
  "storeUrls": [
    "www.allbirds.com",
    "www.tentree.com"
  ],
  "maxProductsPerStore": 10
}' |
apify call zhtech/shopify-store-scraper --silent --output-dataset

```

## MCP server setup

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