{
  "openapi": "3.0.1",
  "info": {
    "title": "CVElens Vulnerability Intelligence",
    "description": "One record per CVE: NVD data and CVSS, CISA KEV status, EPSS exploit probability, public exploit code (Exploit-DB, Metasploit, Nuclei) and an explained 0-100 risk score. Look up ids, search by vendor/severity/KEV/EPSS, list recent KEV additions or the top EPSS scores.",
    "version": "0.1",
    "x-build-id": "5icbSuR2CxZWoDwub"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dweissbacher~cvelens-vulnerability-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dweissbacher-cvelens-vulnerability-intelligence",
        "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/dweissbacher~cvelens-vulnerability-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-dweissbacher-cvelens-vulnerability-intelligence",
        "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/dweissbacher~cvelens-vulnerability-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-dweissbacher-cvelens-vulnerability-intelligence",
        "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": [
              "lookup",
              "search",
              "kev",
              "epss_top"
            ],
            "type": "string",
            "description": "lookup: records for the CVE ids you list. search: filter the whole database. kev: CISA Known Exploited Vulnerabilities, newest first. epss_top: highest exploit-probability CVEs.",
            "default": "lookup"
          },
          "cveIds": {
            "title": "CVE ids (lookup mode)",
            "type": "array",
            "description": "One CVE id per line, e.g. CVE-2021-44228. Up to 1,000 per run.",
            "items": {
              "type": "string"
            }
          },
          "vendor": {
            "title": "Vendor",
            "type": "string",
            "description": "NVD CPE vendor name in lower case, e.g. microsoft, apache, cisco."
          },
          "product": {
            "title": "Product",
            "type": "string",
            "description": "NVD CPE product name in lower case, e.g. windows_10, log4j, ios."
          },
          "kevOnly": {
            "title": "Only CVEs in CISA KEV",
            "type": "boolean",
            "description": "Search mode: keep only CVEs CISA lists as known exploited.",
            "default": false
          },
          "exploitOnly": {
            "title": "Only CVEs with public exploit code",
            "type": "boolean",
            "description": "Search mode: keep only CVEs with an Exploit-DB entry, Metasploit module or Nuclei template.",
            "default": false
          },
          "epssMin": {
            "title": "Minimum EPSS probability",
            "type": "string",
            "description": "0 to 1, e.g. 0.5 for a 50% probability of exploitation within 30 days."
          },
          "cvssMin": {
            "title": "Minimum CVSS base score",
            "type": "string",
            "description": "0 to 10, best available CVSS version."
          },
          "severity": {
            "title": "Severity",
            "enum": [
              "",
              "CRITICAL",
              "HIGH",
              "MEDIUM",
              "LOW"
            ],
            "type": "string",
            "description": "Best available CVSS severity.",
            "default": ""
          },
          "cwe": {
            "title": "CWE",
            "type": "string",
            "description": "e.g. CWE-79"
          },
          "publishedSince": {
            "title": "Published since",
            "type": "string",
            "description": "ISO date, e.g. 2026-01-01. In KEV mode: entries added since this date."
          },
          "modifiedSince": {
            "title": "Modified since",
            "type": "string",
            "description": "ISO date or datetime, e.g. 2026-09-01T00:00:00. Useful for polling changes."
          },
          "query": {
            "title": "Full-text query",
            "type": "string",
            "description": "Words that must all appear in the description. Append * for a prefix, e.g. deserial*."
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "modified",
              "published",
              "cvss",
              "epss",
              "kev_added"
            ],
            "type": "string",
            "description": "Search mode ordering, descending.",
            "default": "modified"
          },
          "ransomwareOnly": {
            "title": "Only known ransomware use (KEV mode)",
            "type": "boolean",
            "description": "KEV mode: keep only entries CISA marks with known ransomware campaign use.",
            "default": false
          },
          "excludeKev": {
            "title": "Exclude KEV entries (EPSS mode)",
            "type": "boolean",
            "description": "Hide CVEs CISA already lists, to surface what is likely to be exploited next.",
            "default": false
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Upper bound on records returned (and charged) in search, KEV and EPSS modes.",
            "default": 100
          },
          "includeReferences": {
            "title": "Include reference URLs",
            "type": "boolean",
            "description": "Add the NVD reference list (advisories, patches) to each record. Larger output.",
            "default": false
          },
          "includeCpes": {
            "title": "Include CPE match strings",
            "type": "boolean",
            "description": "Add up to 50 vulnerable CPE strings per record. Larger output.",
            "default": 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}