# WooCommerce Products Export from the Store API (`forgeloop/woocommerce-products`) Actor

Export products from public stores built on WooCommerce: name, SKU, prices with currency, sale and stock status, categories, tags, attributes, variations, images and ratings. Reads the public Store API. Many stores per run, search and filters. Pay per product.

- **URL**: https://apify.com/forgeloop/woocommerce-products.md
- **Developed by:** [Markus Heiß](https://apify.com/forgeloop) (community)
- **Categories:** E-commerce, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.00 / 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 Export from the Store API

Export the public product catalogue of online stores built on WooCommerce. Enter one or more store URLs and get one row per product: name, SKU, type, prices with currency, sale and stock status, categories, tags, attributes, variations, image URLs, rating and a plain text short description.

Not affiliated with, endorsed or sponsored by WooCommerce or Automattic. WooCommerce is a trademark of Automattic Inc.

### What it does

- **Reads the store's public Store API for WooCommerce stores.** WooCommerce serves its catalogue as JSON at `/wp-json/wc/store/v1/products`, the same API the store's own product blocks use. The Actor pages through it, 100 products per page, until your limit or the end of the catalogue.
- **Filters on the store side:** a search term, a category (slug, ID or category URL), on sale only, in stock only.
- **Clean prices.** The Store API sends prices in minor units ("4400" for 44.00). The Actor converts them to decimal numbers with the right number of decimals per currency and adds the currency code.
- **Attributes and variations.** Attribute names with their values, and every variation with its ID and option values such as size and colour.
- **Clear errors instead of empty runs.** Sites without the Store API, sites that block access with a firewall or bot check, unknown domains and filters without matches each return one item with an `error` message. These items are free.
- **Polite and rule-abiding.** Checks robots.txt before any request to the API and skips stores whose robots.txt disallows it. One request at a time per store, a pause of 1 second between requests, and it waits and retries when a store says "too many requests".
- Plain HTTP, no browser, no login, no API keys.

### Use cases

- **Price monitoring:** track prices, sale prices and stock status of competitors or resellers that sell on WooCommerce. Schedule the Actor and compare runs.
- **Assortment research:** see which categories, brands and product types a store carries and how the range changes.
- **Catalogue checks for your own store:** find products without SKU, without images, without short description or without stock.
- **Lead lists for agencies and suppliers:** see what a store sells and in which currency before you contact the business.
- **Feeds for analytics and AI:** product names, categories, attributes and descriptions as clean text for classification or matching.

### Input

| Field | Description | Default |
|---|---|---|
| Store URLs | Store domains or URLs (`mercantile.wordpress.org`, `https://porterandyork.com`). For a store in a subfolder enter the folder (`https://example.com/store`) | |
| Max products per store | Stop after this many products per store, up to 10,000 | 100 |
| Search term | Only products that match this word in the store's own search | empty |
| Category slug | Only products in this category: slug, numeric ID, comma separated list or category URL. Subcategories are included | empty (all products) |
| On sale only | Only reduced products | off |
| In stock only | Only products in stock | off |
| Parallel stores | Stores read at the same time, 1 to 5 | 2 |

Example, whole catalogues of two stores:

```json
{
  "storeUrls": ["mercantile.wordpress.org", "www.businessbloomer.com"],
  "maxProductsPerStore": 500
}
```

Example, reduced products in stock of one category:

```json
{
  "storeUrls": ["https://mercantile.wordpress.org"],
  "category": "apparel",
  "onSaleOnly": true,
  "inStockOnly": true
}
```

### Output

One dataset item per product:

```json
{
  "store": "https://mercantile.wordpress.org",
  "id": "34907",
  "name": "Flannel Shirt",
  "slug": "blue-wordpress-flannel-button-down",
  "permalink": "https://mercantile.wordpress.org/product/blue-wordpress-flannel-button-down/",
  "sku": null,
  "type": "variable",
  "price": 44,
  "regularPrice": 44,
  "salePrice": null,
  "priceMin": 44,
  "priceMax": 44,
  "currency": "EUR",
  "onSale": false,
  "inStock": true,
  "stockStatus": "instock",
  "stockText": null,
  "purchasable": true,
  "categories": ["Jackets & Shirts"],
  "categorySlugs": ["jackets-shirts"],
  "tags": [],
  "brands": [],
  "images": ["https://mercantile.wordpress.org/wp-content/uploads/2026/11/mp-2026-10-Howdy-51-padded.png"],
  "shortDescription": "The unofficial uniform, made official.",
  "attributes": [{ "name": "Size", "values": ["XS", "SM", "MD", "LG", "XL"], "usedForVariations": true }],
  "variationCount": 2,
  "variations": [
    { "id": "34914", "options": { "Size": "XS" } },
    { "id": "34915", "options": { "Size": "SM" } }
  ],
  "averageRating": null,
  "reviewCount": 0,
  "error": null
}
```

- Prices are decimal numbers in `currency`. `price` is the current price, `regularPrice` the normal price, `salePrice` is set only when `onSale` is true.
- `priceMin` and `priceMax` are the price range of variable and grouped products. For simple products both equal `price`.
- `stockStatus` is `instock`, `outofstock` or `onbackorder`. `stockText` is the store's own stock note, for example "Only 3 left in stock".
- `variations` lists the variation IDs with their option values. A value of `any` means the variation accepts every value of that attribute. Prices per variation are not part of the product list.
- `averageRating` is `null` when the product has no reviews. Reviews themselves and reviewer names are not collected.
- Every item has the same fields. A store that fails returns one item with `error` set and the product fields empty, for example `Not a WooCommerce Store API: https://example.com/wp-json/wc/store/v1/products returned a web page, not product data.` or `Blocked by the site's firewall or bot protection (HTTP 403, challenge page). The Actor does not get around such blocks.`

The dataset has two views: **Overview** (one row per product) and **Variations** (one row per variation). Export as JSON, CSV or Excel, or read it through the Apify API.

### Pricing

Pay per product: 0.001 USD per product. Error items and duplicate products are not charged. Set "Max products per store" and the maximum charge per run in Apify to keep the cost under control.

Each run also has a start fee of 0.00005 USD per GB of memory, which Apify shows as Actor Start.

### Limits

- Only stores built on WooCommerce with the Store API reachable for guests. WooCommerce has shipped it since version 6.x. Some stores switch the REST API off, disallow `/wp-json/` in robots.txt or sit behind a firewall that blocks automated requests; these return an error item.
- Only what the Store API shows to a guest: products that are published and visible in the catalogue. Many stores hide sold out products from the list.
- Prices are the prices a guest sees, with the tax setting of the store. Customer group or B2B prices are not visible.
- No stock quantities beyond the store's own low stock note, no reviews, no per variation prices.
- About 1 to 2 seconds per page of 100 products, so 1,000 products of one store take about 15 to 20 seconds.
- Only public `http` and `https` addresses. Local and private network addresses are refused, also after redirects.

### Data source, permitted use and legal

- **Data source:** the public WooCommerce Store API (`/wp-json/wc/store/v1/products`) that each store serves to every visitor, plus its robots.txt. The Actor reads no customer, cart, checkout or account data and collects no personal data. Reviews and reviewer names are not read.
- **Not affiliated:** This Actor is an independent tool. It is not affiliated with, endorsed or sponsored by WooCommerce, Automattic Inc. or by the stores you read.
- **Snapshot:** Results show the store at the time of the run. We do not guarantee that they are complete, current or correct.
- **For business use:** This Actor is offered to businesses only, not to consumers.
- **Permitted use:** Process only data you are allowed to use, for example your own stores or public product data you have a legitimate reason to analyse. Respect the terms of the stores and the rights in texts and images. Product images and descriptions can be protected by copyright; the Actor returns image links, not image files.
- **Your responsibility:** You choose the stores and decide what happens with the results.
- **No circumvention:** The Actor does not log in, solve captchas or bypass firewalls, bot checks or other access restrictions. Stores whose robots.txt disallows the Store API are skipped.
- **Request volume:** One request at a time per store, a pause of 1 second between requests, and back off when a store asks to slow down. Do not use it to put excessive load on a store.
- **Provider:** forgeloop, Markus Heiss, Austria. [Imprint](https://devhem.github.io/forgeloop-legal/imprint.html), [Privacy Notice](https://devhem.github.io/forgeloop-legal/privacy.html), [Terms of Use](https://devhem.github.io/forgeloop-legal/terms.html).

### Questions and issues

Open an issue on the Actor page.

# Actor input Schema

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

Domains or URLs of stores built on WooCommerce, for example mercantile.wordpress.org or https://porterandyork.com. A missing https:// is added. For a store installed in a subfolder enter the folder, for example https://example.com/store. Format: a list of strings like \["mercantile.wordpress.org", "https://example.com/store"].

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

Stop after this many products per store. Every product is one charged result. The Store API lists up to 100 products per page, so 1,000 products take 10 requests.

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

Optional. Only products that match this word or phrase in the store's own search, for example "hoodie". Empty returns all products.

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

Optional. Only products in this category. Use the slug from the store URL: for https://store.com/product-category/apparel/t-shirts/ enter t-shirts. A numeric category ID or a comma separated list also works. Subcategories are included.

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

Only products that are currently reduced.

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

Only products that are in stock. Many stores hide sold out products from the list anyway.

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

How many stores are read at the same time, 1 to 5. Each store always gets one request at a time with a pause of 1 second between requests.

## Actor input object example

```json
{
  "storeUrls": [
    "mercantile.wordpress.org",
    "www.businessbloomer.com"
  ],
  "maxProductsPerStore": 100,
  "onSaleOnly": false,
  "inStockOnly": false,
  "maxConcurrency": 2
}
```

# Actor output Schema

## `products` (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": [
        "mercantile.wordpress.org",
        "www.businessbloomer.com"
    ],
    "maxProductsPerStore": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("forgeloop/woocommerce-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 = {
    "storeUrls": [
        "mercantile.wordpress.org",
        "www.businessbloomer.com",
    ],
    "maxProductsPerStore": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("forgeloop/woocommerce-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 '{
  "storeUrls": [
    "mercantile.wordpress.org",
    "www.businessbloomer.com"
  ],
  "maxProductsPerStore": 100
}' |
apify call forgeloop/woocommerce-products --silent --output-dataset

```

## MCP server setup

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