# WordPress Scraper | Posts, Content, Authors & Categories (`muzafferkadir/wordpress-scraper`) Actor

Scrape posts or pages from any WordPress site via the public WP REST API: title, content, author, categories, tags, dates, links. No API key.

- **URL**: https://apify.com/muzafferkadir/wordpress-scraper.md
- **Developed by:** [Muzaffer Kadir YILMAZ](https://apify.com/muzafferkadir) (community)
- **Categories:** SEO tools, Marketing
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.50 / 1,000 posts

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 Scraper

Scrape **posts or pages from any WordPress site** by URL — **title, content, excerpt, author, categories, tags, dates, featured image, and link**. No API key, nothing to configure.

Paste a blog like `wordpress.org/news`, get its full post archive — ready to export to CSV, Excel, or JSON for content audits, migrations, or research.

### Features

- **Works on most WordPress sites** — just paste the site URL.
- **Posts or pages** — scrape the blog archive or the site's static pages.
- **Keyword search** — keep only posts matching a search term.
- **Full content** — clean title, excerpt, full HTML content, author name, category and tag names.

### Use cases

- **Content audits & SEO** — export a site's full archive with dates and categories.
- **Competitor monitoring** — track what competitors publish.
- **Migrations & backups** — pull posts into another CMS or a spreadsheet.
- **Research & datasets** — build text corpora from blogs and news sites.

### Input

| Field | Type | Description |
| --- | --- | --- |
| `siteUrls` | URL\[] | WordPress site domains or URLs. |
| `postType` | enum | `posts` (default) or `pages`. |
| `search` | string | Optional keyword filter. |
| `maxItems` | integer | Max items per site. Default 100. |

Sites that have disabled public access to their content return no results.

#### Examples

```json
{
  "siteUrls": [{ "url": "https://wordpress.org/news" }],
  "postType": "posts",
  "maxItems": 100
}
```

```json
{
  "siteUrls": [{ "url": "https://wordpress.org/news" }],
  "search": "release",
  "maxItems": 50
}
```

### Output

Each record is one post or page:

| Field | Description |
| --- | --- |
| `site` / `id` / `type` | Site host, item ID and `post` or `page`. |
| `title` / `excerpt` / `content` | Title, short excerpt and full content. |
| `date` / `modified` | Published and last-modified dates. |
| `author` / `authorId` | Author name and ID. |
| `categories` / `tags` | Category and tag names. |
| `featuredImage` | Featured image URL. |
| `slug` / `status` / `link` | URL slug, status and public link. |

#### Example

```json
{
  "site": "wordpress.org",
  "id": 21731,
  "type": "posts",
  "date": "2026-09-22T14:01:20",
  "modified": "2026-09-23T14:04:10",
  "slug": "wordpress-7-1-2-release",
  "status": "publish",
  "title": "WordPress 7.1.2 Release",
  "excerpt": "This security release features a fix for a critical severity security vulnerability. Because this is a security release, it is recommended that you up...",
  "content": "This security release features a fix for a critical severity security vulnerability. Because this is a security release, it is recommended that you up...",
  "link": "https://wordpress.org/news/2026/09/wordpress-7-1-2-release/",
  "author": "John Blackbourn",
  "authorId": 42547,
  "categories": [
    "Releases",
    "Security"
  ],
  "tags": [],
  "featuredImage": null,
  "scrapedAt": "2026-09-23T22:03:06.019Z"
}
```

Download the dataset as **JSON, CSV, Excel, or XML**, or pull it via the Apify API.

### Pricing

Pay-per-event: **$0.01 per run start** (per GB of run memory) plus **$0.50 per 1,000 posts**. You only pay for posts actually returned. See the **Pricing** tab for current rates.

### Disclaimer

This is an **unofficial** Actor. It is not affiliated with or endorsed by WordPress, Automattic, or any site it reads. It returns publicly available content; you are responsible for how you use the data.

# Actor input Schema

## `siteUrls` (type: `array`):

WordPress site domains or URLs, e.g. wordpress.org/news. The host is used to reach its public WP REST API.

## `postType` (type: `string`):

Which WordPress content type to scrape.

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

Optional keyword filter (WordPress search).

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

Max posts per site.

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

Optional. Leave empty for most runs.

## Actor input object example

```json
{
  "siteUrls": [
    {
      "url": "https://wordpress.org/news"
    }
  ],
  "postType": "posts",
  "maxItems": 100
}
```

# Actor output Schema

## `results` (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 = {
    "siteUrls": [
        {
            "url": "https://wordpress.org/news"
        }
    ],
    "postType": "posts",
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("muzafferkadir/wordpress-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 = {
    "siteUrls": [{ "url": "https://wordpress.org/news" }],
    "postType": "posts",
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("muzafferkadir/wordpress-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 '{
  "siteUrls": [
    {
      "url": "https://wordpress.org/news"
    }
  ],
  "postType": "posts",
  "maxItems": 100
}' |
apify call muzafferkadir/wordpress-scraper --silent --output-dataset

```

## MCP server setup

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