# Shopify Store Products Scraper - Prices, Variants & Stock (`randy-tools/shopify-products-scraper`) Actor

Scrape every product from any Shopify store by domain or URL: prices, compare-at prices, variants, SKUs, barcodes, stock, images, vendor, tags and descriptions. Collection filter, per-variant rows, any market currency and Shopify detection. Fast HTTP-only, pay per product.

- **URL**: https://apify.com/randy-tools/shopify-products-scraper.md
- **Developed by:** [AICORP Tools](https://apify.com/randy-tools) (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 Scraper — Prices, Variants & Stock

Extract **every product from any Shopify store**. Pass store domains or URLs (custom domains and `*.myshopify.com` both work) and get each product with its **variants**: price, compare-at price, SKU, availability and options. You also get barcodes and stock levels (optional), images, vendor, product type, tags, the description as HTML and plain text, and created, updated and published dates.

Built for **reliability and low cost**: it reads the JSON feed every Shopify storefront serves, 250 products per request, over plain HTTP with no browser. Requests to each store are paced and retried when Shopify rate-limits (HTTP 429). If a store blocks its product feed, the Actor falls back to the sitemap automatically.

### What you can do with it

- **Competitor price monitoring:** track prices, discounts (compare-at prices) and stock across competitor stores every day
- **Product research and dropshipping:** map a brand's whole catalog, best vendors and product types
- **Catalog migration and feeds:** export a store's products with SKUs, barcodes, options and images to CSV or Excel
- **Market and currency checks:** see the prices a store shows in the UK, EU, Canada or any other market it sells to
- **Lead qualification:** find out whether a list of sites runs on Shopify, and profile each store

### Features

- 🛍️ **Any Shopify store** by domain or URL, including custom domains
- 🗂️ **Collection filter:** paste a collection URL, or give collection handles for every store
- 🎯 **Single products:** paste product URLs to scrape just those
- 🧩 **Variants:** price, compare-at price, SKU, availability, options (size, color…), weight, image
- 📦 **Barcodes and stock** (`includeInventory`): barcode (GTIN/UPC/EAN), inventory quantity where the store exposes it, inventory policy
- 📄 **Two output layouts:** one row per product with nested variants, or **one flat row per variant** for spreadsheets
- 🌍 **Markets and currencies:** set a country (and currency) to get that market's prices. The applied currency is on every record.
- 🔍 **Shopify detection** (`detectOnly`): checks a list of sites and reports whether each one is Shopify, whether it is password-protected, plus store name, currency, country and product count
- 🧠 **Headless stores** (Hydrogen, Next.js and other custom frontends): the Actor finds the store's Shopify backend domain and reads the catalog from there
- 🛡️ **Robust:** 429 back-off, retries, sitemap fallback for stores that block `products.json`, and password-protected stores reported instead of failing

### Input example

```json
{
  "stores": [
    "allbirds.com",
    "https://colourpop.com/collections/best-sellers",
    "https://colourpop.com/products/carry-the-universe"
  ],
  "maxProductsPerStore": 500,
  "outputMode": "products",
  "includeInventory": false,
  "country": "GB",
  "currency": "GBP"
}
```

### Output

The dataset holds `product` records (or `variant` records with *One row per variant*) and one `store` record per store. The Console shows each in its own view. Tags, images and variants are shortened below.

```json
{
  "type": "product",
  "store": "www.allbirds.com",
  "productId": 7340901859408,
  "handle": "womens-allbirds-flip-flop-dusty-pink",
  "title": "Women's Allbirds Flip Flop - Dusty Pink",
  "url": "https://www.allbirds.com/products/womens-allbirds-flip-flop-dusty-pink",
  "vendor": "Allbirds",
  "productType": "Shoes",
  "tags": ["allbirds::gender => womens", "allbirds::material => sugar"],
  "available": true,
  "priceMin": 25.0,
  "priceMax": 25.0,
  "compareAtPriceMin": 50.0,
  "compareAtPriceMax": 50.0,
  "currency": "USD",
  "onSale": true,
  "options": [{ "name": "Size", "values": ["5", "6", "7", "8", "9", "10", "11"] }],
  "variantsCount": 7,
  "variants": [
    {
      "variantId": 42146889072720,
      "title": "6",
      "sku": "A12513W060",
      "price": 25.0,
      "compareAtPrice": 50.0,
      "available": false,
      "options": { "Size": "6" },
      "grams": 492,
      "requiresShipping": true,
      "taxable": true,
      "image": null,
      "barcode": "196942293096",
      "inventoryQuantity": 0,
      "inventoryManagement": "shopify",
      "inventoryPolicy": "deny"
    }
  ],
  "image": "https://cdn.shopify.com/s/files/1/1104/4168/files/A12513_26Q2_Allbirds-Flip-Flop-Dusty-Pink_PDP_LEFT.png?v=1774646345",
  "images": ["https://cdn.shopify.com/s/files/1/1104/4168/files/A12513_26Q2_Allbirds-Flip-Flop-Dusty-Pink_PDP_LEFT.png?v=1774646345"],
  "descriptionHtml": "<p>Sun on your feet. Comfort underneath. …</p>",
  "description": "Sun on your feet. Comfort underneath. …",
  "createdAt": "2026-03-27T14:03:50-07:00",
  "updatedAt": "2026-09-28T05:06:40-07:00",
  "publishedAt": "2026-09-25T16:58:13-07:00"
}
```

```json
{
  "type": "store",
  "store": "www.allbirds.com",
  "url": "https://www.allbirds.com",
  "isShopify": true,
  "passwordProtected": false,
  "name": "Allbirds",
  "myshopifyDomain": "weareallbirds.myshopify.com",
  "currency": "USD",
  "storeCountry": "US",
  "shipsToCountries": ["US"],
  "productsCount": 692,
  "collectionsCount": 1346,
  "productsSource": "products.json",
  "productsScraped": 692
}
```

Barcode and inventory fields appear only with `includeInventory`. Export results as JSON, CSV, Excel or HTML, or pull them via the Apify API, webhooks, Make, Zapier, n8n or MCP.

### Pricing

Pay only for what you get: a small fee per run start, a fee **per product** (all of its variants included, in either output layout) and a fee **per store record**. Barcodes and stock cost a small extra per product, only when enabled. Proxy costs are included.

### FAQ

**Does it work on every Shopify store?** It works on every public Shopify storefront. Password-protected stores (pre-launch or wholesale) are reported with `passwordProtected: true`, and their products are skipped because they aren't public.

**How fast is it?** A 6,500-product catalog takes under a minute. Barcodes and stock need one request per product, so they take longer (about 300 products per 2 minutes per store, with several stores scraped in parallel).

**Why is the stock quantity sometimes missing?** Many stores hide exact inventory from the storefront. You still get `available` per variant, and `inventoryQuantity` wherever the store exposes it.

**Which currency are prices in?** In the store's default currency, unless you set `country`/`currency` and the store sells in that market. The currency actually applied is written on every record.

**Is this legal?** The Actor collects only publicly visible product listings, without logins. You are responsible for using the data in line with applicable laws and the website's terms.

**Something broke?** Open an issue on the Issues tab. We monitor the Actor daily and usually respond within 24 hours.

# Actor input Schema

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

Store domains or URLs, e.g. "allbirds.com". Custom domains and \*.myshopify.com both work. A collection URL (/collections/sale) scrapes only that collection; a product URL scrapes only that product.

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

Collection handles (the part after /collections/ in the URL, e.g. "sale", "new-arrivals") applied to every store given as a plain domain. Leave empty for the whole catalog.

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

0 = all products.

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

One row per product with a nested variants list, or one flat row per variant (easier in spreadsheets). The price is per product in both modes.

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

Adds barcode (GTIN/UPC/EAN), inventory quantity (where the store exposes it), inventory policy and tracking per variant. Needs one extra request per product.

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

Output one record per store: name, currency, country, ship-to countries, product and collection counts, myshopify domain, password protection.

## `detectOnly` (type: `boolean`):

Check each site and output only the store record (is it Shopify, password-protected, store details). No products are scraped.

## `country` (type: `string`):

Two-letter country code, e.g. GB, DE, CA. Prices and availability follow that market (Shopify Markets) when the store sells there. Leave empty for the store's default market.

## `currency` (type: `string`):

Three-letter currency, e.g. GBP, EUR. Usually follows the market country automatically. The currency actually applied is reported on every record.

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

How many stores are scraped at the same time. Requests to each single store are paced to stay under Shopify's rate limits.

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

Apify Proxy (datacenter by default) is included in the price. Switch to residential only if a store blocks datacenter IPs.

## Actor input object example

```json
{
  "stores": [
    "www.allbirds.com"
  ],
  "maxProductsPerStore": 100,
  "outputMode": "products",
  "includeInventory": false,
  "includeStoreInfo": true,
  "detectOnly": false,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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": [
        "www.allbirds.com"
    ],
    "maxProductsPerStore": 100,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("randy-tools/shopify-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": ["www.allbirds.com"],
    "maxProductsPerStore": 100,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("randy-tools/shopify-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": [
    "www.allbirds.com"
  ],
  "maxProductsPerStore": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call randy-tools/shopify-products-scraper --silent --output-dataset

```

## MCP server setup

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