# National Vulnerability Database (NVD) API reference

> The NVD CVE API returns records from the National Vulnerability Database: description, publication and modification dates, analysis status, CVSS v2, v3 and v4 scores, weaknesses (CWE), affected products as CPE applicability statements, references, and CISA Known Exploited Vulnerabilities (KEV)…

Source: https://osinttools.io/apis/nvd/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/nvd/

- Base URL: https://services.nvd.nist.gov/rest/json
- Authentication: API key in the `apiKey` header. Get a key: https://nvd.nist.gov/developers/request-an-api-key Optional. Without a key the public rate limit applies.
- Free tier: yes
- Pricing: Free
- Rate limits: Without a key: 5 requests in a rolling 30 second window. With a key: 50 requests in a rolling 30 second window.
- Vendor docs: https://nvd.nist.gov/developers/vulnerabilities

## Overview

The NVD CVE API returns records from the National Vulnerability Database: description, publication and modification dates, analysis status, CVSS v2, v3 and v4 scores, weaknesses (CWE), affected products as CPE applicability statements, references, and CISA Known Exploited Vulnerabilities (KEV) details when a CVE is listed there. An investigator uses it to look up a CVE, find CVEs for a product (by CPE or keyword) or follow what changed since the last check.

All requests are HTTP GET to `https://services.nvd.nist.gov/rest/json/cves/2.0`. Parameter names and values are case insensitive. A key is optional and goes in the `apiKey` request header (the value is case sensitive); it raises the rate limit. Responses are UTF-8 JSON with ISO-8601 dates at zero offset from UTC. On a client error, look at the response header named `message`. A 200 with no results is possible when filters are very narrow.

The public rate limit is 5 requests in a rolling 30 seconds; with a key it is 50 per 30 seconds, and the docs still recommend sleeping several seconds between requests. Date range parameters accept at most 120 consecutive days. Services that use NVD data are asked to show: "This product uses data from the NVD API but is not endorsed or certified by the NVD." The NVD also has a CVE Change History API (`/rest/json/cvehistory/2.0`) and CPE, CPE match and source APIs that are not described here.

The docs pages are rendered by JavaScript; this reference was read from the rendered pages on 2026-11-29.

## CVE

### Retrieve one CVE or a filtered, paged collection of CVE records.

`GET /cves/2.0`

- Footprint: passive (the target is not contacted)

Offset-based pagination: use resultsPerPage and startIndex and compare totalResults. Results are sorted ascending by the published date. To keep up to date, request only CVEs modified since the last request with lastModStartDate and lastModEndDate. Flag parameters such as hasKev, noRejected, hasCertAlerts and keywordExactMatch are sent without a value. cvssV2, V3 and V4 filters cannot be combined with one another.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `cveId` | query | string | no | One CVE ID (deprecated, use cveIds). Not accepted for CVEs the NVD has not yet received Example: CVE-2019-1010218 |
| `cveIds` | query | string | no | Comma-separated CVE IDs, at most 100 Example: CVE-2019-1010218,CVE-2019-1010 |
| `keywordSearch` | query | string | no | Word or phrase in the current description. Several keywords act as AND; each has an implicit trailing wildcard Example: Microsoft Outlook |
| `keywordExactMatch` | query | string | no | Flag, no value: match the phrase in keywordSearch exactly. Requires keywordSearch |
| `cpeName` | query | string | no | A CPE name; part, vendor, product and version must be given (not *) Example: cpe:2.3:o:microsoft:windows_10:1607:*:*:*:*:*:*:* |
| `virtualMatchString` | query | string | no | A CPE match string, broader than cpeName; combine with versionStart/versionEnd (and their Type) for version ranges Example: cpe:2.3:o:linux:linux_kernel |
| `isVulnerable` | query | string | no | Flag, no value: only CVEs where the cpeName is also marked vulnerable. Requires cpeName |
| `cweId` | query | string | no | Only CVEs with this weakness; NVD-CWE-Other and NVD-CWE-noinfo also work Example: CWE-287 |
| `cvssV3Severity` | query | string | no | CVSS v3 qualitative severity Example: HIGH One of: LOW, MEDIUM, HIGH, CRITICAL |
| `cvssV3Metrics` | query | string | no | Full or partial CVSS v3 vector string Example: AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L |
| `cvssV4Severity` | query | string | no | CVSS v4 qualitative severity Example: HIGH One of: LOW, MEDIUM, HIGH, CRITICAL |
| `hasKev` | query | string | no | Flag, no value: only CVEs in CISA's Known Exploited Vulnerabilities catalog |
| `kevStartDate` | query | string | no | Start of the period CVEs were added to KEV (ISO-8601); kevEndDate is also required Example: 2023-01-01T00:00:00.000Z |
| `kevEndDate` | query | string | no | End of the KEV addition period Example: 2023-04-30T23:59:59.000Z |
| `pubStartDate` | query | string | no | Start of the published period (ISO-8601); pubEndDate is also required, range at most 120 days Example: 2021-08-04T00:00:00.000 |
| `pubEndDate` | query | string | no | End of the published period Example: 2021-10-22T00:00:00.000 |
| `lastModStartDate` | query | string | no | Start of the last-modified period (ISO-8601); lastModEndDate is also required, range at most 120 days Example: 2021-08-04T13:00:00.000 |
| `lastModEndDate` | query | string | no | End of the last-modified period Example: 2021-10-22T13:36:00.000 |
| `cveTag` | query | string | no | Only records with this CVE tag Example: disputed One of: disputed, unsupported-when-assigned, exclusively-hosted-service |
| `noRejected` | query | string | no | Flag, no value: exclude REJECT or Rejected records (included by default) |
| `sourceIdentifier` | query | string | no | Only CVEs where this exact source identifier appears as a data source Example: cve@mitre.org |
| `resultsPerPage` | query | integer | no | Maximum records per response; the default and maximum is 2,000 Example: 20 |
| `startIndex` | query | integer | no | Zero-based index of the first record to return Example: 0 |

Response fields:

- `resultsPerPage` (integer): Records in this response
- `startIndex` (integer): Index of the first record
- `totalResults` (integer): Total records matching the request
- `format` (string): Response format
- `version` (string): Response version
- `timestamp` (string): When the response was generated
- `vulnerabilities[].cve.sourceIdentifier` (string): Identifier of the source of the CVE
- `vulnerabilities[].cve.published` (string): When the CVE was published to the NVD
- `vulnerabilities[].cve.lastModified` (string): When the CVE was last modified
- `vulnerabilities[].cve.vulnStatus` (string): The CVE's status in the NVD
- `vulnerabilities[].cve.cisaExploitAdd` (string): Date added to the KEV catalog, when listed
- `vulnerabilities[].cve.cisaActionDue` (string): Date by which federal agencies must act, when listed in KEV
- `vulnerabilities[].cve.descriptions[]` (object): Description in one or more languages (two-letter code)
- `vulnerabilities[].cve.metrics` (object): CVSS information; optional
- `vulnerabilities[].cve.weaknesses[]` (object): Weaknesses considered the cause; optional
- `vulnerabilities[].cve.configurations[]` (object): Applicability statements with CPE match criteria; optional
- `vulnerabilities[].cve.references[]` (object): Supplemental references with resource tags

```bash
curl 'https://services.nvd.nist.gov/rest/json/cves/2.0' \
  -H 'apiKey: YOUR_API_KEY'
```

Example response (200):

```json
{
  "resultsPerPage": 1,
  "startIndex": 0,
  "totalResults": 1,
  "format": "NVD_CVE",
  "version": "2.0",
  "timestamp": "2026-01-01T00:00:00.000",
  "vulnerabilities": [
    {
      "cve": {
        "id": "CVE-2099-0001",
        "sourceIdentifier": "security@example.com",
        "published": "2099-01-01T00:00:00.000",
        "lastModified": "2099-01-02T00:00:00.000",
        "vulnStatus": "Analyzed",
        "descriptions": [
          {
            "lang": "en",
            "value": "An example vulnerability description."
          }
        ],
        "references": [
          {
            "url": "https://example.com/advisory",
            "source": "security@example.com"
          }
        ]
      }
    }
  ]
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
