# WordPress Plugin API - Installs, Ratings & Updates (`stas_k/wordpress-plugin-api`) Actor

WordPress plugin pages bury the numbers that decide a stack: installs, ratings and updates sit in three places, and a stale plugin is never flagged before it breaks a site. This actor returns one row per plugin: version, active installs, rating, ratings count, last update, requirements and tags.

- **URL**: https://apify.com/stas_k/wordpress-plugin-api.md
- **Developed by:** [Stas K](https://apify.com/stas_k) (community)
- **Categories:** Developer tools, E-commerce, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

$0.90 / 1,000 plugins

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 Plugin API: installs, rating, version and update date

Choosing a plugin means comparing four numbers that the directory never puts side by side:
how many sites run it, what it is rated, when it was last touched, and what WordPress and PHP
it demands. Checking twenty plugins by hand is an afternoon. This actor asks the public
directory endpoint and returns one row per plugin with those numbers as fields.

No key, no login and no browser: the endpoint answers a plain JSON request.

### What one row means

One row is one plugin. The row is paid only when the directory really answered for that slug.

| Field | Meaning |
| --- | --- |
| `pluginSlug` | The slug the directory uses |
| `name`, `version` | The plugin title and the version the directory serves today |
| `author`, `authorProfile` | The author as text, and their profile page |
| `activeInstalls` | Active installs, as the bucket number the directory publishes |
| `rating`, `numRatings` | Rating out of 100 and how many ratings it is built from |
| `ratingsBreakdown` | How many 1 to 5 star ratings the plugin has |
| `lastUpdated`, `added` | When it was last updated and when it was first published |
| `requiresWp`, `testedUpTo`, `requiresPhp` | The WordPress and PHP versions it asks for, and what it was tested on |
| `requiresPluginsCount`, `requiresPlugins` | Other plugins it depends on |
| `tags`, `businessModel`, `shortDescription` | What the directory says it is |
| `homepage`, `url` | The plugin site and its directory page |

Status rows are the free half of the dataset: `status`, `reason` and nothing a buyer could
mistake for plugin data. They are written in batches, so sort by `actorIndex` to restore the
input order.

### Input

- `plugins`: a slug (`woocommerce`), a directory link
  (`https://wordpress.org/plugins/hello-dolly/`) or a name (`Rank Math`). A link counts only
  when it points at `wordpress.org/plugins/<slug>`: a link to any other site that merely
  mentions the path is refused for free. A name is resolved through the directory search,
  but only a hit that really is that plugin is taken: the slug or the name has to be equal to
  the query, or the name has to start with it (`yoast` finds `Yoast SEO`). The search ranks
  by relevance, not by identity, so a near miss comes back as a free `NOT_FOUND` that names
  what the search did return, instead of selling a different plugin.
- `maxPlugins`: how many list lines this run reads (default and max 200).

### Price

One delivered plugin is one paid event. A slug the directory does not list, a line that cannot
be read and anything past `maxPlugins` are free and carry a reason. The lowest spending limit
you can set per run is $0.05, so a run that reads many plugins never pays that limit per
plugin.

### What this actor does not do

- It does not scan a site or detect which plugins are installed: it reads the public
  directory, not your WordPress.
- It does not read reviews or support threads, only the aggregate rating and its breakdown.
- It does not judge security. It reports the facts and the update date; the verdict is yours.
- It does not guess numbers. A field the directory does not publish comes back empty: an
  empty string, an empty list, or `null` where the output schema allows it.

### Notes

- `activeInstalls` is the directory's own bucket (for example 7000000 for WooCommerce), not a
  live count, and the row repeats it exactly as published.
- A slug that is not listed is a free `NOT_FOUND` row; a rate limit or a network failure is a
  different status again, because an unreadable directory says nothing about the plugin.
- The source is public and keyless, so the actor works without an account of yours.

# Actor input Schema

## `plugins` (type: `array`):

Plugins to read: a slug such as woocommerce, a link such as https://wordpress.org/plugins/woocommerce/, or a name such as Rank Math. The last line of the default list is not in the directory, so it comes back free.

## `maxPlugins` (type: `integer`):

How many lines of the list this run reads. Default and maximum 200; a line past the cap comes back as a free NOT_CHECKED_CAP row that names the cap.

## Actor input object example

```json
{
  "plugins": [
    "woocommerce",
    "hello-dolly",
    "Rank Math",
    "this-plugin-does-not-exist-xyz-9999"
  ],
  "maxPlugins": 200
}
```

# Actor output Schema

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

One row per plugin. Paid rows carry pluginSlug, name, version, author, authorProfile, activeInstalls, rating, numRatings, ratingsBreakdown, lastUpdated, added, requiresWp, testedUpTo, requiresPhp, requiresPluginsCount, requiresPlugins, tags, businessModel, shortDescription, homepage and url; every other row is a free status row with a reason and no plugin data. Status rows are written in batches of up to 100, so sort by actorIndex to get the input order back.

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

Counters of the run: requested, attempted, delivered, chargedEvents, deliveredUncharged, deliveredUnverified, chargeUncertain, pluginsNotFound, pluginsInvalid, cutByLimit, byStatus, counterMismatch, stopReason, datasetNote, firstFailure and priceNote. The bare RUN_SUMMARY lives in the default store of the run; a copy under RUN_SUMMARY-<runId> is kept in the named store wordpress-plugin-summary so two runs do not overwrite each other.

# 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 = {
    "plugins": [
        "woocommerce",
        "hello-dolly",
        "Rank Math",
        "this-plugin-does-not-exist-xyz-9999"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("stas_k/wordpress-plugin-api").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 = { "plugins": [
        "woocommerce",
        "hello-dolly",
        "Rank Math",
        "this-plugin-does-not-exist-xyz-9999",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("stas_k/wordpress-plugin-api").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 '{
  "plugins": [
    "woocommerce",
    "hello-dolly",
    "Rank Math",
    "this-plugin-does-not-exist-xyz-9999"
  ]
}' |
apify call stas_k/wordpress-plugin-api --silent --output-dataset

```

## MCP server setup

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

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/5dkAi6gncOeyEBSLu/builds/6N7APVr845Khbg4Om/openapi.json
