# Shopify & WooCommerce Products Scraper - Prices & Stock (`consequential_programmer/shopify-woocommerce-products-scraper`) Actor

Export full product catalogs from any Shopify or WooCommerce store: title, price, sale price, discount, stock, variants, SKU, images, categories and ratings. Auto-detects the platform. Fast HTTP, no browser, no proxy. $0.60 per 1,000 products.

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

## Pricing

from $0.60 / 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 & WooCommerce Products Scraper: Prices & Stock

**Export the full product catalog of any Shopify or WooCommerce store to JSON, CSV or Excel.** Paste store URLs, press Start, and get one clean row per product with price, sale price, discount, stock, variants, SKU, images, categories and ratings. The platform is detected automatically. No login, no API key, no browser and no proxy are needed.

It reads the public catalog JSON the storefront itself uses: Shopify's `/products.json` and WooCommerce's public Store API (`/wp-json/wc/store/v1/products`). That makes it fast and cheap, at **$0.60 per 1,000 products**.

### What you get

For every product:

- 🏷️ **Title, URL, handle/slug, product ID**, brand (vendor) and product type
- 💲 **Price, compare-at / regular price, discount %**, lowest and highest variant price, and **currency**
- 📦 **In-stock flag**, number of variants and a **variants** array (option values, SKU, price, availability)
- 🖼️ **Main image** plus up to 10 image URLs
- 🗂️ **Categories and tags**, and (WooCommerce) **average rating and review count**
- 🕒 Created, updated and published dates (Shopify)
- 📝 Optional plain-text **description**

### Why use this store scraper?

- **Two platforms, one Actor.** Shopify and WooCommerce together power millions of online stores. Mix both in the same run; each store is auto-detected.
- **Whole store, a collection or a category.** Give a homepage for the full catalog, a Shopify `/collections/...` URL or a WooCommerce `/product-category/...` URL for one section.
- **Useful filters:** only in-stock, only on sale, price range and keyword. Filtered-out products are not charged.
- **Low price, no surprises.** $0.60 per 1,000 products. Stores that are blocked or are not Shopify/WooCommerce come back as free error rows.
- **Fast:** up to 250 products per request on Shopify and 100 on WooCommerce. A 1,000-product store usually finishes in seconds at 256 MB memory.

### Use cases

- **E-commerce and DTC brands:** monitor competitor prices, discounts and new launches every day
- **Dropshipping and product research:** find in-stock, discounted products across many stores
- **Agencies and analysts:** build catalog datasets, price indexes and assortment comparisons
- **Feeds and AI:** product data for comparison sites, Google Sheets dashboards, n8n/Make/Zapier automations or RAG pipelines

### How to use it

1. Add one or more stores under **Store URLs** (homepage, bare domain, collection URL or category URL).
2. Set **Max products per store** (0 = whole catalog). This is also your cost cap.
3. Optionally add filters (in stock, on sale, price range, keyword), then click **Start**.
4. Download the **Products** view as CSV, Excel or JSON, or use the API, Google Sheets, Make, Zapier or n8n.

#### Example input

```json
{
  "storeUrls": [
    "https://www.tentree.com",
    "kith.com/collections/new-arrivals",
    "https://seedsforgenerations.com/product-category/flower/"
  ],
  "maxProductsPerStore": 200,
  "onlyInStock": true,
  "onlyOnSale": false,
  "includeVariants": true,
  "includeDescription": false
}
```

#### Example product item

```json
{
  "type": "product",
  "platform": "shopify",
  "store": "www.tentree.com",
  "storeName": "Tentree",
  "productId": 8143563292858,
  "title": "TreeBlend Winslow T-Shirt",
  "handle": "winslow-t-shirt-deep-burgundy-heather",
  "url": "https://www.tentree.com/products/winslow-t-shirt-deep-burgundy-heather",
  "vendor": "tentree",
  "productType": "Womens",
  "tags": ["basic", "best-sellers"],
  "sku": "TCW2455-5597-M",
  "price": 36.0,
  "compareAtPrice": 45.0,
  "priceMin": 36.0,
  "priceMax": 36.0,
  "currency": "USD",
  "onSale": true,
  "discountPercent": 20.0,
  "inStock": true,
  "variantCount": 6,
  "variants": [
    { "id": 44905162735802, "title": "DEEP BURGUNDY HEATHER / XS", "sku": "TCW2455-5597-XS", "price": 36.0, "compareAtPrice": 45.0, "available": false, "options": ["DEEP BURGUNDY HEATHER", "XS"], "grams": 400 }
  ],
  "imageUrl": "https://cdn.shopify.com/s/files/1/2341/3995/files/Burgundy-TreeBlend-Classic-T-Shirt-TCW2455-5597_1.jpg",
  "createdAt": "2025-06-06T10:23:02-07:00",
  "updatedAt": "2026-11-17T14:23:13-07:00",
  "scrapedAt": "2026-11-17T21:23:13+00:00"
}
```

A WooCommerce row has the same fields, plus `categories`, `rating` and `reviewCount`.

### Pricing

Pay per event. You are only charged for products that are actually saved:

| Event | What it is | Price |
| --- | --- | --- |
| `product` | One product row | $0.60 / 1,000 products |
| Actor start | Once per run (set by Apify, scales with memory) | $0.001 |

Example: 5,000 products from 10 stores cost about $3.00. Filtered-out products and failed stores are free.

### Limits

- Works with stores that keep the public catalog endpoints on, which is the default for Shopify and WooCommerce. Some stores switch them off or sit behind a bot wall; those show up as free error rows.
- Shopify's public JSON does not include inventory quantities, only whether each variant is available. WooCommerce's Store API does not expose created/updated dates.
- Prices are the store's default currency and the prices shown to a visitor without a login.
- Other platforms (Magento, BigCommerce, Wix, custom carts) are not supported.

### Legal

This Actor only requests public catalog data that any visitor's browser can load without a login, and it does not collect personal data. You are responsible for how you use the data and for respecting each store's terms.

### FAQ

- **How am I charged?** $0.60 per 1,000 products saved, plus a $0.001 start fee. Stores that fail and products removed by your filters are free.
- **How do I scrape only part of a store?** Use a Shopify collection URL (`/collections/sale`) or a WooCommerce category URL (`/product-category/shoes/`), or the keyword and price filters.
- **What if I leave the input empty?** The Actor falls back to two sample stores, logs a warning, and still writes a dataset (useful for Apify's daily Store test).
- **My store shows an error row. Why?** The store disabled its public catalog JSON, blocks automated requests, or is not on Shopify/WooCommerce. The error message says which.

# Actor input Schema

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

One store per line: a homepage (https://www.tentree.com), a bare domain (kith.com), a Shopify collection URL (https://store.com/collections/sale) or a WooCommerce category URL (https://store.com/product-category/shoes/).

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

Stop after this many products for each store. 0 = the whole catalog. This is also your cost cap: $0.60 per 1,000 products.

## `platform` (type: `string`):

Leave on Auto-detect unless a store is misdetected.

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

Add a variants array (size/colour options, SKU, price, availability) to every product row. Does not change the price.

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

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

## `onlyInStock` (type: `boolean`):

Skip sold-out products. Skipped products are not charged.

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

Keep only discounted products (sale price lower than the regular / compare-at price).

## `minPrice` (type: `integer`):

Keep products priced at or above this amount, in the store's currency. Leave empty for no limit.

## `maxPrice` (type: `integer`):

Keep products priced at or below this amount, in the store's currency. Leave empty for no limit.

## `keyword` (type: `string`):

Keep products whose title, brand, type, tags or categories contain this word (case-insensitive). Leave empty to keep all.

## Actor input object example

```json
{
  "storeUrls": [
    "https://www.tentree.com",
    "https://seedsforgenerations.com"
  ],
  "maxProductsPerStore": 20,
  "platform": "auto",
  "includeVariants": true,
  "includeDescription": false,
  "onlyInStock": false,
  "onlyOnSale": false
}
```

# Actor output Schema

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

No description

## `allItems` (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": [
        "https://www.tentree.com",
        "https://seedsforgenerations.com"
    ],
    "maxProductsPerStore": 20
};

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

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

```

## MCP server setup

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