{
  "openapi": "3.0.1",
  "info": {
    "title": "Red Hat Security Advisories, RHSA, CSAF & CVE Scraper",
    "description": "Monitor and export official Red Hat Enterprise Linux (RHEL), OpenShift & Ansible CVEs, RHSA security errata, OASIS CSAF VEX advisories, CVSS v3 scores, and RPM/container package fix states with zero API keys or proxies.",
    "version": "1.0",
    "x-build-id": "sljVMeX3PtcOIpcfx"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bifrost-data~redhat-security-advisories-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bifrost-data-redhat-security-advisories-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/bifrost-data~redhat-security-advisories-scraper/runs": {
      "post": {
        "operationId": "runs-sync-bifrost-data-redhat-security-advisories-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/bifrost-data~redhat-security-advisories-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-bifrost-data-redhat-security-advisories-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",
        "properties": {
          "feed_type": {
            "title": "Security Feed Mode",
            "enum": [
              "cve",
              "csaf"
            ],
            "type": "string",
            "description": "Choose 'cve' to query Red Hat's CVE vulnerability & unpatched package-state feed (/cve.json), or 'csaf' to query released RHSA security errata & OASIS CSAF advisories (/csaf.json).",
            "default": "cve"
          },
          "severities": {
            "title": "Severity Filter",
            "type": "array",
            "description": "Filter by Red Hat threat severity levels: 'critical', 'important', 'moderate', 'low'. Leave empty for all severities.",
            "items": {
              "type": "string"
            }
          },
          "created_days_ago": {
            "title": "Published Within Last N Days (Daily / Weekly Monitor)",
            "minimum": 1,
            "maximum": 3650,
            "type": "integer",
            "description": "Return advisories or CVEs created within the last N days (e.g., 1 for daily cron alerts, 7 for weekly SecOps digests, 30 for monthly audits). Ignored automatically when exact CVE/RHSA IDs or explicit after/before dates are supplied."
          },
          "after_date": {
            "title": "Published After Date (YYYY-MM-DD, Optional)",
            "type": "string",
            "description": "ISO 8601 start date filter (e.g., '2026-10-01'). Overrides 'created_days_ago' when set.",
            "default": ""
          },
          "before_date": {
            "title": "Published Before Date (YYYY-MM-DD, Optional)",
            "type": "string",
            "description": "ISO 8601 end date filter (e.g., '2026-11-22').",
            "default": ""
          },
          "packages": {
            "title": "Filter by RPM / Component Packages (Optional)",
            "type": "array",
            "description": "Filter CVEs or RHSA advisories affecting specific packages (e.g., 'kernel', 'openssl', 'podman', 'curl', 'glibc', 'httpd').",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "product_regex": {
            "title": "Red Hat Product Filter / Regex (Optional)",
            "type": "string",
            "description": "Perl-compatible product filter for Red Hat platforms (e.g., 'Enterprise Linux 9', 'OpenShift Container Platform 4', 'Ansible').",
            "default": ""
          },
          "cve_ids": {
            "title": "Exact CVE IDs (Optional)",
            "type": "array",
            "description": "Look up exact CVEs (e.g., 'CVE-2024-3094', 'CVE-2021-44228'). Works in both CVE and CSAF modes.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "rhsa_ids": {
            "title": "Exact RHSA Advisory IDs (Optional)",
            "type": "array",
            "description": "Look up exact Red Hat Security Advisories (e.g., 'RHSA-2024:1897'). Works in both CSAF and CVE modes.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "cwe_ids": {
            "title": "Filter by CWE IDs (Optional, CVE Mode)",
            "type": "array",
            "description": "Filter CVEs by CWE identifiers (accepts 'CWE-787' or '787').",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "min_cvss3_score": {
            "title": "Minimum CVSS v3 Base Score (Optional, e.g. 7.0)",
            "type": "string",
            "description": "Minimum CVSS v3 score threshold from 0.0 to 10.0 (e.g., '7.0' or '8.5'). Leave blank for no score threshold.",
            "default": ""
          },
          "exclude_not_affected_only": {
            "title": "Exclude False-Positive ('Not Affected' Only) CVEs",
            "type": "boolean",
            "description": "Skip CVEs where every Red Hat product state is 'Not affected' or 'Out of support scope' and zero RHSA advisories exist ($0 charge).",
            "default": true
          },
          "enrich_full_details": {
            "title": "Deep Enrich Official Statement, Mitigation & Errata Releases",
            "type": "boolean",
            "description": "Fetch each item's full JSON document (/cve/{CVE}.json or /csaf/{RHSA}.json) to attach Red Hat Product Security's official statement, workarounds/mitigations, upstream fix version, and per-product errata release table.",
            "default": false
          },
          "max_items": {
            "title": "Max Verified Security Records",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum verified Red Hat security records to emit in this run.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}