# WooCommerce Store & Product Scraper (Prices & Plugins) (`tsun_tsun/woocommerce-store-intel`) Actor

Query WooCommerce Store API endpoints for decimal prices, discount percentages, categories, public contact emails, WordPress themes, and installed plugins over HTTP.

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

## Pricing

from $0.56 / 1,000 woocommerce products

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 & Product Scraper (Prices & Plugins)

Query WooCommerce's public Store API (`/wp-json/wc/store/v1`) over direct HTTP inside a 256 MB Node.js container to extract decimal product catalogs, variable price ranges, discount percentages, WordPress themes, installed plugins, and public contact details.

When a storefront restricts Store API v1, the Actor steps through `/wp-json/wc/store/products`, `/wp-json/wp/v2/product`, and JSON-LD enriched `/product-sitemap.xml` pages automatically. Every store is checked for real WooCommerce signals before billing, so plain WordPress blogs cost `$0`.

### How it works

In `both` mode, the homepage is fetched once, scanned for WordPress theme slugs (`wp-content/themes/<slug>`) and 24 plugin/pixel signatures (Elementor, Yoast SEO, Rank Math SEO, WP Rocket, Stripe, PayPal, Klarna, Klaviyo, Mailchimp, HubSpot, Intercom, Crisp, Tidio, WPML, Jetpack, Contact Form 7, WPForms, Cloudflare, GA4, GTM, Meta Pixel, TikTok Pixel, Hotjar, Clarity), and stripped of heavy non-JSON-LD `<script>`, `<style>`, `<noscript>`, and `<svg>` blocks before Cheerio parses links and contacts. Homepage buffers go out of scope before Store API and contact sub-page fetches start.

- Pre-billing filters: `categorySlug`, `onSaleOnly`, `inStockOnly`, `minPrice`, `maxPrice`, and `keywords` (matched on title, description, tags, and categories) run prior to `Actor.pushData`. When `categorySlug` matches a category returned in `both` mode, the Actor also passes `?category=<id>` to the Store API to avoid scanning unrelated pages.
- Minor-unit decimal conversion: clamps `currency_minor_unit` safely (`0-20`), converts integer strings (`"19900"` -> `199`) into decimal prices, reads `prices.price_range` for variable/grouped listings, gates `salePrice` strictly on `on_sale === true`, and computes integer `discountPercent` (`1-99`, or `null`).
- Strict WooCommerce verification: `isWooCommerceVerified` becomes `true` only when Store API JSON, `wp-content/plugins/woocommerce`, `wc-ajax`, `woocommerce-js`, `body.woocommerce`, or `/product-sitemap.xml` matches.
- Contact and social discovery: crawls up to two discovered contact/about pages, decodes Cloudflare `data-cfemail` and URL-encoded `mailto:`/`tel:` links, deduplicates phones by digits, and merges social profiles from anchors and Schema.org `sameAs`.

### Use cases

- WordPress agency and SaaS prospecting: run `store_profile` mode across candidate WordPress sites to isolate verified WooCommerce stores running Elementor and Stripe without Klaviyo or WP Rocket, alongside public contact emails.
- Category and discount monitoring: combine `categorySlug`, `onSaleOnly: true`, `minPrice`, and `maxPrice` to track markdowns and `discountPercent` changes without paying for non-matching catalog pages.
- Theme-agnostic catalog feeds: ingest normalized decimal prices, variable `priceMin`/`priceMax` ranges, ratings, and stock flags across merchants running completely different WordPress themes.
- On-demand MCP storefront checks: expose the Actor via Apify's `?tools=` Streamable HTTP endpoint so AI agents can verify WooCommerce stacks and inspect live pricing directly.

### Measured Cloud benchmarks

| Target | Mode | Output Records | Peak RAM (256 MB Apify Cloud) | Duration |
| :--- | :--- | :--- | :--- | :--- |
| `woocommerce.com` | `both` (profile + products) | `6` records (`1` store profile + `5` products) | **`51.7 MB`** | **`5.60 s`** |

### Input parameters

| Parameter | Type | Default | Limits | Description |
| :--- | :--- | :--- | :--- | :--- |
| `storeUrls` | `string[]` | *(required)* | 1+ public URLs | Public WooCommerce storefront root URLs (deduplicated). |
| `mode` | `string` | `"both"` | `both`, `products`, `store_profile` | Choose store profiles, product catalog items, or both. |
| `categorySlug` | `string` | `""` | any slug/name | Restrict product extraction to one WooCommerce category slug or name (e.g. `"extensions"`). |
| `maxProductsPerStore` | `integer` | `100` | `0` to `10000` | Max matching products per store (`0` = all pages, up to 100 pages). |
| `onSaleOnly` | `boolean` | `false` | `true` / `false` | Keep and bill only products currently on sale. |
| `inStockOnly` | `boolean` | `false` | `true` / `false` | Keep and bill only products currently in stock. |
| `minPrice` | `number` | `0` | `0` to `1000000` | Exclude products priced below this amount (`0` = no minimum). |
| `maxPrice` | `number` | `0` | `0` to `1000000` | Exclude products priced above this amount (`0` = no cap). |
| `keywords` | `string[]` | `[]` | any strings | Case-insensitive OR match against title, description, tags, and categories. |
| `extractStoreContacts` | `boolean` | `true` | `true` / `false` | Crawl up to two discovered contact/about pages for public emails, phones, and socials. |
| `concurrency` | `integer` | `3` | `1` to `10` | Concurrent storefronts processed in parallel. |
| `useDatacenterProxy` | `boolean` | `false` | `true` / `false` | Route requests via Apify Datacenter Proxy for large multi-store runs. |

#### Example input

```json
{
  "storeUrls": ["https://woocommerce.com"],
  "mode": "both",
  "categorySlug": "extensions",
  "onSaleOnly": false,
  "inStockOnly": true,
  "minPrice": 20,
  "maxPrice": 250,
  "maxProductsPerStore": 25,
  "extractStoreContacts": true,
  "concurrency": 3
}
```

### Example output

Store profile record (`recordType: "store_profile"`):

```json
{
  "recordType": "store_profile",
  "storeDomain": "woocommerce.com",
  "storeUrl": "https://woocommerce.com",
  "storeName": "WooCommerce",
  "themeName": "woo-block-theme",
  "currency": "USD",
  "currencySymbol": "$",
  "isWooCommerceVerified": true,
  "storeApiAvailable": true,
  "productCountEstimate": 842,
  "categoryCount": 24,
  "topCategories": [
    { "id": 12, "name": "Extensions", "slug": "extensions", "count": 410 }
  ],
  "detectedPlugins": ["Cloudflare", "Jetpack", "Stripe", "WooCommerce"],
  "marketingPixels": ["Google Analytics 4 (GA4)", "Google Tag Manager"],
  "emails": ["support@woocommerce.com"],
  "phones": [],
  "socialLinks": {
    "twitter": "https://twitter.com/woocommerce"
  },
  "contactPagesChecked": [
    "https://woocommerce.com",
    "https://woocommerce.com/contact-us"
  ],
  "scrapedAt": "2026-11-24T18:19:07.812Z"
}
```

Product record (`recordType: "product"`):

```json
{
  "recordType": "product",
  "storeDomain": "woocommerce.com",
  "storeUrl": "https://woocommerce.com",
  "currency": "USD",
  "productId": "1873400",
  "title": "WooCommerce Subscriptions",
  "slug": "woocommerce-subscriptions",
  "sku": "WOO-SUB",
  "type": "simple",
  "price": 199,
  "priceMin": 199,
  "priceMax": 199,
  "regularPrice": 239,
  "salePrice": 199,
  "discountPercent": 17,
  "onSale": true,
  "inStock": true,
  "isPurchasable": true,
  "averageRating": 4.65,
  "reviewCount": 112,
  "categories": ["Extensions", "Payments & Billing"],
  "tags": ["Recurring"],
  "productUrl": "https://woocommerce.com/products/woocommerce-subscriptions/",
  "descriptionText": "Recurring billing plugin for WooCommerce.",
  "source": "wc_store_api",
  "scrapedAt": "2026-11-24T18:19:08.340Z"
}
```

### Output field reference

| Field | Record | Type | Description |
| :--- | :--- | :--- | :--- |
| `recordType` | Both | `string` | `"store_profile"` or `"product"`. |
| `storeDomain`, `storeUrl` | Both | `string` | Normalized apex domain and canonical storefront origin URL. |
| `currency` | Both | `string\|null` | ISO 4217 currency code. |
| `scrapedAt` | Both | `string` | UTC extraction timestamp (ISO-8601). |
| `storeName`, `themeName`, `currencySymbol` | Profile | `string\|null` | Store title, active WordPress theme slug, and decoded currency symbol. |
| `isWooCommerceVerified`, `storeApiAvailable` | Profile | `boolean` | Verification flag and whether Store API JSON responded. |
| `productCountEstimate`, `categoryCount`, `topCategories` | Profile | `number\|null`, `array` | `X-WP-Total` catalog counts and top 20 categories with IDs and slugs. |
| `detectedPlugins`, `marketingPixels` | Profile | `string[]` | Sorted WordPress plugins and analytics pixels. |
| `emails`, `phones`, `socialLinks`, `contactPagesChecked` | Profile | `string[]`, `object` | Extracted public contact emails, digit-deduplicated phones, social links, and crawled URLs. |
| `productId`, `title`, `slug`, `sku`, `type` | Product | `string\|null` | Product ID, decoded title, slug, SKU, and WooCommerce type. |
| `price`, `priceMin`, `priceMax` | Product | `number\|null` | Decimal price and variable/grouped price range. |
| `regularPrice`, `salePrice`, `discountPercent`, `onSale` | Product | `number\|null`, `boolean` | Regular price, active sale price, rounded discount percentage (`1-99`), and sale flag. |
| `inStock`, `isPurchasable`, `averageRating`, `reviewCount` | Product | `boolean`, `number\|null` | Stock/purchasable status, star rating, and review count. |
| `categories`, `tags`, `images`, `productUrl` | Product | `array`, `string` | Decoded categories/tags, image URLs, and canonical product URL. |
| `descriptionText`, `source` | Product | `string` | Cleaned description and extraction source (`wc_store_api`, `wc_store_legacy_api`, `wp_v2_api`, `sitemap_fallback`). |

### Integrations & API

#### JavaScript (`apify-client`)

```javascript
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: process.env.APIFY_TOKEN });
const run = await client.actor('tsun_tsun/woocommerce-store-intel').call({
    storeUrls: ['https://woocommerce.com'],
    mode: 'both',
    categorySlug: 'extensions',
    maxProductsPerStore: 50,
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items.length);
```

#### Python (`apify-client`)

```python
import os
from apify_client import ApifyClient

client = ApifyClient(os.environ["APIFY_TOKEN"])
run = client.actor("tsun_tsun/woocommerce-store-intel").call(
    run_input={
        "storeUrls": ["https://woocommerce.com"],
        "mode": "both",
        "categorySlug": "extensions",
        "maxProductsPerStore": 50,
    }
)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["recordType"], item.get("title") or item.get("storeName"), item.get("discountPercent"))
```

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/tsun_tsun~woocommerce-store-intel/run-sync-get-dataset-items" \
  -H "Authorization: Bearer $APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"storeUrls":["https://woocommerce.com"],"mode":"both","maxProductsPerStore":25}'
```

#### Apify MCP Server (Claude Code, Claude Desktop, Cursor)

Add this Actor as a Streamable HTTP MCP tool in Claude Code:

```bash
claude mcp add --transport http apify-woocommerce \
  "https://mcp.apify.com/?tools=tsun_tsun/woocommerce-store-intel" \
  --header "Authorization: Bearer $APIFY_TOKEN"
```

Or configure any MCP client with Streamable HTTP JSON:

```json
{
  "mcpServers": {
    "apify-woocommerce": {
      "type": "http",
      "url": "https://mcp.apify.com/?tools=tsun_tsun/woocommerce-store-intel",
      "headers": {
        "Authorization": "Bearer YOUR_APIFY_TOKEN"
      }
    }
  }
}
```

### Pay-Per-Event pricing

| Event (Apify Store Label) | Free / 1k | Bronze (-10%) | Silver (-20%) | Gold+ (-30%) |
| :--- | :--- | :--- | :--- | :--- |
| **WooCommerce store profile** (`store-analyzed`) | `$4.00` | `$3.60` | `$3.20` | `$2.80` |
| **WooCommerce product** (`product-scraped`) | `$0.80` | `$0.72` | `$0.64` | `$0.56` |

On Apify's Free plan, the included **$5/month free credit** covers **up to 6,250 products/month** at `$0.80 / 1k` (`products` mode) or **1,250 store profiles/month** at `$4.00 / 1k` (`store_profile` mode), with `$0` start fee and `$0` compute fee. Plain WordPress blogs, non-WooCommerce sites, hollow fallback stubs, and products excluded by `categorySlug`, `onSaleOnly`, `inStockOnly`, `minPrice`, `maxPrice`, or `keywords` are filtered before pushing and cost **$0**.

### Frequently asked questions

#### How does minor-unit price conversion work across currencies?

WooCommerce's Store API returns prices as integer minor-unit strings alongside `currency_minor_unit` (for example `"19900"` with `currency_minor_unit: 2` for USD, or `"5000"` with `currency_minor_unit: 0` for JPY). The Actor clamps `currency_minor_unit` to `0-20` and divides by `10^minorUnit` so USD, EUR, JPY, and KWD prices all normalize accurately.

#### How does `categorySlug` behave in `both` mode vs `products` mode?

In `both` mode, the Actor reads category IDs from `/wp-json/wc/store/v1/products/categories` and passes `?category=<id>` directly to the Store API when a matching slug is found, then also validates each item client-side. In `products` mode (or for categories beyond the first 50), it matches `categorySlug` client-side against both Store API slugs and normalized category names before billing.

#### Will plain WordPress blogs trigger a `store-analyzed` charge?

No. Plain `/wp-content/` paths and article prose mentioning "WooCommerce" are rejected. Only genuine WooCommerce signals set `isWooCommerceVerified: true` and bill `store-analyzed`.

#### What happens if a store disables `/wp-json/wc/store/v1/products`?

The Actor falls back in order to legacy `/wp-json/wc/store/products`, WordPress REST `/wp-json/wp/v2/product`, and `/product-sitemap.xml` enriched from product page JSON-LD and OpenGraph meta tags, skipping hollow pages that lack price, SKU, and description.

### When not to use this Actor

- Sites with WordPress REST API disabled AND strict Cloudflare or bot-wall challenges on HTML pages: use a headless browser Actor with residential proxies instead.
- Wholesale or member-only catalogs: pricing behind WordPress user logins cannot be read through unauthenticated Store API requests.
- Per-variation SKU inventory matrices: WooCommerce's public Store API returns parent-level price ranges (`priceMin`/`priceMax`) and stock flags rather than an authenticated variation stock table.

### Runtime & limits

- Reuses page 1 in `both` mode to avoid duplicate requests (except when resolving a server-side `categorySlug` filter), paginates up to `100` items per page (max `100` pages), and caps sitemap fallback at `25` products per store with a 3-strike `403`/`429` circuit-breaker.
- Enforces public-host DNS/IPv6 checks, `5 MB` HTML/JSON and `10 MB` sitemap caps, bounded `Retry-After` retries on `429`/`5xx`, clean abort handling, and independent per-event budget checks.

### Related Actors

| Actor | What it covers |
| :--- | :--- |
| [Shopify Store & Products Scraper (Prices & Apps)](https://apify.com/tsun_tsun/shopify-store-intel) | Extract Shopify catalogs, per-variant discounts, themes, and 35+ installed apps. |
| [Website Contact, Email MX/DMARC & Tech Stack Enricher](https://apify.com/tsun_tsun/website-lead-tech-enricher) | Enrich company domains with public contact emails, DNS MX/SPF/DMARC, ATS detection, and 70 tech signatures. |
| [Google Play Store & Reviews Scraper ($0.10/1k)](https://apify.com/tsun_tsun/google-play-reviews-scraper) | Extract Android app metadata and paginated Google Play user reviews with developer replies. |
| [Apple App Store & Reviews Scraper (iOS Apps & Ratings)](https://apify.com/tsun_tsun/app-store-reviews-scraper) | Monitor iOS App Store ratings, metadata, and filtered user reviews. |
| [Fast Website & Sitemap Markdown Crawler for AI/RAG](https://apify.com/tsun_tsun/fast-website-markdown-crawler) | Crawl documentation and storefronts into clean Markdown for LLM workflows. |
| [Apify Automation Toolkit](https://pie527645-cloud.github.io/apify-automation-toolkit/) | Free scripts, MCP config helpers, and n8n workflow templates for wiring these Actors into CRM pipelines. |

# Changelog

This Actor's version history is a separate document: https://apify.com/tsun_tsun/woocommerce-store-intel/changelog.md

# Actor input Schema

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

One or more public WooCommerce storefront root URLs (e.g. https://woocommerce.com). Duplicate domains are deduplicated automatically; non-WooCommerce WordPress blogs are never charged.

## `mode` (type: `string`):

Extract store profile + plugin/contact intelligence (store_profile), product catalog (products), or both.

## `categorySlug` (type: `string`):

Optional WooCommerce category slug or name (e.g. 'extensions', 'hoodies'). Matched against Store API category slugs and names before billing.

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

Maximum matching products to extract per WooCommerce store (0 = all available pages up to 100 pages).

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

Only output and charge for products currently on sale (onSale === true or regularPrice > price).

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

Only output and charge for products currently in stock.

## `minPrice` (type: `number`):

Exclude products priced below this value (0 = no minimum). Filtered before billing.

## `maxPrice` (type: `number`):

Exclude products priced above this value (0 = no cap). Filtered before billing.

## `keywords` (type: `array`):

Optional case-insensitive keywords matched against product title, description, tags, and categories. Filtered before billing.

## `extractStoreContacts` (type: `boolean`):

Fetch homepage plus discovered contact/about pages for public contact emails (including Cloudflare-obfuscated addresses), phone numbers, social links, theme, and WordPress plugin stack.

## `concurrency` (type: `integer`):

Number of WooCommerce stores processed concurrently (1 to 10).

## `useDatacenterProxy` (type: `boolean`):

Direct HTTP works on most WooCommerce stores at zero proxy cost. Enable Apify Datacenter Proxy only for large multi-store runs.

## Actor input object example

```json
{
  "storeUrls": [
    "https://woocommerce.com"
  ],
  "mode": "both",
  "categorySlug": "extensions",
  "maxProductsPerStore": 100,
  "onSaleOnly": false,
  "inStockOnly": false,
  "minPrice": 20,
  "maxPrice": 200,
  "keywords": [
    "subscriptions",
    "shipping"
  ],
  "extractStoreContacts": true,
  "concurrency": 3,
  "useDatacenterProxy": false
}
```

# Actor output Schema

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

JSON summary with per-store WooCommerce verification status, product counts, and budget status.

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

Dataset items containing WooCommerce store_profile and product records.

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

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

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,tsun_tsun/woocommerce-store-intel"
        }
    }
}
```

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/IbULi45zljSkuAbOF/builds/yrY1xhtXWaQqrL0Sg/openapi.json
