APIs / Apps and media / NVD
1 credit per call2 endpoints2 datapoints
NVD API
NVD API for CVE records: CVSS v4.0, v3.1 and v2 scores, CWE weaknesses, known-exploited dates and affected CPEs as JSON. 1 credit per successful call.
{
"success": true,
"data": {
"id": "CVE-2021-44228",
"status": "Analyzed",
"published": "2021-12-10T10:15:09.143",
"last_modified": "2026-08-11T19:33:44.513",
"description": "Apache Log4j2 2.0-beta9 through 2.15.0 (excluding security releases 2.12.2, 2.12.3, and 2.3.1) JNDI features used in configuration, log messages, and parameters do not protect against attacker controlled LDAP and other JNDI related endpoint…",
"cvss_v31": {
"score": 10,
"severity": "CRITICAL",
"vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H",
"exploitability_score": 3.9,
"impact_score": 6,
"source": "nvd@nist.gov",
"type": "Primary"
},
"cvss_v2": {
"score": 9.3,
"severity": "HIGH",
"vector": "AV:N/AC:M/Au:N/C:C/I:C/A:C",
"exploitability_score": 8.6,
"impact_score": 10,
"source": "nvd@nist.gov",
"type": "Primary"
},
"weaknesses": [
"CWE-20",
"CWE-400",
"CWE-502"
],
"kev": {
"added": "2021-12-10",
"action_due": "2021-12-24",
"required_action": "For all affected software assets for which updates exist, the only acceptable remediation actions are: 1) Apply updates; OR 2) remove affected assets from agency networks. Temporary mitigations using one of the measures provided at https://…",
"vulnerability_name": "Apache Log4j2 Remote Code Execution Vulnerability"
},
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-44228",
"source_identifier": "security@apache.org",
"affected_cpes": [
{
"criteria": "cpe:2.3:o:siemens:6bk1602-0aa12-0tp0_firmware:*:*:*:*:*:*:*:*",
"version_end_excluding": "2.7.0"
},
{
"criteria": "cpe:2.3:o:siemens:6bk1602-0aa22-0tp0_firmware:*:*:*:*:*:*:*:*",
"version_end_excluding": "2.7.0"
},
{
"criteria": "cpe:2.3:o:siemens:6bk1602-0aa32-0tp0_firmware:*:*:*:*:*:*:*:*",
"version_end_excluding": "2.7.0"
}
],
"references": [
{
"url": "http://packetstormsecurity.com/files/165225/Apache-Log4j2-2.14.1-Remote-Code-Execution.html",
"source": "security@apache.org",
"tags": [
"Third Party Advisory",
"VDB Entry"
]
},
{
"url": "http://packetstormsecurity.com/files/165260/VMware-Security-Advisory-2021-0028.html",
"source": "security@apache.org",
"tags": [
"Third Party Advisory",
"VDB Entry"
]
},
{
"url": "http://packetstormsecurity.com/files/165261/Apache-Log4j2-2.14.1-Information-Disclosure.html",
"source": "security@apache.org",
"tags": [
"Exploit",
"Third Party Advisory",
"VDB Entry"
]
}
],
"references_total": 103,
"notice": "This product uses the NVD API but is not endorsed or certified by the NVD."
},
"meta": {
"request_id": "req_c256390699144f949112c6a378946306",
"credits_charged": 1,
"credits_remaining": 168
}
}Sample data
What one call returns
A recorded run of cve: the fields and shapes you will get, shortened to 3 items.
| # | criteriastring | version_end_excludingstring |
|---|---|---|
| 1 | cpe:2.3:o:siemens:6bk1602-0aa12-0tp0_firmware:*:*:*:*:*:*:*:* | 2.7.0 |
| 2 | cpe:2.3:o:siemens:6bk1602-0aa22-0tp0_firmware:*:*:*:*:*:*:*:* | 2.7.0 |
| 3 | cpe:2.3:o:siemens:6bk1602-0aa32-0tp0_firmware:*:*:*:*:*:*:*:* | 2.7.0 |
[
{
"criteria": "cpe:2.3:o:siemens:6bk1602-0aa12-0tp0_firmware:*:*:*:*:*:*:*:*",
"version_end_excluding": "2.7.0"
},
{
"criteria": "cpe:2.3:o:siemens:6bk1602-0aa22-0tp0_firmware:*:*:*:*:*:*:*:*",
"version_end_excluding": "2.7.0"
},
{
"criteria": "cpe:2.3:o:siemens:6bk1602-0aa32-0tp0_firmware:*:*:*:*:*:*:*:*",
"version_end_excluding": "2.7.0"
}
]criteria,version_end_excluding cpe:2.3:o:siemens:6bk1602-0aa12-0tp0_firmware:*:*:*:*:*:*:*:*,2.7.0 cpe:2.3:o:siemens:6bk1602-0aa22-0tp0_firmware:*:*:*:*:*:*:*:*,2.7.0 cpe:2.3:o:siemens:6bk1602-0aa32-0tp0_firmware:*:*:*:*:*:*:*:*,2.7.0
Recorded from our API · 3 items shown · 2 datapoints per itemGET /v1/nvd/cve?id=CVE-2021-44228
2 datapoints
Other
- criteriastring
- version_end_excludingstring
Playground
Run this API
curl "https://api.perceptlayer.com/v1/nvd/cve?id=CVE-2021-44228" \
-H "X-API-Key: $API_KEY"NVD · 2 endpoints
Endpoints
Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.
| Endpoint | Required parameters | Returns | Cost |
|---|---|---|---|
GET/v1/nvd/cve | id | idpublishedlast_modifieddescriptioncvss_v31cvss_v2+8 more | 1 credit |
GET/v1/nvd/cve-search | none+8 optional | idstatuspublishedlast_modifieddescriptioncvss_v31+3 more | 1 credit |
Overview
About the NVD API
What you can get
The NVD API returns CVE records from NIST's National Vulnerability Database as JSON through 2 endpoints.
- CVE:
cvetakes anidsuch as CVE-2021-44228. - Search:
cve-searchtakes any ofkeyword,cpe_name(a full CPE 2.3 name),cvss_v3_severity(LOW, MEDIUM, HIGH or CRITICAL),pub_start_dateandpub_end_datetogether (at most 120 days apart, NVD's limit) andhas_kev, withpageandper_page(1 to 100).
Each CVE has its id, status, published, last_modified, English description, cvss_v40, cvss_v31 and cvss_v2 (each with score, severity, vector, exploitability_score and impact_score), weaknesses (CWE ids), kev when the CVE is in CISA's Known Exploited Vulnerabilities catalogue, and a url. The recorded cve call for CVE-2021-44228 returned a CVSS v3.1 score of 10 (CRITICAL), weaknesses CWE-20, CWE-400 and CWE-502, kev added on 2021-12-10 with action due on 2021-12-24, and affected_cpes with version bounds. It also returned the first 25 references, with references_total 103.
How a call works
Search, then look up: GET /v1/nvd/cve-search?keyword=openssl&cvss_v3_severity=CRITICAL&per_page=10 with your key in the X-API-Key header found 44 CVEs in the recording; cve takes one of their ids and adds affected CPEs and references. Answers come from a cache for up to an hour. Every successful call costs 1 credit; failed calls cost nothing.
More apps and media APIs
Use cases
Enrich scanner findings with CVSS scores, vectors and CWE ids
Use the NVD API to enrich scanner findings with CVSS scores, vectors and CWE idsPrioritise patching by whether a CVE is in CISA's Known Exploited Vulnerabilities catalogue
Use the NVD API to prioritise patching by whether a CVE is in CISA's Known Exploited Vulnerabilities catalogueList the CVEs that affect one product version by CPE name
Use the NVD API to list the CVEs that affect one product version by CPE nameLet a security agent explain a CVE from its description and references
Use the NVD API to let a security agent explain a CVE from its description and referencesFAQ
Questions
Is this the official NVD API?
No. Perceptlayer is an independent service and is not affiliated with NIST or the NVD. The NVD API is free, with a request limit per caller that a free NVD key raises. This API calls it on your behalf and adds one key for every source on Perceptlayer, a flatter record with the primary CVSS score of each version picked out, a cache of up to an hour, and no charge for failed calls.
Is there an NVD notice I need to show?
Every answer carries it in a `notice` field: "This product uses the NVD API but is not endorsed or certified by the NVD."
Why does a date-range search fail?
NVD allows at most 120 days between `pub_start_date` and `pub_end_date`, and needs both. A longer or one-sided range is refused with an error and costs nothing; split it into ranges of 120 days or less.
How much does the NVD API cost?
Each successful call costs one credit, and each page of results is one call. New accounts get free credits to start, and credit packs bring the price down as you scale.
Should I build a NVD scraper instead?
You can, but a NVD scraper is code you maintain: page changes break it, requests get blocked, and NVD's terms govern how you collect data. The NVD API gives you 2 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.
Try the NVD API with 100 free credits
No credit card. Failed calls are never billed.