# Shopify Store Scraper – Products, Variants, Prices & Stock (`budoucnost-ai/shopify-store-scraper`) Actor

Scrape any Shopify store via its public JSON endpoints: all products or chosen collections, variants with SKU, barcode, price, compare-at price, availability and inventory, images, tags and clean descriptions. Dedupe across collections, 24 h cache, regex filters, store contact & apps add-on.

- **URL**: https://apify.com/budoucnost-ai/shopify-store-scraper.md
- **Developed by:** [Budoucnost AI](https://apify.com/budoucnost-ai) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.80 / 1,000 product scrapeds

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

Extract the complete catalogue of **any Shopify store** – no API key, no login, no browser. The actor reads the
public JSON endpoints every Shopify storefront exposes (`/products.json`, `/collections/<handle>/products.json`,
`/products/<handle>.json`), so it is fast, cheap and does not break when a theme changes. You get every product
with all variants (SKU, barcode, option values, price, compare-at price, availability, inventory where exposed),
images, tags, vendor, product type, timestamps and a clean-text description. An optional **store info** add-on
returns the shop's currency, country, theme, contact e-mails and phones, social links and the apps it runs
(Klaviyo, Judge.me, Yotpo, Recharge, Gorgias, …) – handy for lead generation and competitor research.

### What you can do with it

- **Price monitoring and competitor tracking** – run daily on a list of competitor stores, compare `priceMin`,
  `compareAtPriceMin`, `onSale`, `discountPercent` and `available` over time.
- **Catalogue export** – build a feed for a marketplace, a price comparison engine, a RAG/AI assistant or a
  product database; `expandVariants` gives one row per SKU, ready for spreadsheets.
- **Stock and new-arrival alerts** – `onlyAvailable`, `createdAt`/`publishedAt` and `totalInventory` (single
  product endpoint) show what is new, what sold out and how deep the stock is.
- **Lead generation** – `includeStoreInfo` returns contact e-mails, phones, social profiles and the installed
  apps of each store, plus the number of collections and products, so you can qualify Shopify merchants in bulk.
- **Dropshipping and sourcing research** – scan vendors, product types and tags across hundreds of stores.

### Input

| Field | Description |
|-------|-------------|
| `storeUrls` | One or more Shopify stores: a domain (`deathwishcoffee.com`), a homepage URL, a **collection URL** (`…/collections/sale`, scrapes only that collection) or a **product URL** (`…/products/<handle>`, scrapes only that product). Any store on Shopify works, including custom domains and headless (Hydrogen) storefronts that keep the JSON endpoints. A URL that is not a Shopify store returns one free row with `notShopify: true`. |
| `collections` | Collection handles to scrape in every store (e.g. `sale`, `new-arrivals`). Empty = whole catalogue. A product in several collections is returned **once**, with all of them in `foundInCollections`. |
| `productHandles` | Specific product handles to fetch in every store. |
| `maxItems` / `maxItemsPerStore` | Limits on unique products (total and per store). Default 100 total, no per-store limit. |
| `expandVariants` | One dataset row per variant with the product fields repeated and the variant in `variant`. Still **charged once per product**. |
| `onlyAvailable` | Skip products with no variant in stock (not charged). |
| `includeStoreInfo` | Store info add-on (one row per store, `type: "store"`), charged as the `store-info` event. |
| `source` | `auto` (default): `/products.json` listing, 250 products per request, with automatic fallback to the sitemap when Shopify keeps throttling. `sitemap`: product handles from the store sitemap, each product fetched via `/products/<handle>.json` – slower but returns `inventoryQuantity` and `barcode` per variant. |
| `includeDescriptionHtml` | Also keep the original `body_html` next to `descriptionText`. |
| `excludeIds` | Product IDs or handles you already have – skipped before storing, never charged. |
| `includeRegex` / `excludeRegex` | Case-insensitive regular expressions tested against title, handle, vendor, product type, tags, variant titles/SKUs/prices/availability and the first 2000 characters of the description. Only matching (or non-matching) products are stored and charged. Examples: `hoodie|sweatshirt`, `^(?!.*gift card)`, `sold out` in `excludeRegex` to drop out-of-stock products. |
| `cacheHours` | Product pages are cached in a named key-value store `shopify-store-cache` in your account and reused by later runs for this many hours (default 24, 0 = off). Repeated runs of the same stores are faster and gentler on the store. |
| `maxConcurrency` / `requestDelayMs` | Politeness controls (default 4 parallel requests, ~500 ms random delay). Shopify throttles `/products.json` per IP; the actor rotates proxy sessions on HTTP 429/403 automatically. |
| `proxyConfiguration` | Apify `RESIDENTIAL` proxy by default. Shopify throttles storefront JSON per IP across all stores and the shared datacenter pool is often exhausted by other scrapers (that is why many Shopify actors fail with "load products failed"). The JSON is tiny, so residential traffic costs well under $0.01 per 1 000 products. You may switch to datacenter for small stores. |

#### Example input

```json
{
    "storeUrls": [{ "url": "https://www.deathwishcoffee.com" }, { "url": "https://www.allbirds.com/collections/mens" }],
    "collections": ["sale"],
    "expandVariants": false,
    "onlyAvailable": true,
    "includeStoreInfo": true,
    "excludeRegex": "gift card",
    "maxItems": 500,
    "cacheHours": 24
}
```

### Output

One item per unique product (or per variant with `expandVariants`):

```json
{
    "store": "https://www.deathwishcoffee.com",
    "storeDomain": "deathwishcoffee.com",
    "id": 7173098373175,
    "handle": "peppermint-mocha-coffee",
    "url": "https://www.deathwishcoffee.com/products/peppermint-mocha-coffee",
    "title": "Peppermint Mocha Coffee",
    "vendor": "Death Wish Coffee",
    "productType": "Coffee",
    "tags": ["Bagged", "LTO Coffee", "Peppermint Mocha"],
    "createdAt": "2024-09-19T15:41:22-04:00",
    "updatedAt": "2026-11-10T16:50:07-05:00",
    "publishedAt": "2026-11-04T09:26:35-05:00",
    "currency": "USD",
    "priceMin": 13.99,
    "priceMax": 69.95,
    "compareAtPriceMin": null,
    "compareAtPriceMax": null,
    "onSale": false,
    "discountPercent": null,
    "available": true,
    "totalInventory": null,
    "variantCount": 3,
    "optionNames": ["Size"],
    "variants": [
        { "id": 41276131115063, "title": "1 bag", "sku": "LGPEPM09", "barcode": null, "options": { "Size": "1 bag" }, "price": 13.99, "compareAtPrice": null, "available": true, "inventoryQuantity": null, "grams": 283, "requiresShipping": true, "taxable": true, "imageUrl": null, "position": 2, "url": "https://www.deathwishcoffee.com/products/peppermint-mocha-coffee?variant=41276131115063" }
    ],
    "images": ["https://cdn.shopify.com/s/files/1/0271/7209/files/Peppermint_Mocha_9oz_Ground_Angle_Cathedral_DTC_A1_FT.jpg?v=1764780253"],
    "imageCount": 3,
    "descriptionText": "Mint to be your holiday escape.\nDon't let overbearing in-laws hack away at your holiday cheer. …",
    "foundInCollections": ["all-coffee"],
    "scrapedAt": "2026-11-10T21:00:00.000Z"
}
```

Field notes:

- `priceMin`/`priceMax` are across variants; `compareAtPrice*` are the "was" prices, `onSale` is true when any
  variant is discounted and `discountPercent` is the best discount.
- `available` = at least one variant can be bought. The listing endpoint exposes `available` per variant; the
  single product endpoint (`productHandles` or a product URL) exposes `inventoryQuantity` and `barcode` as well,
  so `totalInventory` is filled only there.
- `descriptionText` is `body_html` converted to plain text with line breaks and decoded entities.
- `foundInCollections` lists every requested collection the product appeared in; products are deduplicated
  across collections and charged once.
- Store info rows (`type: "store"`) contain `name`, `currency`, `country`, `locale`, `theme`, `themeSchema`,
  `emails`, `phones`, `socialLinks`, `apps`, `hasCheckout`, `collectionCount`, `productCount`, `shopId` and
  `myshopifyDomain`.
- Failed requests and non-Shopify URLs produce rows with an `error` field and are never charged.

### Pricing (pay per event)

| Event | Price | When |
|-------|------:|------|
| `product-scraped` | **$0.0008** | Each unique product stored (one charge even when `expandVariants` emits several rows). |
| `store-info` | $0.003 | Each store info row (`includeStoreInfo`). |
| Actor start | $0.00005 | Once per run. |

A 1 000-product catalogue costs **$0.80**; 100 stores × 500 products with store info ≈ **$40.30**. Duplicates,
filtered-out products, cache hits, throttled requests and errors are free. Compare with other Shopify scrapers
on Apify Store that charge $0.001–$0.006 per product and often fail with "load products failed" on larger
catalogues – this actor paginates with `since_id` (no 1 000-page cap), rotates sessions on throttling and
stops early instead of charging you for an empty run.

### Why this scraper

- **JSON endpoints, not HTML** – immune to theme changes, 250 products per request, no browser.
- **Robust pagination** – `page=` for the first page, then `since_id`, so stores with 100 000+ products work.
- **Dedupe across collections** with `foundInCollections` and a single charge per product.
- **Saves you requests and money** – `excludeIds`, `includeRegex`/`excludeRegex`, `onlyAvailable` filter before
  storing; the 24 h cache serves repeated runs from your own key-value store.
- **Honest failure handling** – 15 throttled responses in a row stop the run; non-Shopify URLs are reported, not
  silently skipped; every error row says what happened.
- **Clean, typed output** with dataset views for products, variants and stores, usable directly from the API,
  integrations (Google Sheets, Make, Zapier, n8n) or an AI agent via MCP.

### Usage from the API

```bash
curl -X POST "https://api.apify.com/v2/acts/budoucnost-ai~shopify-store-scraper/run-sync-get-dataset-items?token=<YOUR_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"storeUrls":[{"url":"https://www.deathwishcoffee.com"}],"maxItems":50}'
```

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('budoucnost-ai/shopify-store-scraper').call({
    storeUrls: [{ url: 'https://www.allbirds.com' }],
    collections: ['sale'],
    expandVariants: true,
    maxItems: 1000,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
```

```python
from apify_client import ApifyClient
client = ApifyClient("<YOUR_TOKEN>")
run = client.actor("budoucnost-ai/shopify-store-scraper").call(run_input={
    "storeUrls": [{"url": "https://www.deathwishcoffee.com"}],
    "includeStoreInfo": True,
    "maxItems": 200,
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("title"), item.get("priceMin"), item.get("available"))
```

### Tips

- To find whether a domain runs on Shopify, run it with `maxItems: 1` and `includeStoreInfo: true` – you get the
  store row (or `notShopify: true`) for the price of one product.
- For daily price monitoring schedule the actor with the same `storeUrls`, keep `cacheHours: 0` (you want fresh
  prices) and compare datasets with the Apify "dataset diff" integration or your own script keyed by `id`.
- Very large stores: raise `maxItems`, keep `maxConcurrency` ≤ 5 and the default delay. Shopify throttles
  `/products.json` per IP after bursts; the actor rotates proxy sessions on 429 automatically.
- **Proxies.** Shopify applies a platform-wide per-IP rate limit to the storefront JSON endpoints and product
  pages, and the shared Apify datacenter pool is used by many Shopify scrapers, so popular stores (big DTC brands
  such as deathwishcoffee.com or allbirds.com) often answer HTTP 429 for every datacenter IP. That is the usual
  reason other Shopify actors fail with "load products failed". This actor therefore uses the Apify `RESIDENTIAL`
  proxy group by default: the JSON is tiny (~100 KB per 250 products), so it adds well under $0.01 per 1 000
  products. If a store still throttles, the actor backs off, alternates `/products.json` with
  `/collections/all/products.json`, falls back to the sitemap + product pages and, if everything is throttled,
  writes one free row with `blocked: true` for that store instead of failing the run. Small stores also work over
  datacenter proxy if you prefer to switch.

### Shared cache

Pages fetched by **any** user of this actor are kept in a cache the actor maintains (named key-value stores on
the budoucnost-ai account, rotated weekly, so nothing lives longer than 14 days). Your run first looks into your
own cache, then into the shared one, and only then asks the store. A shared hit costs no request to Shopify, so
popular stores no longer run into the per-IP rate limit, and runs finish faster.

- Freshness is governed by your `cacheHours` (default 24): a shared record older than that is ignored. Prices and
  stock in a cached page may therefore be up to `cacheHours` old.
- Set `useSharedCache: false` to read only your own cache, or `cacheHours: 0` to bypass both caches and fetch
  everything fresh (price monitoring).
- Only the raw public storefront pages are cached (`products.json`, product `.json`, collections, store homepage
  info) – nothing from your input or account.
- You are charged the same per product whether it came from the cache or from the store.

### Limitations

- Only data Shopify publishes on the storefront JSON endpoints: no cost prices, sales figures, orders or customer
  data. Inventory quantities and barcodes appear only where the store exposes them (single product endpoint).
- Prices are in the store's default currency; localized storefronts (`/en-de/…`) show the default market's
  prices.
- Password-protected and unpublished stores cannot be scraped.

### Legal

This actor only reads publicly available product data that the store itself publishes as JSON. You are
responsible for complying with the store's terms of service and applicable law (including GDPR for contact data
returned by the store info add-on). Use reasonable request rates.

### Support

Open an issue in the Issues tab of this actor. Include the store URL and run ID.

# Actor input Schema

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

One store per line: a domain (deathwishcoffee.com), a homepage URL, a collection URL (…/collections/sale) or a product URL (…/products/some-handle). Collection and product URLs scrape only that collection/product. Any store on Shopify works – no API key needed. A URL that is not a Shopify store returns one free error row with notShopify = true.

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

Collection handles to scrape in every store, e.g. "sale", "new-arrivals", "all". Empty = the whole catalogue (/products.json). A product listed in several collections is returned once with all of them in foundInCollections.

## `productHandles` (type: `array`):

Specific product handles (the last part of /products/<handle>) to fetch in every store, in addition to or instead of listing.

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

Stop after this many unique products across all stores. Each product is charged once even with expandVariants on.

## `maxItemsPerStore` (type: `integer`):

0 = no per-store limit.

## `expandVariants` (type: `boolean`):

Output one dataset row per variant (size/colour/SKU) with the product fields repeated and the variant in `variant`. Still charged once per product.

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

Skip products where no variant is available (not charged).

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

Adds one row per store (type = store) with currency, country, locale, theme, contact e-mails and phones from the homepage and contact page, social links, detected apps (Klaviyo, Judge.me, Yotpo, Recharge, Gorgias…) and collection count. Charged per store as the store-info event.

## `source` (type: `string`):

auto = /products.json listing (250 products per request, cheapest and fastest; falls back to the sitemap automatically when Shopify keeps throttling). sitemap = read product handles from the store's sitemap and fetch each product via /products/<handle>.json – slower, but returns inventoryQuantity and barcode per variant and works when the listing endpoint is rate-limited.

## `includeDescriptionHtml` (type: `boolean`):

Besides the clean descriptionText also store the original body_html.

## `excludeIds` (type: `array`):

Product IDs or handles you already have; they are skipped and never charged.

## `includeRegex` (type: `string`):

Case-insensitive regular expression tested against title, handle, vendor, product type, tags, variant titles/SKUs/prices/availability and the first 2000 characters of the description. Only matching products are stored and charged, e.g. "hoodie|sweatshirt" or "^(?!.\*gift card)".

## `excludeRegex` (type: `string`):

Same text as above; matching products are skipped (not charged), e.g. "gift card|sample".

## `cacheHours` (type: `integer`):

Product pages are cached in a named key-value store "shopify-store-cache" in your Apify account and reused by your later runs for this many hours (0 = off). Repeated runs of the same stores are then faster and gentler on the store.

## `useSharedCache` (type: `boolean`):

Reuse pages fetched by any user of this actor within the last cacheHours (served from a cache the actor keeps, max 14 days). Faster, cheaper for you in compute and it avoids Shopify's per-IP rate limits. Turn off (or set cacheHours to 0) when you need prices fresh at this minute.

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

Parallel requests. Shopify throttles /products.json per IP; keep this low (2–5) unless you use many proxies.

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

Random delay around this value before every request.

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

Residential proxy by default: Shopify rate-limits storefront JSON per IP across all stores and shared datacenter IPs are often exhausted (HTTP 429). products.json is tiny (~100 KB per 250 products), so residential adds well under $0.01 per 1 000 products. Switch to datacenter groups only for small stores if you want.

## Actor input object example

```json
{
  "storeUrls": [
    {
      "url": "https://www.deathwishcoffee.com"
    }
  ],
  "collections": [],
  "productHandles": [],
  "maxItems": 100,
  "maxItemsPerStore": 0,
  "expandVariants": false,
  "onlyAvailable": false,
  "includeStoreInfo": false,
  "source": "auto",
  "includeDescriptionHtml": false,
  "excludeIds": [],
  "includeRegex": "",
  "excludeRegex": "",
  "cacheHours": 24,
  "useSharedCache": true,
  "maxConcurrency": 4,
  "requestDelayMs": 500,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `products` (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": [
        {
            "url": "https://www.deathwishcoffee.com"
        }
    ],
    "collections": [],
    "productHandles": [],
    "excludeIds": [],
    "includeRegex": "",
    "excludeRegex": "",
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("budoucnost-ai/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": [{ "url": "https://www.deathwishcoffee.com" }],
    "collections": [],
    "productHandles": [],
    "excludeIds": [],
    "includeRegex": "",
    "excludeRegex": "",
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("budoucnost-ai/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": [
    {
      "url": "https://www.deathwishcoffee.com"
    }
  ],
  "collections": [],
  "productHandles": [],
  "excludeIds": [],
  "includeRegex": "",
  "excludeRegex": "",
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call budoucnost-ai/shopify-store-scraper --silent --output-dataset

```

## MCP server setup

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