Skip to content
OSINTtools.io

National Vulnerability Database (NVD) API

NIST's US government database of CVE records enriched with CVSS scores, CWE weakness types and affected-product CPE data.

Base URL
https://services.nvd.nist.gov/rest/json
Sign-in
API key
Free tier
Free tier
Pricing
Free
Format
REST
Endpoints
1

Compiled by OSINTtools.io editors from nvd.nist.gov · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

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.

Quick start

  1. Get a key

    Create an account with National Vulnerability Database (NVD) and copy your api key (free tier). Where to get it

  2. Make your first request

    Retrieve one CVE or a filtered, paged collection of CVE records.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://services.nvd.nist.gov/rest/json/cves/2.0' \
      -H 'apiKey: YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this, shortened.

    {
      "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",
    …

Authentication

Send your API key in the apiKey header of every request.

Optional. Without a key the public rate limit applies.

Get a key from National Vulnerability Database (NVD)

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Without a key: 5 requests in a rolling 30 second window. With a key: 50 requests in a rolling 30 second window.

Free tier. Pricing: free.

CVE

  • 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.

Query parameters

cveIdstring

One CVE ID (deprecated, use cveIds). Not accepted for CVEs the NVD has not yet received

Example: CVE-2019-1010218
cveIdsstring

Comma-separated CVE IDs, at most 100

Example: CVE-2019-1010218,CVE-2019-1010
keywordSearchstring

Word or phrase in the current description. Several keywords act as AND; each has an implicit trailing wildcard

Example: Microsoft Outlook
keywordExactMatchstring

Flag, no value: match the phrase in keywordSearch exactly. Requires keywordSearch

cpeNamestring

A CPE name; part, vendor, product and version must be given (not *)

Example: cpe:2.3:o:microsoft:windows_10:1607:*:*:*:*:*:*:*
virtualMatchStringstring

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
isVulnerablestring

Flag, no value: only CVEs where the cpeName is also marked vulnerable. Requires cpeName

cweIdstring

Only CVEs with this weakness; NVD-CWE-Other and NVD-CWE-noinfo also work

Example: CWE-287
cvssV3Severitystring

CVSS v3 qualitative severity

Example: HIGHOne of: LOW, MEDIUM, HIGH, CRITICAL
cvssV3Metricsstring

Full or partial CVSS v3 vector string

Example: AV:L/AC:L/PR:L/UI:R/S:U/C:N/I:L/A:L
cvssV4Severitystring

CVSS v4 qualitative severity

Example: HIGHOne of: LOW, MEDIUM, HIGH, CRITICAL
hasKevstring

Flag, no value: only CVEs in CISA's Known Exploited Vulnerabilities catalog

kevStartDatestring

Start of the period CVEs were added to KEV (ISO-8601); kevEndDate is also required

Example: 2023-01-01T00:00:00.000Z
kevEndDatestring

End of the KEV addition period

Example: 2023-04-30T23:59:59.000Z
pubStartDatestring

Start of the published period (ISO-8601); pubEndDate is also required, range at most 120 days

Example: 2021-08-04T00:00:00.000
pubEndDatestring

End of the published period

Example: 2021-10-22T00:00:00.000
lastModStartDatestring

Start of the last-modified period (ISO-8601); lastModEndDate is also required, range at most 120 days

Example: 2021-08-04T13:00:00.000
lastModEndDatestring

End of the last-modified period

Example: 2021-10-22T13:36:00.000
cveTagstring

Only records with this CVE tag

Example: disputedOne of: disputed, unsupported-when-assigned, exclusively-hosted-service
noRejectedstring

Flag, no value: exclude REJECT or Rejected records (included by default)

sourceIdentifierstring

Only CVEs where this exact source identifier appears as a data source

Example: cve@mitre.org
resultsPerPageinteger

Maximum records per response; the default and maximum is 2,000

Example: 20Default: 2000
startIndexinteger

Zero-based index of the first record to return

Example: 0Default: 0
Response fields · 17Show

resultsPerPageinteger

Records in this response

startIndexinteger

Index of the first record

totalResultsinteger

Total records matching the request

formatstring

Response format

versionstring

Response version

timestampstring

When the response was generated

sourceIdentifierstring

Identifier of the source of the CVE

publishedstring

When the CVE was published to the NVD

lastModifiedstring

When the CVE was last modified

vulnStatusstring

The CVE's status in the NVD

cisaExploitAddstring

Date added to the KEV catalog, when listed

cisaActionDuestring

Date by which federal agencies must act, when listed in KEV

descriptions[]object

Description in one or more languages (two-letter code)

metricsobject

CVSS information; optional

weaknesses[]object

Weaknesses considered the cause; optional

configurations[]object

Applicability statements with CPE match criteria; optional

references[]object

Supplemental references with resource tags

curl 'https://services.nvd.nist.gov/rest/json/cves/2.0' \
  -H 'apiKey: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "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"
          }
        ]
      }
    }
  ]
}