{
  "openapi": "3.0.1",
  "info": {
    "title": "NVD CVE Vulnerabilities API with CISA KEV Flag",
    "description": "Gets NVD CVE vulnerabilities with CISA KEV known exploited flag, due date, ransomware use, CVSS score, severity, vector, CWE ids, vendors, products and links, 10 CVEs by default. Turn on Only new CVEs for daily runs, or filter by date, keyword, severity or vendor. No login, no key.",
    "version": "0.1",
    "x-build-id": "wYGDf0ewQoQqKbYZ0"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/plain-build~nvd-cve-vulnerabilities-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-plain-build-nvd-cve-vulnerabilities-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/plain-build~nvd-cve-vulnerabilities-scraper/runs": {
      "post": {
        "operationId": "runs-sync-plain-build-nvd-cve-vulnerabilities-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/plain-build~nvd-cve-vulnerabilities-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-plain-build-nvd-cve-vulnerabilities-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": {
          "date_type": {
            "title": "Which date the window filters on",
            "enum": [
              "published",
              "last_modified",
              "kev_added",
              "any"
            ],
            "type": "string",
            "description": "published (the day the NVD published the CVE), last_modified (the last change), kev_added (the day CISA added it to its Known Exploited Vulnerabilities catalog) or any (no date window, for a keyword search over all years).",
            "default": "published"
          },
          "date_from": {
            "title": "From (YYYY-MM-DD)",
            "type": "string",
            "description": "Start of the window as YYYY-MM-DD (00:00 UTC). Leave empty for 7 days back. The window is at most 120 days long, the NVD's limit.",
            "default": ""
          },
          "date_to": {
            "title": "To (YYYY-MM-DD)",
            "type": "string",
            "description": "End of the window as YYYY-MM-DD, the whole day included; needs date_from. Leave empty for now. Must be empty with new_since_last_run on.",
            "default": ""
          },
          "keyword": {
            "title": "Keyword in the description",
            "type": "string",
            "description": "Words that must all appear somewhere in the CVE's English description, in any order, for example remote code execution. Leave empty for every CVE.",
            "default": ""
          },
          "severities": {
            "title": "Severities",
            "type": "array",
            "description": "CRITICAL, HIGH, MEDIUM or LOW, as the severity field of each row gives it (CVSS v3.1, else v4.0, v3.0 or v2). CVEs without a score are left out when you choose any. Leave empty for every CVE.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "vendors": {
            "title": "Vendors",
            "type": "array",
            "description": "Vendor names as words, for example microsoft or fortinet. A CVE is kept when one of its vendors contains one of them as whole words (case and _ ignored). Leave empty for every vendor.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "products": {
            "title": "Products",
            "type": "array",
            "description": "Product names as words, for example exchange server. A CVE is kept when one of its products contains one of them as whole words (case and _ ignored). Leave empty for every product.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "only_kev": {
            "title": "Only known exploited",
            "type": "boolean",
            "description": "Deliver only CVEs that CISA lists in its Known Exploited Vulnerabilities catalog. The NVD's own KEV index selects them, so a CVE CISA added recently can be missing until the NVD's index lists it.",
            "default": false
          },
          "new_since_last_run": {
            "title": "Only new CVEs (daily mode)",
            "type": "boolean",
            "description": "Deliver and charge only CVEs this Actor has not delivered to you before for the same date type and filters. A CVE held back by Maximum results or your spending limit comes in a later run, after all newer CVEs; after 30 days it is no longer read, and the run says so in an uncharged error item. Needs date_to empty and a date type other than any. Delivered CVEs are remembered in a key-value store named nvd-cve-vulnerabilities-scraper-state in your account.",
            "default": false
          },
          "max_items": {
            "title": "Maximum results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "How many CVEs to return at most, from 1 to 10,000. The default is 10: raise it to get more; a run stops at this number. You pay per CVE delivered.",
            "default": 10
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}