# WordPress & WooCommerce Scraper - Posts, Pages, Products (`coiled_magistrate/wordpress-woocommerce-scraper`) Actor

Scrape any WordPress site or WooCommerce shop: blog posts with full text, categories and tags, pages, and WooCommerce products with prices, sale prices, stock, SKU, ratings and images. $0.50 per 1,000 items.

- **URL**: https://apify.com/coiled\_magistrate/wordpress-woocommerce-scraper.md
- **Developed by:** [TrendsData](https://apify.com/coiled_magistrate) (community)
- **Categories:** E-commerce, News, AI
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.50 / 1,000 items

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

## WordPress & WooCommerce Scraper - Posts, Pages & Products from Any WP Site

Scrape **any WordPress website** (over 40% of the web) and **any WooCommerce shop** - no coding, no selectors, no browser. Just paste the site URL.

**$0.50 per 1,000 items.** No start fee. Sites that are not WordPress are reported with a clear error and **never charged**.

### What you get

**Blog posts & pages** - title, URL, publish and modified date, full clean text, excerpt, categories, tags (as names), featured image, word count, optional raw HTML.

**WooCommerce products** - name, SKU, price, regular and sale price, currency, on-sale flag, stock status, rating and review count, categories, tags, brands, attributes (size, color...), variation count, images, description.

### Why this scraper

- **Works on millions of sites** - uses the official WordPress REST API and WooCommerce Store API every WP site ships with
- **Complete & clean data** - full article text, not just snippets; real prices in the shop's currency
- **Fast & robust** - adaptive page size: slow sites are automatically fetched in smaller pages instead of timing out, a whole blog in seconds
- **Title-only mode** - turn off `includeContent` for a very fast listing of titles, dates, categories and images
- **Filters** - date (`publishedAfter`), keyword `search`, only on-sale or in-stock products
- **Many sites per run** - monitor dozens of competitor blogs or shops at once

### Use cases

- **E-commerce price monitoring** - track competitors' WooCommerce prices, discounts and stock (schedule daily)
- **Content research & SEO** - export a competitor's entire blog with categories and tags
- **AI / RAG** - clean article text for embeddings and chatbots
- **Lead research** - catalogue what online shops sell
- **Site migration & backups** - export posts, pages and products to JSON/CSV/Excel

### Input example

```json
{
  "sites": ["techcrunch.com", "https://porterandyork.com"],
  "contentTypes": ["posts", "products"],
  "maxItemsPerSite": 500,
  "publishedAfter": "2026-09-01"
}
```

### Output examples

```json
{"site": "https://techcrunch.com", "type": "post", "url": "https://techcrunch.com/2026/09/23/everything-new-coming-to-metas-ai-agent-muse/", "title": "Everything new coming to Meta's AI agent Muse", "publishedAt": "2026-09-24T01:13:32Z", "categories": ["AI", "TC"], "tags": ["AI", "Meta", "muse"], "wordCount": 936, "content": "Meta's personal AI agent Muse is only a few weeks old..."}
```

```json
{"site": "https://porterandyork.com", "type": "product", "name": "Organic Diestel Whole Turkey 12 - 14lb", "sku": "PY6020", "price": 115.0, "regularPrice": 115.0, "currency": "USD", "onSale": false, "inStock": false, "categories": ["Poultry", "Chicken"], "images": ["https://porterandyork.com/wp-content/uploads/2013/09/whole_turkey_1_1.jpg"]}
```

### FAQ

**How do I know if a site runs WordPress?** Just try it - non-WordPress sites return an error item and cost nothing. Our [Tech Stack Detector](https://apify.com/coiled_magistrate/tech-stack-detector) also tells you.

**Some sites return an error although they use WordPress?** A few sites disable the public REST API. Those are reported and not charged.

### More tools from this author

- [Google News Scraper - real article URLs, any date range](https://apify.com/coiled_magistrate/google-news-fast)
- [Google Ads Transparency Scraper - every ad your competitors run](https://apify.com/coiled_magistrate/google-ads-transparency-fast)
- [Steam Scraper - games, sales estimates, players, reviews](https://apify.com/coiled_magistrate/steam-scraper-fast)
- [Google Trends Scraper - interest over time, by region, related queries](https://apify.com/coiled_magistrate/google-trends-reliable)
- [Google Trends Trending Now - real-time trending searches for any country](https://apify.com/coiled_magistrate/google-trending-now)
- [Keyword Suggestions - Google, YouTube, Amazon autocomplete](https://apify.com/coiled_magistrate/keyword-suggestions)
- [Tech Stack Detector - Wappalyzer & BuiltWith alternative](https://apify.com/coiled_magistrate/tech-stack-detector)
- [Company Jobs Scraper - Workday, Greenhouse, Lever, Ashby & more](https://apify.com/coiled_magistrate/company-jobs-scraper)
- [YouTube Scraper - videos, channels, search results ($1/1K)](https://apify.com/coiled_magistrate/youtube-scraper-fast)
- [YouTube Transcript Scraper - subtitles for videos, channels, playlists](https://apify.com/coiled_magistrate/youtube-transcript-fast)
- [YouTube Shorts Scraper - search, hashtags, channels](https://apify.com/coiled_magistrate/youtube-shorts-fast)
- [YouTube Channel Scraper - subscribers, stats, links, latest videos](https://apify.com/coiled_magistrate/youtube-channel-fast)

# Actor input Schema

## `sites` (type: `array`):

Website URLs or domains, e.g. techcrunch.com, https://myshop.com. Works on any site built with WordPress.

## `contentTypes` (type: `array`):

Blog posts, pages and/or WooCommerce products. Products are skipped automatically on sites without WooCommerce.

## `maxItemsPerSite` (type: `integer`):

Maximum posts / pages / products per site (newest posts first).

## `publishedAfter` (type: `string`):

Only posts and pages published after this date.

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

Only posts / products matching this keyword.

## `onlyOnSale` (type: `boolean`):

WooCommerce: only discounted products.

## `onlyInStock` (type: `boolean`):

WooCommerce: only products in stock.

## `includeContent` (type: `boolean`):

Return the full text and word count of every post / page. Turn off for a much faster listing (titles, dates, excerpts, categories, tags, images).

## `includeHtml` (type: `boolean`):

Also return the original HTML of post content / product description.

## `maxConcurrency` (type: `integer`):

How many sites are processed in parallel.

## `proxyConfiguration` (type: `object`):

Used automatically only if a site blocks a request.

## Actor input object example

```json
{
  "sites": [
    "https://wordpress.org/news"
  ],
  "contentTypes": [
    "posts",
    "products"
  ],
  "maxItemsPerSite": 100,
  "onlyOnSale": false,
  "onlyInStock": false,
  "includeContent": true,
  "includeHtml": false,
  "maxConcurrency": 5,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# Actor output Schema

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

All scraped items.

## `overview` (type: `string`):

Compact table view.

# 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 = {
    "sites": [
        "https://wordpress.org/news"
    ],
    "publishedAfter": "",
    "search": "",
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("coiled_magistrate/wordpress-woocommerce-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 = {
    "sites": ["https://wordpress.org/news"],
    "publishedAfter": "",
    "search": "",
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("coiled_magistrate/wordpress-woocommerce-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 '{
  "sites": [
    "https://wordpress.org/news"
  ],
  "publishedAfter": "",
  "search": "",
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call coiled_magistrate/wordpress-woocommerce-scraper --silent --output-dataset

```

## MCP server setup

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