# WooCommerce Products Scraper: Prices, Stock, Images & SKUs (`dheerajitbhu/woocommerce-products-scraper`) Actor

Export every product from any WooCommerce store: name, price, sale price, stock, categories, images, SKU, attributes and URL. Uses the store's public Store API: no login, no browser. Filter by category or keyword.

- **URL**: https://apify.com/dheerajitbhu/woocommerce-products-scraper.md
- **Developed by:** [dheeraj kumar](https://apify.com/dheerajitbhu) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 product scrapeds

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: Prices, Stock, Images & SKUs

Export the full product catalog of **any WooCommerce store** as clean JSON, CSV or Excel: name, price, regular and sale price, discount, stock, categories, tags, images, attributes, SKU and product URL.

It reads the store's **public WooCommerce Store API** (`/wp-json/wc/store/v1/products`), the same API the store's own cart and checkout use. No login, no API keys, no browser, no HTML parsing that breaks when the theme changes.

### What you can use it for

- **Competitor price research:** export a rival store's whole catalog with current and sale prices.
- **Catalog migration and backups:** pull products, images, categories and attributes out of a WooCommerce shop.
- **Product feeds and market research:** build datasets of products, brands and price points across many stores.
- **Sale tracking:** export only on-sale items, with the discount percent already calculated.

Need to track *changes* over time instead (new products, price changes, stock flips)? Use [WooCommerce Catalog Monitor](https://apify.com/dheerajitbhu/woocommerce-catalog-monitor).

### Input

- **Store URLs:** one or more WooCommerce stores, e.g. `https://example-store.com`.
- **Max products per store** (default 1,000): caps reads and cost.
- **Categories** (optional): category slugs, names or numeric IDs, e.g. `sale`, `t-shirts`.
- **Search keyword** (optional): the store's own product search.
- **In-stock only / On-sale only** (optional).
- **Maximum charge per run** (default $5): hard cap; the run stops cleanly before exceeding it.

#### Example input

```json
{
  "storeUrls": ["https://offermanwoodshop.com", "https://jococups.com"],
  "maxProductsPerStore": 1000,
  "categories": ["sale"],
  "onSaleOnly": false,
  "maxChargeUsd": 5
}
```

### Output

One row per product (`recordType: product`), plus one `store-summary` row per store. Prices are decimals in the store's currency.

#### Example output

```json
{
  "recordType": "product",
  "store": "https://offermanwoodshop.com",
  "productId": 43116,
  "name": "Sale OWS T-Shirts",
  "slug": "ows-t-shirt-2",
  "url": "https://offermanwoodshop.com/store/shop-fashion/ows-t-shirt-2",
  "sku": "AP-OWSTSHIRT-SALE",
  "type": "variable",
  "price": 18.0,
  "regularPrice": 32.0,
  "salePrice": 18.0,
  "onSale": true,
  "discountPercent": 43.8,
  "priceRange": null,
  "currency": "USD",
  "inStock": true,
  "onBackorder": false,
  "lowStockRemaining": null,
  "categories": [
    {"id": 474, "name": "Sale", "slug": "sale"},
    {"id": 91, "name": "Shop Fashion", "slug": "shop-fashion"}
  ],
  "tags": [],
  "images": [
    "https://offermanwoodshop.com/wp-content/uploads/2018/08/cropped-redshirt2-scaled-1.jpg"
  ],
  "attributes": [
    {"name": "Sizes", "values": ["S", "M", "L", "XL"]},
    {"name": "Colors", "values": ["Navy", "Royal Blue"]}
  ],
  "variationCount": 8,
  "averageRating": 0.0,
  "reviewCount": 0,
  "shortDescription": "100% cotton.",
  "description": "Special cut-price on select colors and sizes.",
  "scrapedAt": "2026-10-17T02:12:40+00:00"
}
```

Run it with empty input to see demo rows.

### Pricing: pay per event

| Event | Price |
|---|---|
| Run started | $0.001 per run |
| Product scraped | $0.0005 per product ($0.50 per 1,000) |

A 1,000-product store costs about **$0.50**. Stores that can't be read (no public Store API, private/B2B shops, network errors) return an error row and aren't charged per product.

### Use it from code

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")
run = client.actor("dheerajitbhu/woocommerce-products-scraper").call(run_input={
    "storeUrls": ["https://jococups.com"],
    "maxProductsPerStore": 500,
})
for row in client.dataset(run["defaultDatasetId"]).iterate_items():
    if row.get("recordType") == "product":
        print(row["name"], row["price"], row["currency"], row["url"])
```

### Limits

- The store must expose the public WooCommerce Store API. It's on by default; stores behind Cloudflare challenges, password protection or B2B logins return an error row.
- Requests are sequential with small delays, to be polite to stores.

*Independent tool. Not affiliated with or endorsed by WooCommerce / Automattic. Use exported data in line with each store's terms.*

# Actor input Schema

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

One or more WooCommerce store URLs, e.g. https://example-store.com. The store must have the public WooCommerce Store API (on by default). Leave empty to see demo output.

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

Stops reading a store after this many products. Lower it to cap your cost.

## `categories` (type: `array`):

Only products in these categories. Use category slugs (e.g. t-shirts), names, or numeric IDs.

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

Only products matching this keyword (the store's own product search).

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

Skip out-of-stock products.

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

Only products currently on sale.

## `maxChargeUsd` (type: `number`):

Hard spending cap for this run. The actor stops cleanly before exceeding it; rows already exported are kept.

## Actor input object example

```json
{
  "storeUrls": [
    "https://jococups.com"
  ],
  "maxProductsPerStore": 1000,
  "inStockOnly": false,
  "onSaleOnly": false,
  "maxChargeUsd": 5
}
```

# Actor output Schema

## `results` (type: `string`):

One row per product plus a per-store summary row.

# 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": [
        "https://jococups.com"
    ]
};

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

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

```

## MCP server setup

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