# WordPress Plugins Directory Scraper (`purethought/wordpress-plugins`) Actor

Scrapes the WordPress.org plugin directory using the public API. Returns plugin name, slug, version, rating, install count, and description.

- **URL**: https://apify.com/purethought/wordpress-plugins.md
- **Developed by:** [Cogniqueinc Private Limited](https://apify.com/purethought) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 results

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 Plugins Directory Scraper

Scrapes the [WordPress.org plugin directory](https://wordpress.org/plugins/) using the public plugins API. Returns structured data on plugin name, slug, version, rating, install count, and description — no login required.

### What you get

- **name**: Display name of the plugin
- **slug**: URL slug / identifier on wordpress.org
- **version**: Current stable version
- **rating**: Average rating on a 0–5 scale
- **num_ratings**: Total number of user ratings
- **active_installs**: Number of active WordPress installations using this plugin
- **last_updated**: Date the plugin was last updated
- **short_description**: Short description (HTML stripped)
- **url**: Plugin page URL on wordpress.org
- **scrapedAt**: ISO timestamp of when the record was fetched

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| browse | String | `popular` | Sort order: `popular`, `new`, `updated`, `top-rated` |
| search | String | (empty) | Keyword to search for specific plugins. Overrides `browse` when set. |
| maxItems | Integer | 100 | Maximum number of plugins to return (0 = unlimited) |

### Quick Start

1. Find the actor in [Apify Store](https://apify.com/purethought)
2. Click **Try for free** and set your inputs
3. Click **Start** and wait for the run to finish
4. Download results as JSON, CSV, or via the API

### Sample Output

Each item in the dataset looks like this:

```json
{
  "name": "Yoast SEO",
  "slug": "wordpress-seo",
  "version": "22.5",
  "rating": 4.4,
  "num_ratings": 27893,
  "active_installs": 10000000,
  "last_updated": "2024-10-15 3:14pm GMT",
  "short_description": "The #1 WordPress SEO plugin, with XML sitemaps, meta tags, readability analysis, and more.",
  "url": "https://wordpress.org/plugins/wordpress-seo/",
  "scrapedAt": "2024-11-01T10:00:00.000Z"
}
```

### Use cases

- **Competitive research**: Analyze the most popular plugins in a category to understand market leaders and feature gaps
- **Plugin discovery**: Find plugins by keyword or browse by rating to evaluate options before installing
- **Trend tracking**: Monitor active install counts over time to spot growth trends in the WP ecosystem
- **Market analysis**: Research install distributions and ratings across plugin categories for content or business decisions

### Notes

- Uses the official WordPress.org plugins API — no API key or login required
- `browse` values: `popular` (most installs), `new` (recently added), `updated` (recently updated), `top-rated` (highest rating)
- When `search` is set, the `browse` parameter is ignored
- Set `maxItems` to `0` for unlimited results (may take time for large datasets)
- The API returns plugins in batches of 100; pages are fetched with a 300ms delay to be polite

# Actor input Schema

## `browse` (type: `string`):

Sort order for plugins: popular, new, updated, top-rated

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

Search keyword to filter plugins. Leave empty to browse by sort order.

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

Maximum number of plugins to return (0 = unlimited).

## Actor input object example

```json
{
  "browse": "popular",
  "search": "",
  "maxItems": 100
}
```

# Actor output Schema

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

Scraped WordPress plugin records with name, slug, rating, install count, and 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 = {
    "browse": "popular",
    "search": "",
    "maxItems": 100
};

// Run the Actor and wait for it to finish
const run = await client.actor("purethought/wordpress-plugins").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 = {
    "browse": "popular",
    "search": "",
    "maxItems": 100,
}

# Run the Actor and wait for it to finish
run = client.actor("purethought/wordpress-plugins").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 '{
  "browse": "popular",
  "search": "",
  "maxItems": 100
}' |
apify call purethought/wordpress-plugins --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,purethought/wordpress-plugins"
        }
    }
}
```

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/bgnFRS4kNLMPSjvZr/builds/R7NQtoKK06lf48QFF/openapi.json
