{
  "openapi": "3.0.1",
  "info": {
    "title": "WordPress Plugins & Themes Scraper — Leads & Acquisition Intel",
    "description": "Extract WordPress.org plugins & themes with active installs, ratings, support resolution rates, staleness/abandonment signals, Micro-PE acquisition opportunity scores, and optional developer contact enrichment (emails, GitHub, X, LinkedIn).",
    "version": "1.0",
    "x-build-id": "4tRhyyVE5JcuSzZHd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rznoxx~wordpress-plugins-themes-intel/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rznoxx-wordpress-plugins-themes-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/rznoxx~wordpress-plugins-themes-intel/runs": {
      "post": {
        "operationId": "runs-sync-rznoxx-wordpress-plugins-themes-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/rznoxx~wordpress-plugins-themes-intel/run-sync": {
      "post": {
        "operationId": "run-sync-rznoxx-wordpress-plugins-themes-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": {
          "targetType": {
            "title": "Target Directory",
            "enum": [
              "plugins",
              "themes",
              "both"
            ],
            "type": "string",
            "description": "Scrape WordPress.org Plugins, Themes, or both.",
            "default": "plugins"
          },
          "searchQueries": {
            "title": "Search Keywords",
            "type": "array",
            "description": "Keywords to search on WordPress.org (e.g., 'seo', 'woocommerce', 'booking', 'analytics'). Leave empty to use Browse Category or Tags.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "title": "Filter by Tags",
            "type": "array",
            "description": "Exact WordPress.org tags to query (e.g., 'ecommerce', 'payments', 'forms').",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "author": {
            "title": "Filter by Author Username",
            "type": "string",
            "description": "Optional WordPress.org author slug (e.g., 'automattic') to pull their entire portfolio.",
            "default": ""
          },
          "browse": {
            "title": "Browse Category (used when Keywords/Tags/Slugs are empty)",
            "enum": [
              "popular",
              "featured",
              "updated",
              "new"
            ],
            "type": "string",
            "description": "Official WordPress.org directory feed when not searching by keyword.",
            "default": "popular"
          },
          "slugsOrUrls": {
            "title": "Direct Slugs or WordPress.org URLs",
            "type": "array",
            "description": "Fetch exact plugins/themes by slug (e.g., 'woocommerce') or full URL (e.g., 'https://wordpress.org/plugins/contact-form-7/').",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum number of matching plugins/themes to output.",
            "default": 50
          },
          "minActiveInstalls": {
            "title": "Min Active Installs",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep plugins/themes with at least this many active installations (great for finding established SaaS/M&A targets).",
            "default": 0
          },
          "maxActiveInstalls": {
            "title": "Max Active Installs (0 = unlimited)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional upper bound on active installs (e.g., 200000 to target indie/SMB developers instead of huge enterprises).",
            "default": 0
          },
          "minRating": {
            "title": "Min Rating (0–5)",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Minimum star rating on a 0 to 5 scale.",
            "default": 0
          },
          "minDaysSinceUpdate": {
            "title": "Min Days Since Last Update (Abandonment Filter)",
            "minimum": 0,
            "type": "integer",
            "description": "Only return plugins/themes NOT updated for at least N days (e.g., 180 for stale, 365 for abandoned acquisition targets). Set 0 to include all.",
            "default": 0
          },
          "enrichAuthorContacts": {
            "title": "Enrich Developer Contacts from Homepage",
            "type": "boolean",
            "description": "Visits each plugin/theme homepage (fast HTTP fetch) to extract public contact emails, GitHub, X/Twitter, LinkedIn, and detect Pro/Pricing monetization signals.",
            "default": true
          },
          "sortBy": {
            "title": "Sort Results By",
            "enum": [
              "none",
              "acquisitionScore",
              "activeInstalls",
              "rating",
              "daysSinceUpdate"
            ],
            "type": "string",
            "description": "Optional final sort order before saving to dataset (within fetched batch).",
            "default": "acquisitionScore"
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}