{
  "openapi": "3.0.1",
  "info": {
    "title": "Bugcrowd Scraper",
    "description": "Scrapes publicly visible Bugcrowd data: the Crowdstream (public disclosed-submission activity feed), the public bug bounty program directory, and the researcher leaderboard/rankings.",
    "version": "0.1",
    "x-build-id": "JW58bIC38ePlehKfJ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rl1987~bugcrowd-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rl1987-bugcrowd-scraper",
        "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/rl1987~bugcrowd-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rl1987-bugcrowd-scraper",
        "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/rl1987~bugcrowd-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rl1987-bugcrowd-scraper",
        "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "hacktivity",
              "programs",
              "leaderboard"
            ],
            "type": "string",
            "description": "Which public Bugcrowd data set to scrape. \"hacktivity\" walks the public Crowdstream (disclosed/accepted submission activity feed). \"programs\" walks the public bug bounty program directory. \"leaderboard\" fetches the researcher points leaderboard/rankings (also the only crawlable public researcher directory Bugcrowd exposes).",
            "default": "hacktivity"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 0,
            "type": "integer",
            "description": "Maximum number of rows to scrape. Set to 0 for unlimited (walks every available page for hacktivity/programs; leaderboard is always capped at 100 by Bugcrowd itself).",
            "default": 100
          },
          "startPage": {
            "title": "Start page (hacktivity / programs only)",
            "minimum": 1,
            "type": "integer",
            "description": "1-indexed page number to start from. Only used in \"hacktivity\" and \"programs\" modes.",
            "default": 1
          },
          "hacktivityIncludeFullReport": {
            "title": "Include full report (hacktivity only)",
            "type": "boolean",
            "description": "For publicly disclosed (disclosed=true) Crowdstream rows, fetch the disclosure report page and include the full researcher write-up plus a public activity/comment-event timeline (not full comment text -- Bugcrowd only renders comment metadata publicly). Costs 1 extra HTTP request and an extra charge per disclosed row, and adds latency. Off by default to keep the cheap default path unchanged.",
            "default": false
          },
          "programsIncludeScope": {
            "title": "Include target scope (programs only)",
            "type": "boolean",
            "description": "Fetch each program's target-group/scope list (targetGroups: group name, in/out-of-scope, and per-asset name/URI/category/tags), reverse-engineered from the public bugcrowd.com engagement brief page's own \"Targets\" tab (public, unauthenticated -- see the Actor README for details). Costs 1-2 extra HTTP requests per program (shared with programsIncludeBountyTable if both are enabled) and adds latency. Off by default.",
            "default": false
          },
          "programsIncludeBountyTable": {
            "title": "Include bounty tiers (programs only)",
            "type": "boolean",
            "description": "Fetch each program's full P1-P5 reward table per target group (bountyTiers), from the same public, unauthenticated source as programsIncludeScope -- see the Actor README for details. Costs 1-2 extra HTTP requests per program (shared with programsIncludeScope if both are enabled) and adds latency. Off by default.",
            "default": false
          },
          "programsSearchQuery": {
            "title": "Search query (programs only)",
            "type": "string",
            "description": "Keyword/text search over the program directory, passed straight through as the real `search` query parameter the public bugcrowd.com/engagements page's own search box uses (verified live: narrows the 250-program directory to ~40 results for \"bank\" and 5 for \"okta\"). It is a full-text search (matches taglines/descriptions too, not just the program name), not a strict name filter. Leave blank to scrape the full unfiltered directory. Not available for hacktivity or leaderboard modes -- Bugcrowd's public Crowdstream and Leaderboard pages have no text search UI or parameter.",
            "default": ""
          },
          "leaderboardPeriod": {
            "title": "Leaderboard period (leaderboard only)",
            "enum": [
              "all-time",
              "past-month"
            ],
            "type": "string",
            "description": "Time window for the researcher leaderboard. Bugcrowd currently only supports \"all-time\" and \"past-month\".",
            "default": "all-time"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional proxy settings. All endpoints used by this Actor (bugcrowd.com/crowdstream.json, bugcrowd.com/engagements.json, bugcrowd.com/leaderboard/data) were observed to work without a proxy or special headers during development. Enable a residential proxy only if you start seeing blocking or Cloudflare challenges.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}