# WooCommerce Store Products and Prices (`politecrawl/woocommerce-products`) Actor

Saves the products of WooCommerce stores: name, SKU, price, regular price, currency, stock, categories, images and product page, read from each store's public Store API.

- **URL**: https://apify.com/politecrawl/woocommerce-products.md
- **Developed by:** [Umberto Vignetta](https://apify.com/politecrawl) (community)
- **Categories:** E-commerce
- **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 results

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 and Prices

### What it does

Give it the addresses of WooCommerce stores and it saves their products: name, SKU, price,
regular price, sale, currency, stock status, categories, images and the product's page. It
reads each store's public Store API (`/wp-json/wc/store/v1/products`), the product list
WooCommerce serves to every visitor, so each run is a snapshot of what the stores show that
day.

Run it once for an export, or on a schedule to follow stores over time:

- **Daily price and stock watching.** Run it every morning on the stores you compete with.
  Each run saves that day's prices, sale prices and stock status, to compare with the day
  before.
- **Catalog exports.** Export a store's products to CSV, Excel or JSON, or send them to
  Google Sheets.
- **Feeding a comparison site.** Read the latest run's products through the Apify API and
  refresh your listings from them.
- **Store migrations.** Before and after a move, list a store's products with their SKUs,
  prices, categories, images and page addresses, and check that nothing went missing.

### Run it on a schedule

1. Fill in the input and save it as a task, so every run reads the same stores.
2. In Apify Console, open Schedules and create a schedule for the task: daily for price and
   stock watching, weekly for a catalog export.
3. Send the results where you work, from the task's Integrations tab or the API:
   - **Google Sheets:** add each run's products to a sheet with the Zapier or Make
     integration, or download the run's results as CSV and import them.
   - **Make and Zapier:** start a scenario or a Zap when a run finishes.
   - **Webhooks:** Apify calls your own address when a run succeeds or fails.
   - **The API:** read the latest run's products as JSON, CSV or Excel from your own code.

### Input

- `stores`: the home page addresses of WooCommerce stores, one per line, such as
  `https://shop.example`. A store that lives in a folder keeps it, such as
  `https://example.com/shop`. The stores are read in the order given. A run without any
  store fails and says so.
- `maxItems` (default 100): the most products the run saves across all the stores, and so
  the most results it charges. Raise it to export a bigger catalog.

An input for a daily watch of two stores, where `https://shop.example` stands for a store you
follow:

```json
{
  "stores": ["https://mercantile.wordpress.org", "https://shop.example"],
  "maxItems": 500
}
```

### Sample output

One product from an evaluation run on the default store:

```json
{
  "store": "https://mercantile.wordpress.org",
  "name": "Wabuu Halloween Tote",
  "sku": "A8C-104",
  "permalink": "https://mercantile.wordpress.org/product/wabuu-halloween-tote/",
  "price": 18,
  "regularPrice": 18,
  "onSale": false,
  "currency": "USD",
  "inStock": true,
  "stock": "in stock",
  "categories": ["Bags & Travel", "Accessories"],
  "images": ["https://mercantile.wordpress.org/wp-content/uploads/2026/10/daily-grind-super-size-natural-wapuu.jpg"]
}
```

- `store`: the store address the product came from.
- `name`: the product's name.
- `sku`: the store's stock-keeping unit for it, or an empty string when it has none.
- `permalink`: the address of the product's page.
- `price`: the price now, in the store's currency. For a product with options, such as
  sizes, it is the lowest price. `null` when the store shows no price.
- `regularPrice`: the price without a sale.
- `onSale`: `true` while the product is on sale.
- `currency`: the currency's three-letter code.
- `inStock`: `true` when the product can be ordered now.
- `stock`: `in stock`, `on backorder` or `out of stock`.
- `categories`: the names of the product's categories.
- `images`: the addresses of the product's images.

The Output tab shows the products as a table, and the results download as JSON, CSV, Excel,
XML or HTML.

### Price

One `result` event is charged for each product saved to the dataset, and nothing else. A
store that does not answer, has no Store API or refuses is skipped and not charged. A
scheduled run is charged the same way. The price per result is shown on the Actor's page.

### Limits

- It reads only the stores it is given, one request a second, with plain requests from
  Apify's servers and no proxy. It sees what any visitor without an account sees: published
  products, at the prices the store shows to the public.
- It needs the store's Store API, which WooCommerce stores have on unless the owner turned
  it off. A store without it is skipped and named in the run's log.
- A store that refuses (HTTP 401, 403 or 429) or answers with a CAPTCHA or challenge page is
  skipped at once: it is asked nothing more, with no retry and no workaround, and the run
  goes on with the next store. The run's status message names each store skipped this way,
  such as `Skipped 1 store that refused: 403 from shop.example.` Only when every store
  refused does the run fail, with the status message `blocked: <status> from <host>`.
  Products saved before a refusal stay in the dataset.
- Each run is a snapshot. It does not compare runs or say what changed: compare the runs'
  results yourself, for example in a sheet.
- A product with options is saved once, with its lowest price; its options are not listed
  one by one. Descriptions and stock counts are not saved.
- It reads no reviews, customers or orders, and stores no data about people.

### FAQ

**Does it need a login or an API key for the stores?**
No. The Store API is public: WooCommerce serves it to every visitor of the store. The tool
never logs in.

**How do I see what changed since yesterday?**
Run it daily on a schedule and send each run's products to a sheet or a database. Match a
product across days by its `permalink`, then compare its `price`, `onSale` and `stock`.

**Why did a store give no products?**
Its Store API may be off, the address may not be its home page, or it refused. The run's log
names each store and what it answered.

**What happens when a store blocks the run?**
That store is skipped at once and the run goes on with the next one. The status message names
it. If every store refuses, the run fails with `blocked: ...`.

**Can it read a shop that does not run WooCommerce?**
No. It reads only WooCommerce's Store API. A shop without one is skipped and not charged.

**May I read any WooCommerce store?**
The tool reads only what a store already shows every visitor, one request a second, and
stops asking a store that refuses. A store's own terms still apply: check them for the
stores you follow.

# Actor input Schema

## `stores` (type: `array`):

Home page addresses of WooCommerce stores, one per line, such as https://shop.example. Keep the folder of a store that lives in one, such as https://example.com/shop.

## `maxItems` (type: `integer`):

The run saves at most this many products, across all the stores. Each product saved is one charged result.

## Actor input object example

```json
{
  "stores": [
    "https://mercantile.wordpress.org"
  ],
  "maxItems": 100
}
```

# Actor output Schema

## `dataset` (type: `string`):

No description

## `run` (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 = {
    "stores": [
        "https://mercantile.wordpress.org"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("politecrawl/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 = { "stores": ["https://mercantile.wordpress.org"] }

# Run the Actor and wait for it to finish
run = client.actor("politecrawl/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 '{
  "stores": [
    "https://mercantile.wordpress.org"
  ]
}' |
apify call politecrawl/woocommerce-products --silent --output-dataset

```

## MCP server setup

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