# WooCommerce Store Products & Prices (`kacperor/woocommerce-store-products`) Actor

Export products, prices, sale flags, stock status and categories from any WooCommerce shop through its public Store API. No login, no browser, no proxy.

- **URL**: https://apify.com/kacperor/woocommerce-store-products.md
- **Developed by:** [Kacper Kruszka](https://apify.com/kacperor) (community)
- **Categories:** E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$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 Store Products & Prices

Export products from any WooCommerce shop — names, prices, sale prices, stock status, ratings, categories, attributes and images — as JSON, CSV or Excel. It reads the shop's public Store API (the same one its own cart uses), so it needs no login, no browser and no proxy.

### What you can do with it

- **Price and promotion tracking** — schedule it and compare `price`, `regularPrice` and `onSale` between runs.
- **Competitor research** — full catalogue with categories, brands, tags and ratings.
- **Stock monitoring** — `inStock`, `onBackorder` and `lowStockRemaining` for every product.
- **Product feeds** — clean, flat rows with image URLs and plain-text descriptions.

### Input

| Field | What it does |
|---|---|
| `storeUrls` | One or more shops: `https://shop.example.com` |
| `maxProductsPerStore` | `0` = everything |
| `search` | Optional: only products matching a phrase |
| `category` | Optional: numeric category ID |
| `onSaleOnly` | Only discounted products |
| `orderBy` | `date`, `modified`, `price`, `popularity`, `rating`, `title` |
| `includeDescription` | Adds the long description as plain text |

### Output

Real output from a run on 16 Nov 2026 (long text and lists shortened here).

```json
{
  "store": "https://woocommerce.com",
  "productId": 18734007023246,
  "name": "Product Bulk Remover",
  "slug": "product-bulk-remover",
  "url": "https://woocommerce.com/products/product-bulk-remover/",
  "type": "simple",
  "sku": null,
  "currency": "USD",
  "price": 19,
  "regularPrice": 19,
  "salePrice": null,
  "priceMin": null,
  "priceMax": null,
  "onSale": false,
  "inStock": true,
  "onBackorder": false,
  "lowStockRemaining": null,
  "averageRating": 0,
  "reviewCount": 0,
  "categories": [
    "WooCommerce extensions",
    "Store management"
  ],
  "tags": [],
  "brands": [],
  "attributes": [],
  "variationCount": 0,
  "images": [
    "https://woocommerce.com/wp-content/uploads/2026/11/icon-160x160-3.png"
  ],
  "shortDescription": "Safely scan, review, trash, restore, and permanently delete WooCommerce products in background batches with filters and previews."
}
```

Prices are converted from the API's minor units to normal amounts (`2490` → `24.9`). A `SUMMARY` record lists each shop with the number of products read and the total the shop reports.

### Good to know

- Works on shops running WooCommerce with the Store API enabled (the default since WooCommerce 6). Shops that switch it off or block automated traffic are reported in the log and in `SUMMARY`, and you are not charged for them.
- Variable products are returned as one row with their price range (`priceMin`, `priceMax`) and attribute values.
- You pay per saved product.

# Actor input Schema

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

WooCommerce shops to export, e.g. https://shop.example.com.

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

0 = all products.

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

Only products matching this phrase.

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

Numeric category ID of the shop.

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

Return discounted products only.

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

Sort order requested from the shop.

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

Adds the long description as plain text (the short one is always included).

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

How many shops are read at the same time.

## Actor input object example

```json
{
  "storeUrls": [
    "woocommerce.com"
  ],
  "maxProductsPerStore": 0,
  "onSaleOnly": false,
  "orderBy": "date",
  "includeDescription": false,
  "maxConcurrency": 5
}
```

# Actor output Schema

## `results` (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 = {
    "storeUrls": [
        "woocommerce.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kacperor/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 = { "storeUrls": ["woocommerce.com"] }

# Run the Actor and wait for it to finish
run = client.actor("kacperor/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 '{
  "storeUrls": [
    "woocommerce.com"
  ]
}' |
apify call kacperor/woocommerce-store-products --silent --output-dataset

```

## MCP server setup

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