# WooCommerce Products Scraper – Prices, Stock, Variants (API) (`fast_data_asap/woocommerce-store-products`) Actor

Scrape products from any WooCommerce shop via the public Store API – no browser. Prices, sale prices, currency, stock, SKU, categories, brand, images, attributes and variations as flat rows. Search, category and on-sale filters, price & stock change tracking. Pay per product.

- **URL**: https://apify.com/fast_data_asap/woocommerce-store-products.md
- **Developed by:** [Fast Data](https://apify.com/fast_data_asap) (community)
- **Categories:** E-commerce, 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.49 / 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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## WooCommerce Products Scraper – prices, stock, variants (Store API, no browser)

Get the product catalogue of any WooCommerce shop as clean, flat rows: name, price, regular and sale price, currency, stock status, SKU, categories, tags, brand, images, attributes, variations, rating and a short description. The actor reads the shop's **public WooCommerce Store API** (the same JSON the shop's own cart and product blocks use), so there is no browser, no HTML parsing and no login.

### What it does

For every shop URL you give it, the actor:

1. Reads `robots.txt` and skips API URLs the shop disallows.
2. Calls `https://<shop>/wp-json/wc/store/v1/products` and, if pretty permalinks are off or `/wp-json/` is blocked, falls back to `https://<shop>/?rest_route=/wc/store/v1/products`.
3. Pages through the catalogue (100 products per request) with your filters: search term, category, on sale only, in stock only and sort order.
4. Converts prices from WooCommerce's minor units (cents) into normal numbers using the shop's `currency_minor_unit`, so `"750"` becomes `7.50`.
5. Returns one flat row per product. If you turn on variations, each size or colour variant gets its own row too.

If a site is not WooCommerce, has the Store API turned off, blocks the API in robots.txt or shows a bot-protection challenge, you get **one free status row** (`not_woocommerce`, `api_disabled`, `blocked_by_robots`, `blocked`, `category_not_found`, `no_products` or `error`) and the run carries on with the other shops.

### Who it is for

- **Price and assortment monitoring.** Track competitors' prices, discounts and stock on WooCommerce shops, every day if you like.
- **E-commerce agencies and marketplaces.** Import or audit a client's or supplier's catalogue without asking for API keys.
- **Market research and lead qualification.** See what a shop sells, in which categories, at which price points.
- **AI agents and RAG pipelines.** Flat JSON with plain-text descriptions works well in LLM tools, spreadsheets and databases.

### Why it is better than the alternatives

- **No browser, no HTML scraping.** It uses the official public JSON API that ships with WooCommerce, so it is fast (the default input finishes in about 4 seconds), cheap to run and does not break when a theme changes.
- **Accurate prices.** Prices come straight from WooCommerce in minor units and are converted with the shop's own decimal setting. You also get the price range of variable products and the regular price next to the sale price.
- **Works on more shops.** It falls back to `?rest_route=` when pretty permalinks are off or `/wp-json/` is disallowed, follows redirects to the real shop host and supports shops in a sub-folder (`https://example.com/store`).
- **Honest about failures.** Shops without WooCommerce or with the API disabled are reported clearly, and you don't pay for them.
- **Built-in change tracking.** Turn on `trackChanges` and every row tells you whether the price or the stock changed since the last run.
- **Polite.** It respects robots.txt, fetches a shop's pages one after another with a short pause, and retries HTTP 429/5xx with back-off and `Retry-After`.

### Input example

```json
{
  "shopUrls": ["https://blueprintcoffee.com", "https://websitedemos.net/brandstore-02"],
  "maxProductsPerShop": 10,
  "search": "",
  "category": "coffee",
  "onSaleOnly": false,
  "inStockOnly": false,
  "orderBy": "popularity",
  "includeVariations": false,
  "trackChanges": true,
  "stateKey": "my-coffee-monitor"
}
```

- `shopUrls` (required): shop domains or URLs. Product or category URLs are cut back to the shop's base.
- `maxProductsPerShop`: products per shop, `0` = whole catalogue (default `10`). Variation rows come on top.
- `search`: keyword, using WooCommerce's own product search.
- `category`: category slug, name or ID; separate several with commas. If it doesn't exist, the free status row lists the shop's categories.
- `onSaleOnly`, `inStockOnly`: filters run by the shop itself.
- `orderBy`: `date`, `popularity`, `rating`, `price`, `title`, `menu_order` or empty for the shop's default order.
- `includeVariations`: adds one row per variation with its own price, SKU, stock and `variationAttributes` (for example `Color: Red`).
- `trackChanges` and `stateKey`: remember prices and stock in a named key-value store and compare them on the next run.
- Advanced: `respectRobotsTxt` (default `true`), `maxConcurrency` (shops in parallel, default 3), `requestDelaySecs` (default 0.3), `maxRetries` (default 3), `proxyConfiguration` (optional, usually not needed).

### Output example

This is a real row from a test run with the default input:

```json
{
  "shop": "https://blueprintcoffee.com",
  "status": "ok",
  "productId": 175647,
  "parentId": null,
  "name": "Dog Pack Crewneck",
  "slug": "dog-pack-crewneck",
  "url": "https://blueprintcoffee.com/product/dog-pack-crewneck/",
  "sku": "mDogBoneDogPackT-shirt",
  "type": "variable",
  "variationAttributes": null,
  "price": 44,
  "regularPrice": 44,
  "salePrice": null,
  "priceMin": null,
  "priceMax": null,
  "currency": "USD",
  "currencySymbol": "$",
  "onSale": false,
  "inStock": true,
  "stockStatus": "in-stock",
  "stockText": null,
  "lowStockRemaining": null,
  "isPurchasable": true,
  "averageRating": 0,
  "reviewCount": 0,
  "categories": ["Gift Ideas", "Merchandise"],
  "tags": [],
  "brand": "Blueprint Coffee",
  "imageUrl": "https://blueprintcoffee.com/wp-content/uploads/2026/10/dog-pack-crewneck-back.jpg",
  "images": [
    "https://blueprintcoffee.com/wp-content/uploads/2026/10/dog-pack-crewneck-back.jpg",
    "https://blueprintcoffee.com/wp-content/uploads/2026/10/dog-pack-crewneck-front.jpg",
    "https://blueprintcoffee.com/wp-content/uploads/2026/10/crewneck-back-02-square.jpg"
  ],
  "attributes": "Size: Small, Medium, Large, XL, 2XL",
  "variationCount": 5,
  "shortDescription": "Unisex fleece crewneck screenprinted on the front and back.",
  "scrapedAt": "2026-11-04T11:27:19Z"
}
```

With `includeVariations: true` a variable product is followed by its variations, for example `{"productId": 4122, "parentId": 375, "name": "DNK Black Shoes", "variationAttributes": "Color: Red", "price": 195, ...}`.

With `trackChanges: true` each row also has `isNew`, `priceChanged`, `previousPrice`, `stockChanged` and `previousStockStatus`. The dataset view **Price & stock changes** shows them side by side.

A shop that is not WooCommerce returns a free row like this:

```json
{"shop": "https://wordpress.org", "status": "not_woocommerce", "error": "WordPress REST API answers, but no WooCommerce Store API route exists (WooCommerce not installed, too old, or the Store API is disabled).", "scrapedAt": "2026-11-04T11:27:42Z"}
```

`brand` comes from WooCommerce Brands, or from a `Brand`/`pa_brand` attribute when the shop has no brand taxonomy. `priceMin`/`priceMax` are filled when a variable product's variations have different prices. `lowStockRemaining` is only shown when the shop exposes it.

### Pricing

Pay per event: **$0.0007 per product row** ($0.70 per 1,000 products). Variation rows count as products. Status rows for shops that are not WooCommerce, blocked, empty or failed are **free**. You can cap the cost with the run's maximum-charge setting; the actor stops cleanly when the limit is reached.

### Use it via API, n8n, Make or MCP

**API (run synchronously and get the items):**

```bash
curl -X POST "https://api.apify.com/v2/acts/fast_data_asap~woocommerce-store-products/run-sync-get-dataset-items?token=<YOUR_APIFY_TOKEN>" \
  -H "Content-Type: application/json" \
  -d '{"shopUrls": ["https://blueprintcoffee.com"], "maxProductsPerShop": 50, "onSaleOnly": true}'
```

**Python:**

```python
from apify_client import ApifyClient

client = ApifyClient("<YOUR_APIFY_TOKEN>")
run = client.actor("fast_data_asap/woocommerce-store-products").call(
    run_input={"shopUrls": ["https://blueprintcoffee.com"], "maxProductsPerShop": 50}
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["name"], item.get("price"), item.get("currency"))
```

**n8n / Make / Zapier:** use the Apify node or app, pick `fast_data_asap/woocommerce-store-products`, pass the JSON input above and read the dataset items. For a price monitor, schedule the actor daily with `trackChanges: true` and keep the rows where `priceChanged` or `stockChanged` is true.

**MCP (Claude, Cursor and other AI agents):** add `https://mcp.apify.com?tools=fast_data_asap/woocommerce-store-products` as an MCP server and ask, for example, "List the 20 cheapest in-stock products of blueprintcoffee.com".

### Limits and fair use

- The actor only reads public product data that the shop's Store API serves to every visitor. It doesn't log in, read customer or order data, or get around captchas or bot protection.
- Some shops turn off or restrict the Store API, or put the whole site behind a bot challenge. Those shops get a free status row.
- `search` uses WooCommerce's own search, so results match what the shop's search box would return.

# Actor input Schema

## `shopUrls` (type: `array`):

Shop home page URLs or domains, e.g. https://blueprintcoffee.com. Shops installed in a sub-folder work too (https://example.com/store).

## `maxProductsPerShop` (type: `integer`):

How many products to return per shop (0 = whole catalogue). Variations (if enabled) come on top.

## `search` (type: `string`):

Optional. Only products matching this keyword (WooCommerce's own product search).

## `category` (type: `string`):

Optional. Category slug (e.g. coffee), name or numeric ID; several separated by commas.

## `onSaleOnly` (type: `boolean`):

Return only products that are currently discounted.

## `inStockOnly` (type: `boolean`):

Return only products that are in stock.

## `orderBy` (type: `string`):

Order in which products are fetched (matters when you limit the number of products).

## `includeVariations` (type: `boolean`):

For variable products also return each variation (size, colour, ...) with its own price, SKU and stock. Each variation row counts as one product.

## `trackChanges` (type: `boolean`):

Compare with the previous run and add isNew, priceChanged, previousPrice, stockChanged and previousStockStatus. Ideal for scheduled runs.

## `stateKey` (type: `string`):

Name of the key-value store that remembers the last prices. Use different names for independent monitors.

## `respectRobotsTxt` (type: `boolean`):

Skip API URLs that the shop's robots.txt disallows.

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

How many shops are processed at the same time. Pages of one shop are always fetched one after another.

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

Polite pause between page requests to the same shop.

## `maxRetries` (type: `integer`):

Retries on HTTP 429/5xx and network errors (with back-off and Retry-After).

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

Optional. Not needed for most shops – the Store API is public.

## Actor input object example

```json
{
  "shopUrls": [
    "https://blueprintcoffee.com",
    "https://websitedemos.net/brandstore-02"
  ],
  "maxProductsPerShop": 10,
  "onSaleOnly": false,
  "inStockOnly": false,
  "orderBy": "",
  "includeVariations": false,
  "trackChanges": false,
  "stateKey": "woocommerce-products-state",
  "respectRobotsTxt": true,
  "maxConcurrency": 3,
  "requestDelaySecs": 0.3,
  "maxRetries": 3,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# 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 = {
    "shopUrls": [
        "https://blueprintcoffee.com",
        "https://websitedemos.net/brandstore-02"
    ],
    "maxProductsPerShop": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("fast_data_asap/woocommerce-store-products").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 = {
    "shopUrls": [
        "https://blueprintcoffee.com",
        "https://websitedemos.net/brandstore-02",
    ],
    "maxProductsPerShop": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("fast_data_asap/woocommerce-store-products").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 '{
  "shopUrls": [
    "https://blueprintcoffee.com",
    "https://websitedemos.net/brandstore-02"
  ],
  "maxProductsPerShop": 10
}' |
apify call fast_data_asap/woocommerce-store-products --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fast_data_asap/woocommerce-store-products"
        }
    }
}
```

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/TDASgdH9CEWC2ed9W/builds/ZxGowgq1BCdveeVK3/openapi.json
