{
  "openapi": "3.0.1",
  "info": {
    "title": "CVE Lookup – Bulk NVD Enrichment with EPSS & CISA KEV",
    "description": "Enrich lists of CVE IDs or search NVD by keyword, CPE, date and CVSS: description, CVSS v3.1/v4.0 score and vector, CWE, EPSS probability, CISA KEV status (date added, due date, ransomware use), references and affected CPEs.",
    "version": "0.1",
    "x-build-id": "sCyxiSrCq28igGAWK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/adamplaenitz~cve-lookup/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-adamplaenitz-cve-lookup",
        "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/adamplaenitz~cve-lookup/runs": {
      "post": {
        "operationId": "runs-sync-adamplaenitz-cve-lookup",
        "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/adamplaenitz~cve-lookup/run-sync": {
      "post": {
        "operationId": "run-sync-adamplaenitz-cve-lookup",
        "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": {
          "cveIds": {
            "title": "CVE IDs",
            "type": "array",
            "description": "CVE IDs to enrich, one per line (CVE-2021-44228). Lines with other text are scanned for CVE IDs, so you can paste advisories or scanner output. Duplicates are removed.",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Search: keyword",
            "type": "string",
            "description": "Search NVD descriptions, e.g. 'log4j', 'OpenSSL', 'Fortinet FortiOS'. All words must appear (unless exact phrase is selected)."
          },
          "keywordExactMatch": {
            "title": "Search: exact phrase",
            "type": "boolean",
            "description": "Match the keyword as an exact phrase.",
            "default": false
          },
          "cpe": {
            "title": "Search: CPE",
            "type": "string",
            "description": "Product filter as CPE 2.3, e.g. cpe:2.3:a:apache:log4j:2.14.1:*:*:*:*:*:*:* (exact version) or cpe:2.3:a:apache:log4j (all versions)."
          },
          "publishedFrom": {
            "title": "Search: published from",
            "type": "string",
            "description": "Earliest publication date (YYYY-MM-DD). Long ranges are split into 120-day windows automatically."
          },
          "publishedTo": {
            "title": "Search: published to",
            "type": "string",
            "description": "Latest publication date (YYYY-MM-DD). Defaults to today."
          },
          "publishedLastDays": {
            "title": "Search: published in the last N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Alternative to the date fields, e.g. 7 for a weekly report. Ignored if 'published from' is set."
          },
          "minCvss": {
            "title": "Minimum CVSS base score",
            "pattern": "^(10([.,]0)?|[0-9]([.,][0-9])?)?$",
            "type": "string",
            "description": "Only return CVEs with a base score of at least this value (0–10), e.g. 7 for high and critical. Uses CVSS v3.x, otherwise v4.0, otherwise v2. Applies to IDs and search."
          },
          "onlyKev": {
            "title": "Only known exploited (CISA KEV)",
            "type": "boolean",
            "description": "Only return CVEs listed in the CISA Known Exploited Vulnerabilities catalog. On its own (without other search fields) it lists the KEV CVEs from NVD.",
            "default": false
          },
          "maxResults": {
            "title": "Maximum search results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of CVEs returned by the search (newest first). Does not limit the CVE ID list.",
            "default": 100
          },
          "nvdApiKey": {
            "title": "NVD API key (optional)",
            "type": "string",
            "description": "Free key from https://nvd.nist.gov/developers/request-an-api-key. Without a key NVD allows 5 requests per 30 seconds (about 6 seconds per CVE ID); with a key 50 per 30 seconds. Stored encrypted."
          },
          "includeEpss": {
            "title": "Add EPSS scores",
            "type": "boolean",
            "description": "Adds the FIRST EPSS exploit probability (next 30 days) and percentile.",
            "default": true
          },
          "includeKev": {
            "title": "Add CISA KEV status",
            "type": "boolean",
            "description": "Adds whether the CVE is in the CISA Known Exploited Vulnerabilities catalog, with date added, due date, required action and known ransomware use.",
            "default": true
          },
          "fallbackToCveOrg": {
            "title": "Fall back to CVE.org",
            "type": "boolean",
            "description": "If NVD has no record yet (new CVEs), take description, CVSS and CWE from the official CVE record (CNA and CISA ADP data).",
            "default": true
          },
          "maxReferences": {
            "title": "References per CVE",
            "minimum": 0,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of reference links per CVE (total count is in referenceCount).",
            "default": 10
          },
          "maxCpes": {
            "title": "Affected CPEs per CVE",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum number of vulnerable CPE entries (with version ranges) per CVE (total count is in affectedCpeCount).",
            "default": 20
          },
          "includeNotFound": {
            "title": "Output not-found rows",
            "type": "boolean",
            "description": "Adds free rows for invalid, unknown and rejected CVE IDs.",
            "default": true
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}