# WooCommerce Products Scraper - Prices & Stock via Store API (`appdata-labs/woocommerce-store-products`) Actor

Get products from any WooCommerce store as clean rows: name, price, sale price, stock, rating, categories, image and URL. Reads the store's documented public Store API, with no browser and no login. Paste a domain. Stores that opt out through robots.txt are skipped, not charged.

- **URL**: https://apify.com/appdata-labs/woocommerce-store-products.md
- **Developed by:** [Kobkoon Janngam](https://apify.com/appdata-labs) (community)
- **Categories:** Agents, MCP servers, E-commerce
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 product returneds

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 and stock via the Store API

**Get the product catalogue of any WooCommerce store as clean rows, with prices in real currency units, stock, rating, categories and image.** For price monitoring, competitor research, market analysis, catalogue imports and AI agents that need a store's products in one call.

**Quick start:** press **Start** with no configuration. It returns 20 products from each of two sample stores. Then paste your own store into `stores`, as a domain (`mercantile.wordpress.org`) or any page URL you are looking at.

### Sample output

| store | name | price | regularPrice | salePrice | currency | inStock | type |
|---|---|---|---|---|---|---|---|
| mercantile.wordpress.org | Blue WordPress Flannel Button-down | 1609 | 1609 | | THB | true | variable |
| mercantile.wordpress.org | Wabuu Halloween Kid Tote | 269 | 269 | | THB | true | simple |
| demos.flatsome.com | All Star Canvas Hi Converse | 29 | 29 | | USD | true | variable |
| demos.flatsome.com | Varanise CN Tee Hilfiger Denim | 15 | 19 | 15 | USD | true | simple |

These rows come from a run on 8 November 2026. The second store is a theme vendor's public demo, so its catalogue is sample data.

Every row also carries `productId`, `url`, `sku`, `priceMin` and `priceMax` (when a variable product spans a price range), `onSale`, `averageRating`, `reviewCount`, `categories`, `imageUrl` and `shortDescription` (up to 500 characters, HTML removed). In that run a row averaged 680 bytes and the largest was 982 bytes, so a hundred products fit in an AI agent's context.

### What you can do with it

- **Monitor competitor prices.** Run on a schedule and compare `price`, `onSale` and `inStock` over time.
- **Find what is on sale** across several stores with `onSaleOnly: true`.
- **Research a niche.** Compare assortment, categories and price points between shops.
- **Move or check a catalogue.** Export a store's public products to JSON, CSV or Excel.
- **Give an AI agent a store's catalogue.** One call answers "what does this shop sell, and for how much?".

### Input

| Field | Default | Notes |
|---|---|---|
| `stores` | two sample stores | Domains or page URLs, up to 200. Each is judged alone: a bad entry is skipped with its reason and the others still run. |
| `maxProductsPerStore` | `20` | Up to 2,000 per store. |
| `search` | empty | The store's own product search. |
| `category` | empty | A slug, id, name or the category page's URL. Separate several with commas. |
| `onSaleOnly` | `false` | Only products the store marks as on sale. |

### Prices

The Store API sends prices as whole numbers in the currency's smallest unit, and each store says how many decimals its currency has. This Actor converts them, so `1899` with two decimals becomes `18.99`, and a store set to zero decimals is not divided by a hundred.

For a variable product, `price` is what the API reports as its current price, and `priceMin` and `priceMax` hold the range when the store sends one. A variable product with nothing purchasable reports `0` with no range; that row has `price: null`, so a price tracker does not read it as free. `salePrice` is filled only on a product that is on sale.

Prices are what the store shows the visitor, so tax display follows the store's settings. Some stores choose a currency by the visitor's location; `currency` always names the one in the row.

### What it reads, and what it leaves alone

This Actor reads **only WooCommerce's public product catalogue API**, `GET /wp-json/wc/store/v1/products`, which [WooCommerce documents](https://developer.woocommerce.com/docs/apis/store-api/resources-endpoints/products/) as unauthenticated and made for public product data. It never touches customer data, orders, carts, checkout or any write endpoint, and it uses no login, cookies, browser or proxies.

**Each store stays in control, and a store can turn this off.** Before any request the Actor reads that store's robots.txt under its own name (`woocommerce-store-products`, with a link to this page) and follows it, including `Crawl-delay`. A store is skipped with a readable reason, and you pay nothing for it, when:

- its robots.txt disallows the API path, or cannot be read;
- the API answers 401, 403 or 404, which is what a store that has turned it off looks like;
- a bot challenge appears. The Actor does not try to get past one;
- the site is not WooCommerce.

Expect some stores in any list to be skipped. In our own test of public shops, several disallowed the path or answered with a challenge. Those stores are not reachable with this Actor, and that is by design.

### Empty results and errors

The `SUMMARY` record in the key-value store lists each store with its status (`ok`, `partial` or `skipped`), how many products it returned, how many match in total, and the reason for any skip. If a store fails after a few pages, the products already returned are kept and paid for, and the store is marked `partial`.

A store that was read but has nothing matching your filters **succeeds with an empty dataset**. If no store can be read at all, the run fails with the reasons in plain words, so a scheduled run never mistakes "blocked" for "no products".

### How it works

Stores are read one after another, and one store's pages in sequence, up to 50 products per request with a pause between pages. Answers of 429 and 5xx are retried with backoff, waiting as long as `Retry-After` asks. Each redirect hop is checked against that host's robots.txt and against private network addresses.

### Pricing

You pay per product returned: **$3 per 1,000 products**. Skipped stores cost nothing. The run respects your spending limit.

### FAQ

**Does it work on Shopify or Magento?** No. Only stores running WooCommerce, and only those that leave the Store API on.

**Why was a store I know runs WooCommerce skipped?** Read its entry in `SUMMARY`. The owner may have disallowed the API in robots.txt, turned the API off, or put a firewall in front of it. This Actor respects all three.

**Does it return product variations?** It returns each product once, with its price range. Individual sizes and colours are not separate rows.

**Can I get reviews or customer details?** No. Rows carry only the rating and review count from the public catalogue.

### Disclaimer

This is an unofficial tool, not affiliated with or endorsed by WooCommerce, Automattic or any store it reads. WooCommerce is a trademark of its owner. Product data belongs to each store; you are responsible for how you use it and for following each store's terms.

# Actor input Schema

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

WooCommerce stores to read: a domain (mercantile.wordpress.org) or any page URL you are looking at (https://shop.example.com/product/blue-hat/). Up to 200 per run. An entry that is not a public website, or a site that is not WooCommerce, is skipped with a reason and not charged; the rest still run.

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

Return at most this many products from each store, in the store's own default order. Up to 2,000 per store. One API request fetches up to 50 products.

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

Optional. Only products matching these words, using the store's own product search, for example "hoodie". Leave empty for all products.

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

Optional. Only products in this category: its slug ("apparel"), numeric id, name, or the category page's URL (https://shop.example.com/product-category/apparel/). Separate several with commas. A category the store does not have returns no products. Leave empty for all categories.

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

Return only products the store marks as on sale. Off returns every product, on sale or not.

## Actor input object example

```json
{
  "stores": [
    "mercantile.wordpress.org",
    "https://demos.flatsome.com/shop/"
  ],
  "maxProductsPerStore": 100,
  "search": "hoodie",
  "category": "apparel",
  "onSaleOnly": true
}
```

# Actor output Schema

## `rows` (type: `string`):

One row per product, across every store that could be read

## `summary` (type: `string`):

Each store's outcome, how many products it returned, and the reason any store was skipped or stopped early.

# 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": [
        "mercantile.wordpress.org",
        "demos.flatsome.com"
    ],
    "maxProductsPerStore": 20,
    "search": "",
    "category": "",
    "onSaleOnly": false
};

// Run the Actor and wait for it to finish
const run = await client.actor("appdata-labs/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 = {
    "stores": [
        "mercantile.wordpress.org",
        "demos.flatsome.com",
    ],
    "maxProductsPerStore": 20,
    "search": "",
    "category": "",
    "onSaleOnly": False,
}

# Run the Actor and wait for it to finish
run = client.actor("appdata-labs/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 '{
  "stores": [
    "mercantile.wordpress.org",
    "demos.flatsome.com"
  ],
  "maxProductsPerStore": 20,
  "search": "",
  "category": "",
  "onSaleOnly": false
}' |
apify call appdata-labs/woocommerce-store-products --silent --output-dataset

```

## MCP server setup

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