# Shopify Scraper: Products, Prices, Variants, Stock & Sales (`datafeedlab/shopify-products-scraper`) Actor

Shopify scraper for any store: products, prices, discounts, variants, SKUs, stock and images. Monitor price drops and restocks. Export to CSV or JSON.

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

## Pricing

$0.70 / 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 Scraper: Products, Prices, Variants, Stock & Discounts

**A Shopify scraper that exports every product from any Shopify store** — title, price, compare-at (original) price, discount %, variants with SKU and stock status, images, vendor, product type, tags and dates — into CSV, Excel, JSON or Google Sheets. Scrape a whole store or a single collection, and turn on **monitor mode** to get only **new products, price changes and restocks** since your last run.

💸 **$0.70 per 1,000 products. No start fee.** In monitor mode you pay only for new or changed products.

### Why this Shopify scraper?

| | This Actor | Typical Shopify scrapers |
|---|---|---|
| Price | **$0.70 / 1,000 products**, no start fee | $1+ / 1,000, often plus start or enrichment fees |
| Monitor mode (new / changed only) | ✅ price drops, discounts, restocks, new launches — pay only for changes | ❌ full re-scrape every time |
| Collections | ✅ paste a collection URL to scrape only that collection | partial |
| Discount fields | `onSale`, `maxDiscountPercent`, `compareAtPrice` computed for you | raw variant data |
| Store info | store name & currency from the store's public `meta.json` | — |
| Speed / cost | Shopify's public product JSON (250 products per request), no browser, no proxy | browser-based or proxies |

### Use cases

- **Competitor price monitoring** — schedule daily runs in monitor mode and get alerted to price drops, new discounts and restocks.
- **Ecommerce market research** — product catalogs, price ranges, vendors, product types and launch dates of DTC brands.
- **Dropshipping & product research** — find trending products, bestselling categories and sale items.
- **Retail analytics & MAP compliance** — track how resellers price your products.
- **Catalog migration & feeds** — export a store's catalog (with variants, SKUs and images) to CSV or JSON.
- **AI agents** — a fast, cheap tool to answer "what does this store sell and at what price?".

### How to use

1. Paste store domains (`allbirds.com`) or collection URLs (`https://store.com/collections/sale`), one per line.
2. Optionally set filters: only in stock, only discounted, title keywords, max products.
3. Click **Start** and download the **Products** table — or schedule it with monitor mode on.

#### Example input

```json
{
  "stores": ["allbirds.com", "kyliecosmetics.com"],
  "includeVariants": true,
  "onlyNewOrChanged": false
}
```

#### Example output (real result, shortened)

```json
{
  "store": "allbirds.com",
  "storeName": "Allbirds",
  "currency": "USD",
  "productId": 7292464824400,
  "title": "Women's Wool Cruiser - Port (Port Sole)",
  "url": "https://www.allbirds.com/products/womens-wool-cruiser-port-port-sole",
  "vendor": "Allbirds",
  "productType": null,
  "tags": [
    "11/3/26 DROP",
    "allbirds::cfId => color-f67ac276729fd74d9edd3ad836f79a7e"
  ],
  "price": 120,
  "priceMax": 120,
  "compareAtPrice": null,
  "onSale": false,
  "maxDiscountPercent": null,
  "available": true,
  "variantsCount": 13,
  "variantsAvailable": 3,
  "options": [
    {
      "name": "Size",
      "values": [
        "5",
        "5.5",
        "6",
        "..."
      ]
    }
  ],
  "imageUrl": "https://cdn.shopify.com/s/files/1/1104/4168/files/A12858W090-PORT_SIDE_TRANSPARENT.png?v=1793836076",
  "createdAt": "2026-02-04T17:37:18-08:00",
  "scrapedAt": "2026-11-13T14:28:54+00:00",
  "variants": [
    {
      "variantId": 41990816137296,
      "title": "5",
      "sku": "A12858W050",
      "price": 120,
      "compareAtPrice": null,
      "available": false,
      "option1": "5",
      "option2": null,
      "option3": null,
      "grams": 1000,
      "requiresShipping": true
    }
  ]
}
```

Fields: `store, storeName, currency, productId, title, handle, url, vendor, productType, tags, price, priceMax, compareAtPrice, onSale, maxDiscountPercent, available, variantsCount, variantsAvailable, options, imageUrl, images, description (optional), variants (optional), createdAt, publishedAt, updatedAt, changeType (monitor mode), scrapedAt`.

The **RUN_SUMMARY** record has a per-store report (store name, published product count, products returned, errors).

### Monitor mode (price & stock tracking)

Turn on `onlyNewOrChanged` and schedule the task (e.g. daily). The first run returns all products; later runs return only:

- `changeType: "new"` — products launched since the last run
- `changeType: "changed"` — price, compare-at price or stock changed

Use different `monitorId` values for independent monitors. Connect the run to Slack, email, Google Sheets, Zapier, Make or n8n to get alerts.

### Pricing

Pay-per-event: **$0.0007 per product returned** ($0.70 per 1,000). No start fee. Stores that fail or aren't Shopify are free and listed in the run summary. Set a maximum cost per run and the Actor stops at your budget.

### Responsible use

- Reads only the **public product JSON that Shopify storefronts publish** (`/products.json`, `/meta.json`) — the same data shown to every visitor.
- **Respects robots.txt**, sends at most 1 request per second per store by default, backs off on HTTP 429, and **never bypasses bot protection, logins or password pages**. Stores that block access are skipped and reported.
- No customer or personal data — product catalog data only.

### Limitations

- Works with Shopify stores only. Some stores disable or block the public product JSON; those are reported in the run summary (not charged).
- Exact inventory quantities and sales numbers are not public; you get availability per variant.

### FAQ

**How do I know if a site uses Shopify?** Just try it — non-Shopify sites are reported in the run summary for free. Or use our [Contact Details Scraper](https://apify.com/datafeedlab/contact-details-scraper), which detects the ecommerce platform of any website.

**Can I scrape only one collection?** Yes, paste the collection URL.

**Can I get alerts on price drops?** Yes — monitor mode + an Apify schedule + a Slack/email integration.

### More Actors by DataFeed Lab

ToS-compliant data Actors for growth, product and research teams. All are callable from the Apify API, integrations, or [Apify's MCP server](https://mcp.apify.com) for AI agents.

- [Greenhouse Jobs Scraper](https://apify.com/datafeedlab/ats-jobs-scraper) — Official Greenhouse, Lever, Ashby, Workable, SmartRecruiters and Recruitee job APIs, with salary, remote flag and a new-jobs monitor. $1 per 1,000 jobs.
- [WHOIS Lookup](https://apify.com/datafeedlab/bulk-domain-intel) — Bulk WHOIS/RDAP domain age and expiry, DNS, SPF/DMARC and SSL checker. $1 per 1,000 domains.
- [Contact Details Scraper](https://apify.com/datafeedlab/contact-details-scraper) — Company emails, phones, social profiles, contact forms and tech stack (no personal emails). $2 per 1,000 sites with contacts.
- [Tech Stack Detector](https://apify.com/datafeedlab/tech-stack-detector) — BuiltWith alternative: CMS, Shopify, analytics, pixels and hosting. $1 per 1,000 sites.
- [App Store Reviews Scraper](https://apify.com/datafeedlab/app-store-reviews) — Official Apple iOS reviews and metadata. $0.08 per 1,000 rows.
- [OpenStreetMap POI Scraper](https://apify.com/datafeedlab/osm-places) — Local business leads via the official Overpass API. $0.50 per 1,000 places.
- [Hacker News Scraper](https://apify.com/datafeedlab/hacker-news-scraper) — Stories, search, Ask HN and parsed Who is Hiring jobs. $0.10 per 1,000 items.
- [Website to Markdown Crawler](https://apify.com/datafeedlab/website-markdown-crawler) — HTML to Markdown for AI and RAG, robots.txt respected. $1 per 1,000 pages.

# Actor input Schema

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

One per line. Store domains (`allbirds.com`), store URLs, or collection URLs (`https://www.allbirds.com/collections/mens`) to scrape only that collection. Works with custom domains and \*.myshopify.com.

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

0 or empty = all products.

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

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

## `includeVariants` (type: `boolean`):

Add every variant (size/color) with SKU, price, compare-at price and availability.

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

Add the product description as plain text (up to 5,000 characters).

## `maxImagesPerProduct` (type: `integer`):

Number of image URLs kept per product.

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

Skip products where no variant is available.

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

Only products with a compare-at price above the current price.

## `titleKeywords` (type: `array`):

Only products whose title contains any of these words (case-insensitive).

## `onlyNewOrChanged` (type: `boolean`):

Remember products between runs and return (and charge) only new products and products whose price, compare-at price or stock changed. Schedule daily for price/stock monitoring.

## `monitorId` (type: `string`):

Name of the monitor state. Use different IDs for independent monitors.

## `requestDelaySecs` (type: `number`):

Polite rate limit per store. Each request returns up to 250 products.

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

Number of stores scraped at the same time.

## Actor input object example

```json
{
  "stores": [
    "allbirds.com",
    "kyliecosmetics.com"
  ],
  "includeVariants": true,
  "includeDescription": false,
  "maxImagesPerProduct": 5,
  "onlyAvailable": false,
  "onlyOnSale": false,
  "onlyNewOrChanged": false,
  "monitorId": "default",
  "requestDelaySecs": 1,
  "maxConcurrency": 10
}
```

# Actor output Schema

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

Products (default dataset, 'Products' table view).

## `runSummary` (type: `string`):

Counts and per-store report (product counts, errors).

# 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": [
        "allbirds.com",
        "kyliecosmetics.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("datafeedlab/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": [
        "allbirds.com",
        "kyliecosmetics.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("datafeedlab/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": [
    "allbirds.com",
    "kyliecosmetics.com"
  ]
}' |
apify call datafeedlab/shopify-products-scraper --silent --output-dataset

```

## MCP server setup

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