# Shopify Product Scraper - Prices, Variants & Stock (`lsdflying/shopify-product-scraper`) Actor

Export products from any Shopify store, collection or product URL: prices, compare-at prices, every variant with SKU, barcode and stock status, images, vendor and tags. Fast JSON mode, keyword search, price & stock monitoring.

- **URL**: https://apify.com/lsdflying/shopify-product-scraper.md
- **Developed by:** [Liang Undef](https://apify.com/lsdflying) (community)
- **Categories:** Automation, E-commerce
- **Features:** Full permissions
- **Stats:** 119 total users, 0 monthly users, 100.0% runs succeeded, 5 bookmarks
- **User rating**: 2.15 out of 5 stars

## Pricing

from $1.00 / 1,000 results

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 Product Scraper – Prices, Variants, SKUs & Stock

Export the **full product catalog of any public Shopify store** – titles, prices, compare-at (sale) prices, every variant with SKU, barcode and stock status, images, vendor, product type and tags – as JSON, CSV, Excel or via API. No login, no Shopify API key, no store access needed.

### What can this Shopify scraper do?

- 🛍️ **Whole store**: paste a store URL (e.g. `https://cadenlane.com`) and get every published product.
- 📂 **One collection**: paste a collection URL (e.g. `https://store.com/collections/sale`).
- 🔗 **Single products**: paste product URLs (e.g. `https://store.com/products/blue-shirt`).
- 🔎 **Keyword search**: set *Search keyword* to scrape only products matching a term in each store.
- 🧩 **All variants**: price, compare-at price, SKU, barcode, options (size/color…) and `available` for every variant – or switch on *One row per variant* to get a flat table.
- ⚡ **Fast and cheap**: catalog mode uses Shopify's public JSON endpoints (250 products per request) instead of a browser.
- 🔁 **Price & stock monitoring**: schedule the Actor (hourly/daily) and compare datasets to track price drops, restocks and new arrivals.

### Use cases

- Competitor price monitoring and MAP / price-drop alerts
- Stock and restock tracking for dropshipping and resellers
- Product research, assortment and trend analysis
- Building product feeds / catalogs for comparison sites and marketplaces
- Feeding product data into AI agents, spreadsheets, BI dashboards or n8n / Make / Zapier workflows

### How to use it

1. Click **Try for free**.
2. Add one or more Shopify store, collection or product URLs.
3. (Optional) Set *Max results*, *Search keyword* or *One row per variant*.
4. Click **Start** and download the data as JSON, CSV, Excel, XML or HTML, or fetch it through the Apify API.

### Input

| Field | Type | Description |
|---|---|---|
| `startUrls` | array | Shopify store, collection or product URLs. **Required.** |
| `q` | string | Optional search keyword (uses a browser; slower). Leave empty for full catalog. |
| `maxItems` | integer | Max results saved in total (0 = no limit). Default 1000. |
| `splitVariants` | boolean | One output row per variant instead of per product. Default `false`. |
| `maxRequestsPerCrawl` | integer | Safety limit on fetched pages. Default 200. |
| `proxyConfiguration` | object | Apify Proxy settings (on by default). |

Example input:

```json
{
  "startUrls": [{ "url": "https://cadenlane.com" }],
  "maxItems": 100,
  "splitVariants": false
}
```

### Output

One record per product (or per variant when `splitVariants` is on). Example (shortened):

```json
{
  "id": 10321118036028,
  "title": "Personalized Kids' Blanket | Lilac Dream",
  "handle": "personalized-kids-blanket-lilac-dream",
  "url": "https://cadenlane.com/products/personalized-kids-blanket-lilac-dream",
  "storeUrl": "https://cadenlane.com",
  "vendor": "PTG",
  "productType": "Blanket",
  "tags": ["blanket", "kids", "purple"],
  "image": "https://cdn.shopify.com/s/files/.../MRS445845771.jpg",
  "images": ["https://cdn.shopify.com/s/files/.../MRS445845771.jpg"],
  "price": 68,
  "maxPrice": 68,
  "compareAtPrice": null,
  "inStock": true,
  "variantsCount": 1,
  "availableVariantsCount": 1,
  "options": [{ "name": "Title", "values": ["Default Title"] }],
  "variants": [{
    "variantId": 50504442544188, "variantTitle": "Default Title",
    "sku": "BLT-BLMK-LILDRE-0-DTO-OS", "barcode": "804887567",
    "price": 68, "compareAtPrice": null, "available": true,
    "option1": "Default Title", "option2": null, "option3": null
  }],
  "descriptionHtml": "<p>...</p>",
  "createdAt": "2026-10-21T10:00:00-04:00",
  "updatedAt": "2026-10-25T08:00:00-04:00",
  "scrapedAt": "2026-10-26T14:00:00.000Z"
}
```

#### Output fields

| Field | Description |
|---|---|
| `title`, `handle`, `url` | Product name, Shopify handle and product page URL |
| `vendor`, `productType`, `tags` | Brand/vendor, product type and tags |
| `price` / `maxPrice` | Lowest / highest variant price (store currency) |
| `compareAtPrice` | Highest "compare at" (original) price – indicates a sale |
| `inStock` | `true` if at least one variant is available (`null` if the store hides stock) |
| `variants[]` | Every variant: id, title, SKU, barcode, price, compare-at price, availability, options, weight, image |
| `image`, `images[]` | Main image and all image URLs |
| `descriptionHtml` | Product description (HTML) |
| `createdAt`, `updatedAt`, `publishedAt` | Shopify timestamps |

With *One row per variant*, each row also contains `variantId`, `variantTitle`, `sku`, `barcode`, `available`, `option1–3`, and `price` / `inStock` refer to that variant.

### Pricing

This Actor uses **pay-per-event** pricing: you pay a small fee per Actor start and per result saved (see the *Pricing* tab for the current price). Platform usage (compute and proxy) is included – there are no other costs. Use *Max results* to cap the cost of a run. Example: 1,000 products ≈ $1.

### FAQ

**Does it work with every Shopify store?**
It works with public Shopify stores that expose the standard `/products.json` endpoint (the vast majority). Password-protected stores or stores that disabled the endpoint return no data; the log says so.

**Why is the stock status `null` in catalog mode for some stores?**
Some stores hide availability in their JSON. Try product URLs (single product mode reads the `.js` endpoint) or keyword search.

**Can I get inventory quantities?**
Shopify does not publish exact quantities publicly; you get `available` per variant.

**Is the currency included?**
Prices are in the store's default currency as returned by Shopify.

**Can I monitor price changes?**
Yes – create a Task, schedule it, and compare `price` / `inStock` between runs (or use Apify integrations / webhooks).

**Is scraping Shopify stores legal?**
The Actor only reads publicly available product data. Make sure your use complies with the store's terms and applicable laws (e.g. GDPR). Contact us via the *Issues* tab if you need help or a feature.

# Actor input Schema

## `startUrls` (type: `array`):

Any public Shopify store. Examples: <code>https://cadenlane.com</code> (whole catalog), <code>https://store.com/collections/sale</code> (one collection), <code>https://store.com/products/handle</code> (one product).

## `q` (type: `string`):

If set, the Actor opens each store's search page in a browser and scrapes only matching products. Slower than the catalog mode. Leave empty to scrape the full catalog / collection.

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

Maximum number of results (products, or variant rows when "One row per variant" is on) saved in total. 0 = no limit. You pay per result, so this also caps your cost.

## `splitVariants` (type: `boolean`):

If enabled, every variant (size/color/...) becomes its own row with its own price, compare-at price, SKU, barcode and stock status. If disabled, you get one row per product with all variants in the "variants" array.

## `maxRequestsPerCrawl` (type: `integer`):

Safety limit on the number of pages fetched. Each catalog request returns up to 250 products.

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

Apify Proxy is used by default to avoid rate limits.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://cadenlane.com"
    }
  ],
  "q": "",
  "maxItems": 100,
  "splitVariants": false,
  "maxRequestsPerCrawl": 200,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "startUrls": [
        {
            "url": "https://cadenlane.com"
        }
    ],
    "maxItems": 100,
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("lsdflying/shopify-product-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 = {
    "startUrls": [{ "url": "https://cadenlane.com" }],
    "maxItems": 100,
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("lsdflying/shopify-product-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 '{
  "startUrls": [
    {
      "url": "https://cadenlane.com"
    }
  ],
  "maxItems": 100,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call lsdflying/shopify-product-scraper --silent --output-dataset

```

## MCP server setup

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