# WooCommerce Store Products & Inventory Scraper | $0.85/1K (`kaitoeasyapi/woocommerce-store-products-pricing-inventory-scraper`) Actor

WooCommerce Store Products, Pricing & Inventory Scraper ($0.85–$1.20/1K items): extract WooCommerce storefront SKUs, regular & sale prices, stock status, variations, categories, ratings and images by store domain.

- **URL**: https://apify.com/kaitoeasyapi/woocommerce-store-products-pricing-inventory-scraper.md
- **Developed by:** [Kaito T](https://apify.com/kaitoeasyapi) (community)
- **Categories:** E-commerce, Lead generation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.85 / 1,000 woocommerce product results

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 Store Products & Inventory Scraper

Extract structured **WooCommerce product catalogs**, **minor-unit normalized pricing**, **regular vs. sale markdown percentages**, **SKU inventory status**, **variations**, **categories**, **tags**, **customer ratings**, and **product media** from any public WooCommerce storefront domain or subpath store.

### Extraction Architecture

1. **WooCommerce Store Catalog API (Primary)**: Queries the public WooCommerce Store API (`wc/store/v1/products`) with automatic minor-unit currency normalization (`currency_minor_unit`), category/keyword filtering, stock availability flags, and variation metadata. Supports both root domains and subpath WooCommerce installations.
2. **WordPress Product REST & Structured Data Fallback**: Falls back to WordPress `wp/v2/product` feeds, product sitemaps (`product-sitemap.xml`), and embedded Schema.org `Product` JSON-LD blocks when custom storefront themes alter standard catalog endpoints.
3. **Built-In Network Safety & Polite Pacing**: Enforces post-DNS resolution SSRF filtering (blocking loopback, RFC1918 private networks, link-local, and cloud metadata addresses across redirects) and polite `<= 2 req/s` per-host request spacing.

### Key Output Fields

- **Pricing & Discounts**: `price`, `regularPrice`, `salePrice`, `priceMin`, `priceMax`, `discountPct`, `onSale`, `currency`.
- **Inventory & Variations**: `sku`, `type`, `inStock`, `isPurchasable`, `variationsCount`, `variations`.
- **Catalog Metadata**: `storeDomain`, `productId`, `title`, `slug`, `categories`, `tags`, `averageRating`, `reviewCount`, `imageUrl`, `productUrl`.

### Example Input

```json
{
  "stores": [
    "themes.woocommerce.com/storefront"
  ],
  "inStockOnly": false,
  "maxItems": 25
}
```

### Example Output Record

```json
{
  "recordType": "woocommerce_product",
  "storeDomain": "woocommerce.com",
  "productId": "18734006970089",
  "title": "Storefront Pro Extension",
  "slug": "storefront-pro-extension",
  "type": "simple",
  "sku": "WC-SF-PRO",
  "price": 79,
  "regularPrice": 99,
  "salePrice": 79,
  "priceMin": 79,
  "priceMax": 79,
  "discountPct": 20.2,
  "onSale": true,
  "currency": "USD",
  "inStock": true,
  "isPurchasable": true,
  "averageRating": 4.8,
  "reviewCount": 42,
  "categories": [
    "Extensions"
  ],
  "tags": [
    "storefront"
  ],
  "variationsCount": 0,
  "variations": [],
  "shortDescription": "Customize your WooCommerce Storefront theme layout and product grids.",
  "imageUrl": null,
  "images": [],
  "productUrl": null,
  "extractionRail": "wc_store_v1",
  "scrapedAt": "2026-11-20T02:00:00.000Z"
}
```

# Actor input Schema

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

WooCommerce store domains or subpath URLs (for example 'themes.woocommerce.com/storefront' or 'woocommerce.com').

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

Optional alias for WooCommerce store root or subpath URLs.

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

Optional keyword query to filter products within the target WooCommerce storefronts.

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

Optional WooCommerce product category slug or numeric ID filter.

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

When enabled, returns only products currently marked in stock.

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

Maximum number of normalized WooCommerce product records to return.

## Actor input object example

```json
{
  "stores": [
    "themes.woocommerce.com/storefront"
  ],
  "inStockOnly": false,
  "maxItems": 25
}
```

# Actor output Schema

## `dataset` (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": [
        "themes.woocommerce.com/storefront"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("kaitoeasyapi/woocommerce-store-products-pricing-inventory-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 = { "stores": ["themes.woocommerce.com/storefront"] }

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kaitoeasyapi/woocommerce-store-products-pricing-inventory-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/Ayi5BuyzJpaiK4KHv/builds/gJ1bhc5hi7ryA29l1/openapi.json
