{
  "openapi": "3.0.1",
  "info": {
    "title": "WordPress Plugin Intel: Abandoned Risk, Growth & Change Alerts",
    "description": "WordPress.org plugin data from the official API: installs, ratings, support resolution, update recency, WP compatibility and 60-day download trends. Scores abandoned risk and growth with reasons, flags closed plugins, and alerts on version, rating or install changes.",
    "version": "0.1",
    "x-build-id": "Vv7HFxixaHahgRkbn"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/signalloom~wordpress-plugin-intel/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-signalloom-wordpress-plugin-intel",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/signalloom~wordpress-plugin-intel/runs": {
      "post": {
        "operationId": "runs-sync-signalloom-wordpress-plugin-intel",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/signalloom~wordpress-plugin-intel/run-sync": {
      "post": {
        "operationId": "run-sync-signalloom-wordpress-plugin-intel",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "slugs": {
            "title": "Plugin slugs",
            "type": "array",
            "description": "Plugins to look up by their WordPress.org slug, the last part of the plugin URL (wordpress.org/plugins/<slug>/), e.g. \"contact-form-7\". Full plugin URLs are accepted too. Closed plugins are reported with their closure date and reason.",
            "items": {
              "type": "string"
            }
          },
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Search the plugin directory, the same as the search box on wordpress.org/plugins. Each term is searched separately; results come in the directory's relevance order.",
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "title": "Tags",
            "type": "array",
            "description": "List plugins with a directory tag, e.g. \"seo\", \"woocommerce\", \"forms\" (the slug in wordpress.org/plugins/tags/<tag>/).",
            "items": {
              "type": "string"
            }
          },
          "authors": {
            "title": "Authors (WordPress.org accounts)",
            "type": "array",
            "description": "List the plugins of a WordPress.org account, by its username (the slug in profiles.wordpress.org/<username>/), e.g. \"automattic\". Meant for plugin companies and developers.",
            "items": {
              "type": "string"
            }
          },
          "browse": {
            "title": "Browse a directory list",
            "enum": [
              "",
              "popular",
              "new",
              "updated"
            ],
            "type": "string",
            "description": "Also list plugins from one of the directory's own lists: most popular, newest added, or recently updated.",
            "default": ""
          },
          "maxResultsPerQuery": {
            "title": "Max plugins per search, tag, author or browse",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many plugins to take from each search term, tag, author and browse list (slugs are always looked up). Up to 1,000.",
            "default": 10
          },
          "minActiveInstalls": {
            "title": "Minimum active installs",
            "minimum": 0,
            "type": "integer",
            "description": "Skip plugins below this many active installs (WordPress.org's rounded figure, e.g. 1000 means \"1,000+\"). Slugs you list are never skipped. 0 = no filter.",
            "default": 0
          },
          "minAbandonedScore": {
            "title": "Minimum abandoned-risk score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Keep only plugins whose abandonedRisk.score is at least this (0-100). Use 60 to find likely abandoned plugins, e.g. acquisition targets. Slugs you list are never skipped. 0 = no filter.",
            "default": 0
          },
          "downloadHistoryDays": {
            "title": "Download history (days)",
            "minimum": 0,
            "maximum": 730,
            "type": "integer",
            "description": "Days of daily download stats to read from WordPress.org's stats API (one extra request per plugin). Used for the download totals, the trend and growthSignal; 56 or more gives a trend (median daily downloads, last 28 days vs the 28 before). 0 = skip the history (faster, but no trend).",
            "default": 60
          },
          "includeDailyDownloads": {
            "title": "Include the daily download series",
            "type": "boolean",
            "description": "Add the day-by-day download counts (downloadsDaily) to each record, e.g. for charts. Off = only the 7/30-day totals and trend.",
            "default": false
          },
          "onlyChanges": {
            "title": "Only changes (monitor mode)",
            "type": "boolean",
            "description": "Remember each plugin between runs and output only plugins that are new to this monitor or changed (see Fields to watch), plus plugins that were closed. The first run is a baseline and outputs everything. Schedule it daily or weekly for competitor alerts.",
            "default": false
          },
          "monitorId": {
            "title": "Monitor ID",
            "type": "string",
            "description": "Name for this watch list, so different saved tasks keep separate memories (e.g. \"my-competitors\"). When set, records also show changeType and changes even without Only changes. Empty with Only changes on = \"default\".",
            "default": ""
          },
          "watchFields": {
            "title": "Fields to watch",
            "type": "array",
            "description": "Which changes count in monitor mode. A plugin that is closed or reopened is always reported.",
            "items": {
              "type": "string",
              "enum": [
                "version",
                "activeInstalls",
                "rating",
                "numRatings",
                "testedUpTo",
                "requiresPhp",
                "lastUpdated"
              ],
              "enumTitles": [
                "Version",
                "Active installs",
                "Rating",
                "Number of ratings",
                "Tested up to (WP)",
                "Required PHP",
                "Last updated"
              ]
            },
            "default": [
              "version",
              "activeInstalls",
              "rating",
              "numRatings",
              "testedUpTo"
            ]
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}