{
  "openapi": "3.0.1",
  "info": {
    "title": "NVD CVE Vulnerability Search",
    "description": "Search the NIST National Vulnerability Database for a keyword or exact CVE ID. Filter by CVSS severity, publication or modification dates, and an affected CPE name, then save structured CVE details with CVSS, CWE, product, reference, and optional CISA KEV data.",
    "version": "0.0",
    "x-build-id": "rzGg3JMB6oU7APNl6"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maximedupre~nvd-cve/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maximedupre-nvd-cve",
        "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/maximedupre~nvd-cve/runs": {
      "post": {
        "operationId": "runs-sync-maximedupre-nvd-cve",
        "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/maximedupre~nvd-cve/run-sync": {
      "post": {
        "operationId": "run-sync-maximedupre-nvd-cve",
        "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": [
          "searchBy"
        ],
        "properties": {
          "searchBy": {
            "title": "Find CVEs by",
            "enum": [
              "keyword",
              "cveId"
            ],
            "type": "string",
            "description": "Choose a keyword search or an exact CVE ID lookup."
          },
          "keyword": {
            "title": "Vulnerability keyword",
            "type": "string",
            "description": "Find CVEs whose NVD record matches this keyword. Example: log4j."
          },
          "maxItems": {
            "title": "Maximum results",
            "minimum": 1,
            "type": "integer",
            "description": "Stop after this many matching CVEs. Leave empty to return all available results until the source is exhausted or the run ends."
          },
          "cveId": {
            "title": "CVE ID",
            "pattern": "^CVE-\\d{4}-\\d{4,}$",
            "type": "string",
            "description": "Retrieve one vulnerability by its exact CVE ID. Example: CVE-2021-44228."
          },
          "severity": {
            "title": "CVSS severity",
            "type": "array",
            "description": "Keep CVEs in any selected CVSS severity category. Leave empty to include all categories.",
            "items": {
              "type": "string",
              "enum": [
                "LOW",
                "MEDIUM",
                "HIGH",
                "CRITICAL"
              ],
              "enumTitles": [
                "Low",
                "Medium",
                "High",
                "Critical"
              ]
            }
          },
          "publicationDateRange": {
            "title": "Publication date range",
            "type": "object",
            "description": "Keep CVEs published in this UTC date range. Leave either date empty to keep that side open.",
            "properties": {
              "from": {
                "title": "From",
                "type": "string",
                "description": "First publication date to include, in UTC. Use YYYY-MM-DD.",
                "editor": "datepicker",
                "dateType": "absolute",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              },
              "to": {
                "title": "To",
                "type": "string",
                "description": "Last publication date to include, in UTC. Use YYYY-MM-DD.",
                "editor": "datepicker",
                "dateType": "absolute",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              }
            }
          },
          "modificationDateRange": {
            "title": "Modification date range",
            "type": "object",
            "description": "Keep CVEs last modified in this UTC date range. Leave either date empty to keep that side open.",
            "properties": {
              "from": {
                "title": "From",
                "type": "string",
                "description": "First last-modified date to include, in UTC. Use YYYY-MM-DD.",
                "editor": "datepicker",
                "dateType": "absolute",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              },
              "to": {
                "title": "To",
                "type": "string",
                "description": "Last last-modified date to include, in UTC. Use YYYY-MM-DD.",
                "editor": "datepicker",
                "dateType": "absolute",
                "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
              }
            }
          },
          "cpeName": {
            "title": "Affected CPE name",
            "type": "string",
            "description": "Keep CVEs that list this affected software CPE name. Example: cpe:2.3:a:apache:log4j:2.14.1:*:*:*:*:*:*:*."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}