# WooCommerce Products Scraper (`steadyscrape/woocommerce-products-scraper`) Actor

Scrape every product of any WooCommerce store: prices, sale prices, stock, SKUs, categories, tags, attributes, variations with their own prices, and images, from the shop's public Store API. Shop, category or product links, or a lead dataset. Export to JSON, CSV or Excel, or via API.

- **URL**: https://apify.com/steadyscrape/woocommerce-products-scraper.md
- **Developed by:** [Steady Scrape](https://apify.com/steadyscrape) (community)
- **Categories:** E-commerce, Lead generation, 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.80 / 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

## WooCommerce Products Scraper

**WooCommerce Products Scraper** exports every product of any WooCommerce store — name, price, regular and sale price, currency, stock status, SKU, categories, tags, brands, attributes, images, weight and dimensions — and, for variable products, **each variation's own price, sale price, SKU and stock**. Give it shop domains, shop / category / tag / product links, or a dataset of websites from a lead scraper. No login, no API key, no browser: it reads the public **WooCommerce Store API** every WooCommerce storefront serves to its own pages. Export the product data to JSON, CSV or Excel, or use it via API.

### What this WooCommerce scraper does

- Reads **all products of a WooCommerce shop**, 100 per request, until the catalog ends.
- Narrows to **one category, one tag or one product** when you give that link (`/product-category/…`, `/product-tag/…`, `/product/…`, renamed bases included).
- Reads **every variation of variable products** (sizes, colours, flavours…) with its own price, sale price, SKU, stock and image, 100 variations per request.
- Gives prices as numbers in the shop's currency (`35` with `"currency": "AUD"`), with `onSale`, `regularPrice` and `salePrice`.
- Takes **thousands of shops at once**, e.g. the `website` field of a Google Maps or lead-generation dataset: sites that are not WooCommerce shops give a free row saying so.
- Obeys each shop's **robots.txt** and its `Crawl-delay`, and never solves a bot check.

### Use cases for WooCommerce product data

- **Price monitoring** of competitors' WooCommerce stores: prices, sale prices and stock, run on a schedule.
- **Catalog migration**: export a WooCommerce catalog with categories, attributes and variations to move it to another platform.
- **Market research**: assortments, price ranges and brands across many shops of a niche.
- **Lead qualification**: run your list of company websites, keep the ones that sell online and see what they sell.
- **Dropshipping and resellers**: watch suppliers' stock and new products.

### Input

| Field | What it does |
|---|---|
| `shops` | Shop domains (`bonsoy.com`) or links: home, shop page, a category, a tag or one product. |
| `datasetId` / `datasetField` | Optional: a dataset of your account whose items carry a website (`website`, `url`, `domain`… found automatically, or name the field). |
| `maxProductsPerShop` | Stop after this many products per line; `0` = all. |
| `includeVariations` | Read every variation's price and stock (default on). |
| `onlyInStock` / `onlyOnSale` | Keep only products in stock / on sale. |

```json
{
    "shops": ["bonsoy.com", "https://www.kinfolk.com/product-category/books/"],
    "maxProductsPerShop": 10,
    "includeVariations": true
}
```

### Output example

One row per product (shortened):

```json
{
    "status": "ok",
    "shopUrl": "https://bonsoy.com",
    "shopName": "Bonsoy Beverage Co.",
    "productId": 5698,
    "name": "Isotonic Hydration",
    "type": "variable",
    "url": "https://bonsoy.com/shop/isotonic/",
    "sku": "04870",
    "shortDescription": "250ml x 12",
    "currency": "AUD",
    "price": 40,
    "regularPrice": 40,
    "salePrice": null,
    "priceMin": 40,
    "priceMax": 40,
    "onSale": false,
    "inStock": true,
    "stockStatus": "in-stock",
    "categories": [{ "id": 111, "name": "Beverages", "slug": "beverages" }, { "id": 127, "name": "Isotonics", "slug": "isotonics" }],
    "tags": ["isotonic"],
    "attributes": [{ "name": "Flavour", "taxonomy": null, "values": ["Lemon", "Pineapple", "White Peach and Yuzu"], "usedForVariations": true }],
    "image": "https://bonsoy.com/wp-content/uploads/2026/01/Cans_Mockup_Front-back_-29Isotonic_WhitePeach-Yuzu_Front-scaled.png",
    "weight": "4 kg",
    "variationCount": 3,
    "variationsRead": true,
    "variations": [
        { "variationId": 5703, "attributes": [{ "name": "Flavour", "value": "Lemon" }], "title": "Flavour: Lemon", "sku": "04871", "price": 40, "regularPrice": 40, "salePrice": null, "inStock": true, "stockStatus": "in-stock" }
    ],
    "unreadFields": []
}
```

A line that gives no products is a free row with `status` and a `reason`: `notWooCommerce`, `storeApiClosed` (the shop closes its API to visitors), `robotsDisallowed`, `blocked`, `unreachable`, `notFound`, `linkNotRecognized`, `noProducts`, `unreadable`, `invalid`, `duplicate`.

### Output fields

| Field | Meaning |
|---|---|
| `productId`, `name`, `slug`, `type`, `url`, `sku` | The product as the shop lists it; `type` is `simple`, `variable`, `grouped`, `external`, `subscription`… |
| `description`, `shortDescription` | As plain text, paragraphs kept. |
| `price`, `regularPrice`, `salePrice`, `priceMin`, `priceMax`, `currency`, `onSale` | Prices in the shop's currency; `salePrice` only when on sale; min/max of a variable product's range. |
| `inStock`, `onBackorder`, `stockStatus`, `stockText`, `lowStockRemaining`, `purchasable` | Stock as the shop shows it ("only 3 left" is `lowStockRemaining: 3`). |
| `categories`, `tags`, `brands`, `attributes` | Taxonomies; attributes with their values and whether variations use them. |
| `image`, `images`, `weight`, `dimensions`, `averageRating`, `reviewCount`, `groupedProductIds` | Media and catalog details. |
| `variations` | Each variation: `variationId`, `attributes`, `title`, `sku`, `price`, `regularPrice`, `salePrice`, `onSale`, `inStock`, `onBackorder`, `lowStockRemaining`, `stockStatus`, `purchasable`, `image`. |
| `variationsRead` | `true` when every variation's price and stock were read. |
| `unreadFields` | Fields the shop sent in a shape this Actor could not read: `null` on that row, never guessed. |
| `shopUrl`, `shopName`, `input`, `scope`, `source`, `datasetItemIndex`, `scrapedAt` | Where the row came from. |

### Pricing

Pay per event, no subscription:

- **US$0.0008 per product** (`product`).
- **US$0.0015 per variable product with every variation read** (`product-with-variations`).

Free rows (no WooCommerce, closed API, robots.txt, refused, not found…) are never charged, and a product is charged once per run even when two of your links list it. Set a maximum cost per run and the Actor stops there with what it read.

### Limits

- Only what the shop publishes through its Store API: hidden, private and password-protected products are not listed, and wholesale or member prices are not shown to visitors.
- Some shops close their REST API to visitors, block `/wp-json/` in robots.txt, or sit behind a bot check: they give a free row and are not read.
- Prices are the ones the shop shows an anonymous visitor (its base country and currency; multi-currency plugins may show another one).
- Each shop is read at its own pace (at most two requests a second, slower when its robots.txt asks), four shops at a time; a page of 100 products took 1–5 s on the shops tried (346 products of three shops in 15 s).

### Is it legal to scrape WooCommerce stores?

This Actor reads only public product data each shop serves to every visitor through its own public API, honours each shop's robots.txt and never logs in or passes a bot check. It collects no personal data. You are responsible for how you use the data and for complying with the terms of the shops you read and the laws that apply to you. This Actor is not affiliated with, endorsed by or sponsored by WooCommerce or Automattic; WooCommerce is a trademark of Automattic Inc.

### FAQ

**How do I know a website is a WooCommerce shop?** Give it anyway: a site that is not one gives a free `notWooCommerce` row.

**Can I scrape only one category?** Yes: give the category link. Tags and single products work the same way.

**Does it need a proxy?** No. A shop refusing the run's IP is asked again from another Apify IP automatically.

# Actor input Schema

## `shops` (type: `array`):

Shop domains (<code>bonsoy.com</code>) or links into a shop: its home or shop page, a category (<code>https://www.kinfolk.com/product-category/books/</code>), a tag, or one product's page. A category, tag or product link reads only that.

## `datasetId` (type: `string`):

Optional: a dataset of your account whose items carry a website (e.g. the results of a Google Maps or lead scraper). Each item's website is read as a shop; sites that are not WooCommerce shops give a free row.

## `datasetField` (type: `string`):

The field holding the website, as a dotted path (<code>website</code>, <code>company.domain</code>). Empty: the first field named like website, url or domain.

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

Stop after this many products from each line. 0 means all of them.

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

For variable products (sizes, colours…), read each variation's own price, sale price, SKU, stock and image. Off: variable products come with the options each variation stands for and the price range only, at the lower product price.

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

Leave out products the shop shows as out of stock or on backorder.

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

Keep only products with a sale price right now.

## Actor input object example

```json
{
  "shops": [
    "bonsoy.com",
    "https://www.kinfolk.com/product-category/books/"
  ],
  "maxProductsPerShop": 10,
  "includeVariations": true,
  "onlyInStock": false,
  "onlyOnSale": false
}
```

# Actor output Schema

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

No description

## `summary` (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 = {
    "shops": [
        "bonsoy.com",
        "https://www.kinfolk.com/product-category/books/"
    ],
    "maxProductsPerShop": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("steadyscrape/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 = {
    "shops": [
        "bonsoy.com",
        "https://www.kinfolk.com/product-category/books/",
    ],
    "maxProductsPerShop": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("steadyscrape/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 '{
  "shops": [
    "bonsoy.com",
    "https://www.kinfolk.com/product-category/books/"
  ],
  "maxProductsPerShop": 10
}' |
apify call steadyscrape/woocommerce-products-scraper --silent --output-dataset

```

## MCP server setup

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