# NVD CVE Vulnerabilities API with CISA KEV Flag (`plain-build/nvd-cve-vulnerabilities-scraper`) Actor

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.

- **URL**: https://apify.com/plain-build/nvd-cve-vulnerabilities-scraper.md
- **Developed by:** [Plain Build](https://apify.com/plain-build) (community)
- **Categories:** Developer tools, Open source
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.28 / 1,000 cves

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## NVD CVE Vulnerabilities API with CISA KEV Flag

This NVD CVE scraper returns the newest CVE vulnerabilities from the National Vulnerability Database, 10 CVEs by default. It marks each CVE that CISA lists as known exploited, with the due date. Raise Maximum results for more of the last 7 days, or filter by published, modified or KEV-added date, keyword, severity, vendor or product. Turn on Only new CVEs (new_since_last_run) for a daily CVE feed. No login, no key; USD 1.50 per 1,000 CVEs (USD 1.28 on Silver and above).

### What NVD CVE Vulnerabilities API with CISA KEV Flag returns

The data comes from the National Vulnerability Database (NVD) and CISA through the NVD's official CVE API 2.0 and CISA's Known Exploited Vulnerabilities JSON feed (https://nvd.nist.gov/developers/vulnerabilities). This Actor is not affiliated with, endorsed by or sponsored by the National Vulnerability Database (NVD) and CISA. It reads only that API and that feed, one request at a time, and it checks robots.txt before the first request to each host.

### Who it is for

- Security teams and managed security providers who want new CVEs, with severity and the CISA KEV flag, in their ticketing or alerting every day.
- Vulnerability management and patch teams who track CVEs for the vendors and products they run.
- Developers of security tools and dashboards who want NVD records as JSON or CSV without paging the API and keeping to its rate limit.
- Analysts who follow CVE volume, severity and weakness types over time.

### Key features

- One row per CVE: id, published and modified times, NVD status, English description, CVSS version, score, severity, vector and type, CWE ids, vendors, products, up to 10 reference links and the NVD page.
- CISA Known Exploited Vulnerabilities flag on every row and, for listed CVEs, the date CISA added the CVE, the due date and known ransomware use.
- Newest by publication date first, in every date type: the Actor reads the API's last page first, so a small run gets the latest published CVEs.
- Filters: published, last-modified or KEV-added date window of up to 120 days, or all years (date_type any); keyword, severities, vendors, products and only known exploited.
- Only new CVEs (new_since_last_run) delivers and charges only CVEs you have not had for the same filters.
- Vendors and products also for CVEs the NVD has not analysed yet, from the CNA's affected list.
- Errors and empty results go to a separate errors dataset and are not charged.

### How it works

The Actor first reads CISA's Known Exploited Vulnerabilities catalog (one JSON feed, about 1,800 CVEs) and then calls the NVD's CVE API 2.0 (services.nvd.nist.gov/rest/json/cves/2.0) for your date window, keyword and KEV choice, without rejected CVEs. The API lists CVEs oldest first, up to 2,000 a request, so the Actor reads the last page first and goes back, giving the newest CVEs first. Each CVE becomes one row: id, dates, status, English description, the CVSS score, severity and vector (v3.1, else v4.0, v3.0 or v2; the NVD's own score before the CNA's), CWE ids, vendors and products (from the NVD's CPE configurations, else from the CNA's affected list), up to 10 reference links, the NVD page and the KEV flag with the date CISA added it, the due date and known ransomware use. Severity, vendor and product filters are applied to each CVE with all its vendors and products; a row lists the first 10 vendors and 20 products, so a CVE found by a later name does not show that name. A vendor that reads as a person's name, or holds a link, an at-sign or contact details, is left out with its products, and so are reference links to social profiles, personal pages and links that hold an email; a GitHub link is kept only on GitHub's advisory pages or when its account is one of the CVE's own vendors or products. The description is cleaned the same way as all free text, and every name after a credit phrase such as reported by, discovered by or thanks to is replaced by \[removed]. One request at a time, 6.5 seconds after the answer to the one before (the NVD allows 5 requests in 30 seconds without a key); after a 403, 429 or 503 answer the run waits 30 seconds, or the seconds named in Retry-After, and tries again, up to 3 times; a Retry-After over 2 minutes fails the run at once.

### How to try it

1. Open the Input tab. The prefilled input returns the 25 newest CVEs the NVD published in the last 7 days, each with its CISA KEV flag.
2. Click Start. A run waits 6.5 seconds between requests, inside the NVD's public limit of 5 requests in 30 seconds, and reads up to 2,000 CVEs a request, newest first; the prefilled run usually finishes in under a minute.
3. Open the Output tab to see the results as a table, or export them as JSON, CSV or Excel.

To get new CVEs every day, schedule a daily run with `new_since_last_run` on and `date_from` and `date_to` empty. Each run then delivers and charges only CVEs you have not had from this Actor for the same filters.

- A CVE held back by `max_items` or your spending limit comes in a later run only after all newer CVEs, because the Actor reads newest first: a run whose `max_items` is lower than the new CVEs since the run before (about 600 a day without filters in November 2026) does not catch up. After 30 days held-back CVEs are no longer read, and the run says so in one uncharged error item (`held_back_dropped`). Raise `max_items`, add filters or run more often.
- With `date_type` last_modified a daily run delivers each CVE once, the first time it sees it, not again after later changes, while its id is among the last 50,000 ids the Actor remembers for that date type and filters; an older CVE that changes after that comes again and is charged again.
- Each combination of date type and filters has its own memory, a record in one key-value store named `nvd-cve-vulnerabilities-scraper-state` in your account. Deleting the store starts every combination again.
- Two runs at the same time can deliver and charge the same CVE, so leave a gap between scheduled runs.
- The NVD asks automated clients to keep long gaps between update runs, so schedule daily rather than hourly.

This product uses the NVD API but is not endorsed or certified by the NVD. The rows are changed from the NVD's: a selection of fields, with free text cleaned. CVE descriptions are CVE content of The MITRE Corporation, used under the CVE Terms of Use (https://www.cve.org/Legal/TermsOfUse): Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation. "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy." The Known Exploited Vulnerabilities flag comes from CISA's catalog, under the Creative Commons 0 1.0 licence; this Actor is not endorsed by CISA or DHS.

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `date_type` | string | "published" | 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). |
| `date_from` | string | "" | 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. |
| `date_to` | string | "" | 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. |
| `keyword` | string | "" | 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. |
| `severities` | array | \[] | 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. |
| `vendors` | array | \[] | 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. |
| `products` | array | \[] | 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. |
| `only_kev` | boolean | false | 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. |
| `new_since_last_run` | boolean | false | 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. |
| `max_items` | integer | 10 | 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. |

### Output

Each result has these fields. Missing values are `null`, never a different type.

| Field | Type | Description |
|---|---|---|
| `item_type` | string | Always `cve` |
| `source_id` | string | The CVE id, for example CVE-2026-12345 |
| `cve_id` | string | The CVE id, for example CVE-2026-12345 |
| `published` | string | When the NVD published the CVE, ISO time in UTC |
| `last_modified` | string or null | When the CVE last changed in the NVD, ISO time in UTC |
| `status` | string or null | The NVD's status: Received, Awaiting Analysis, Undergoing Analysis, Analyzed, Modified or Deferred |
| `description` | string or null | The CVE's English description; at most 5,000 characters |
| `cvss_version` | string or null | The CVSS version of the score: 3.1, 4.0, 3.0 or 2.0 |
| `cvss_score` | number or null | The CVSS base score, 0 to 10 |
| `severity` | string or null | CRITICAL, HIGH, MEDIUM, LOW or NONE, from the same score |
| `cvss_vector` | string or null | The CVSS vector string of the same score |
| `cvss_type` | string or null | The NVD's class of the score's source: Primary for the NVD or a numbering authority (CNA) at the NVD's provider level, Secondary for another source. The score is the first of v3.1, v4.0, v3.0 and v2 that the CVE has; within one version the NVD's own score comes first. |
| `cwe_ids` | string or null | Weakness ids, comma separated, for example CWE-79, CWE-89; NVD-CWE-Other and NVD-CWE-noinfo as the NVD gives them |
| `vendors` | string or null | Affected vendors, comma separated, at most 10; a vendor that reads as a person's name, or holds a link, an at-sign or contact details, is left out with its products |
| `products` | string or null | Affected products, comma separated, at most 20; none of a vendor that reads as a person's name or holds a link, an at-sign or contact details |
| `products_source` | string or null | nvd_cpe when vendors and products come from the NVD's CPE configurations, cna when from the CNA's affected list |
| `reference_urls` | string or null | Up to 10 reference links (advisories, patches, issues), separated by spaces; links to social profiles or personal pages left out |
| `kev` | boolean | True when CISA lists the CVE in its Known Exploited Vulnerabilities catalog |
| `kev_date_added` | string or null | The day CISA added the CVE to the catalog, YYYY-MM-DD |
| `kev_due_date` | string or null | The day US federal agencies must fix it by, YYYY-MM-DD |
| `kev_ransomware_use` | string or null | Known or Unknown: whether CISA knows the flaw is used in ransomware campaigns |
| `nvd_url` | string | The CVE's page on nvd.nist.gov |
| `source_url` | string | The record on the source site |
| `fetched_at` | string | When the record was fetched, ISO 8601 UTC |
| `actor_version` | string | The build that produced the record |

Example item:

```json
{
  "item_type": "cve",
  "source_id": "<source_id>",
  "cve_id": "<cve_id>",
  "published": "<published>",
  "last_modified": "<last_modified>",
  "status": "<status>",
  "description": "<description>",
  "cvss_version": "<cvss_version>",
  "cvss_score": 0,
  "severity": "<severity>",
  "cvss_vector": "<cvss_vector>",
  "cvss_type": "<cvss_type>",
  "cwe_ids": "<cwe_ids>",
  "vendors": "<vendors>",
  "products": "<products>",
  "products_source": "<products_source>",
  "reference_urls": "<reference_urls>",
  "kev": true,
  "kev_date_added": "<kev_date_added>",
  "kev_due_date": "<kev_due_date>",
  "kev_ransomware_use": "<kev_ransomware_use>",
  "nvd_url": "<nvd_url>",
  "source_url": "<source_url>",
  "fetched_at": "2026-11-04T09:30:00Z",
  "actor_version": "0.1.1"
}
```

Free-text fields are cleaned before delivery: email addresses, phone numbers, @handles and person names introduced by words such as "contact", "recruiter", "founder" or "manager" are replaced with `[removed]`. The cleaning follows fixed rules, so a name written elsewhere in the text, or in lower case, can remain.

### What it does not do

- A search reads at most 120 days of dates, the NVD's limit for one date range; date_type any reads all years, newest published first; severity, vendor and product filters need a date window and are refused with it.
- The severity, vendor and product filters are applied after the NVD answers, so a narrow filter over a long window reads every page of that window, one request every 6.5 seconds.
- A row lists at most 10 vendors and 20 products. The vendor and product filters read all of them, so a CVE found by a later name does not show that name in the row.
- CISA's KEV feed is read first. When it cannot be read after its retries, or lists too few CVEs to be the whole catalog, the run fails with an uncharged error item and delivers no CVEs, rather than mark every CVE as not exploited.
- The NVD's public rate limit is shared by every keyless caller from the same address; when the NVD refuses a request, the run waits and retries.
- Rejected CVEs are not returned. CVSS is one score per CVE: v3.1, else v4.0, v3.0 or v2, and within one version the NVD's own before another source's, so a CNA's v3.1 comes before the NVD's v2; CVEs without a score have an empty severity.
- Vendors that read as a person's name (developers who publish software under their own name; also two or three words ending in a common family name from the US Census Bureau's list of about 6,300, written with spaces or underscores, without a business word) or hold a link, an at-sign or contact details, with their products, and reference links to social profiles, personal pages and gists are left out of the rows; a developer whose given name and family name are on neither list can remain, and a firm whose name is two or three plain words ending in a common family name ("Example Kim") is left out too; family names that are English words (King, White, Price) are not used. GitHub links are kept only on GitHub's advisory pages or when the account is one of the CVE's vendors or products, because a link cannot show whether an account is a person's: on the 2,000 newest CVEs of 21 Nov 2026 this left out 308 of 1,852 GitHub links, in 165 CVEs, and 21 of them kept no link at all. Names and handles after a credit phrase in the description, and the name of a vendor left out as a person, are replaced by \[removed]; a one-word name there can remain, a name in other wording ("X reported that", "as X mentioned") too, and some product or tool names go.
- This product uses the NVD API but is not endorsed or certified by the NVD. CVE descriptions are CVE content of The MITRE Corporation (https://www.cve.org/Legal/TermsOfUse); the KEV catalog is CISA's, under CC0 1.0, and this Actor is not endorsed by CISA or DHS.

### How much does the NVD CVE Vulnerabilities API cost?

You pay per CVE delivered to the default dataset. Errors and empty results are written to a separate `errors` dataset and are never charged.

| Plan tier | Price per 1,000 CVEs |
|---|---|
| Free and Bronze | USD 1.50 |
| Silver and above | USD 1.28 |

Example: a run that delivers 1,000 CVEs costs USD 1.50 on the Free and Bronze tiers and USD 1.28 on Silver and above, plus the platform's start event of USD 0.00005. If you set a maximum cost per run, the Actor stops before it would go over it and delivers nothing it cannot charge for.

### Other Actors in this family

This Actor is part of a family of job and public-data scrapers built on the same core: one result per charge, a separate uncharged errors dataset, and no person fields. The others on Apify Store:

- [Greenhouse, Lever, Ashby & Workable Job Board API](https://apify.com/plain-build/ats-job-boards-scraper)
- [AusTender Government Contracts API: Australia](https://apify.com/plain-build/austender-contracts-scraper)
- [CKAN Open Data Portals: Government Datasets](https://apify.com/plain-build/ckan-open-data-scraper)
- [Federal Register and USAspending Contract Awards](https://apify.com/plain-build/federal-register-usaspending-scraper)
- [France INSEE Sirene Companies: Search by NAF Code](https://apify.com/plain-build/france-sirene-companies-scraper)
- [GitHub Repositories Search API: Org Repos](https://apify.com/plain-build/github-repositories-scraper)
- [LEI Records Scraper: New Entities (GLEIF Data)](https://apify.com/plain-build/gleif-lei-records-scraper)
- [Grants.gov Scraper: US Federal Grant Opportunities](https://apify.com/plain-build/grants-gov-opportunities-scraper)
- [Hacker News Who Is Hiring Scraper: Official HN API](https://apify.com/plain-build/hacker-news-hiring-scraper)
- [Hugging Face Hub Models and Datasets by Task](https://apify.com/plain-build/huggingface-hub-scraper)
- [Norway, Czech & Finland Company Register Scraper](https://apify.com/plain-build/nordic-czech-company-registers-scraper)
- [npm Package Search: Downloads and Dependents](https://apify.com/plain-build/npm-packages-scraper)
- [Open Data Portals Dataset Catalog (Socrata)](https://apify.com/plain-build/open-data-portals-scraper)
- [OpenVSX VSCode Extensions: Downloads, Ratings](https://apify.com/plain-build/open-vsx-extensions-scraper)
- [Product Hunt Launches Feed Scraper: Website Links](https://apify.com/plain-build/product-hunt-launches-scraper)
- [Shopify & WooCommerce Store Data by Domain List](https://apify.com/plain-build/shopify-woocommerce-stores-scraper)
- [Tech Stack Detector for Bulk Domain Lists](https://apify.com/plain-build/tech-stack-detection-scraper)
- [TED Tenders and Awards Scraper: EU Notices by CPV](https://apify.com/plain-build/ted-eu-tenders-scraper)
- [UK Contracts Finder Scraper: Awards and Tenders](https://apify.com/plain-build/uk-contracts-finder-scraper)
- [Find a Tender Service Notices: UK Public Tenders](https://apify.com/plain-build/uk-public-tenders-scraper)
- [WeWorkRemotely Jobs Scraper: All 10 Categories](https://apify.com/plain-build/weworkremotely-jobs-scraper)
- [Procurement Notices Scraper (World Bank Data)](https://apify.com/plain-build/world-bank-procurement-scraper)

### NVD CVE Vulnerabilities API FAQ

#### Is there personal data in the output?

No personal data by design. The output holds facts about software vulnerabilities. A vendor name that reads as a person's name (also two or three words ending in a common family name), or holds a link, an at-sign or contact details, is left out with its products, and so are reference links to social profiles, personal pages, gists, links that hold an email, a phone number or a password, and GitHub links outside GitHub's advisory pages whose account is not one of the CVE's vendors or products; the numbering authorities' mailboxes are never delivered. Emails, phones and names after words such as contact are removed from the description. After a credit phrase (reported by, discovered by, suggested by, triaged by, thanks to, credit, Reported-by, Signed-off-by and similar) every name of two or more words and every handle up to the end of the sentence is replaced by \[removed], everywhere in the description, and so is a name right before an email in angle brackets and the name of a vendor left out as a person, unless the name itself is an organisation, team or tool or is made of the CVE's own vendor and product words; some product and tool names after such a phrase go too. Some cases can pass. A credited name of one word, a name written in lower case that the name lists do not know, a name in a wording without such a phrase ("X reported that", "as X mentioned"), a vendor whose given and family names are on none of the name lists, and a vendor or GitHub account given as a handle that is itself the CVE's vendor.

#### Is the data accurate?

The data comes from the NVD's CVE API 2.0 and CISA's Known Exploited Vulnerabilities JSON feed as they publish it. Accuracy is not guaranteed. The description is free text written by the CVE's numbering authority, and new CVEs often have no NVD score or CPE data yet.

#### Who runs this Actor?

It is not affiliated with the National Vulnerability Database (NVD) and CISA.

#### How is the data collected?

The official API or open data is used where the source offers it. This Actor uses only the NVD's official CVE API 2.0 and CISA's public Known Exploited Vulnerabilities feed.

#### How do I get new CVEs every day?

Schedule a daily run with Only new CVEs on and the dates empty. Each run reads the last 7 days at least and delivers and charges only CVEs you have not had for the same filters; add severities or vendors to narrow it.

#### Is there a free NVD CVE API?

Yes. The NVD's CVE API 2.0 is free and keyless within a public rate limit. This Actor calls it for you within that limit, reads newest first, adds the CISA KEV flag to each CVE, remembers what it delivered for Only new CVEs, and puts errors in a separate uncharged dataset.

#### Can I get only CVEs that CISA lists as known exploited?

Yes. Turn on Only known exploited, or set date_type to kev_added to get the CVEs CISA added to its catalog in your window.

#### Can I search CVEs by vendor or product?

Yes. Set vendors, for example \["fortinet"], or products, for example \["exchange server"], with a date window of up to 120 days; the Actor keeps CVEs whose vendor or product names contain those words.

#### What may I do with the data?

You are responsible for complying with the law and with the source's terms when you use the data.

#### Something is broken?

Open an issue on the Issues tab with the run link and your input.

# Changelog

This Actor's version history is a separate document: https://apify.com/plain-build/nvd-cve-vulnerabilities-scraper/changelog.md

# Actor input Schema

## `date_type` (type: `string`):

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

## `date_from` (type: `string`):

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.

## `date_to` (type: `string`):

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.

## `keyword` (type: `string`):

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.

## `severities` (type: `array`):

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.

## `vendors` (type: `array`):

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.

## `products` (type: `array`):

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.

## `only_kev` (type: `boolean`):

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.

## `new_since_last_run` (type: `boolean`):

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.

## `max_items` (type: `integer`):

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.

## Actor input object example

```json
{
  "date_type": "published",
  "date_from": "",
  "date_to": "",
  "keyword": "",
  "severities": [],
  "vendors": [],
  "products": [],
  "only_kev": false,
  "new_since_last_run": false,
  "max_items": 25
}
```

# Actor output Schema

## `results` (type: `string`):

One item per cve.

## `errors` (type: `string`):

Records that could not be delivered, and queries with no results. Not charged.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "max_items": 25
};

// Run the Actor and wait for it to finish
const run = await client.actor("plain-build/nvd-cve-vulnerabilities-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "max_items": 25 }

# Run the Actor and wait for it to finish
run = client.actor("plain-build/nvd-cve-vulnerabilities-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "max_items": 25
}' |
apify call plain-build/nvd-cve-vulnerabilities-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,plain-build/nvd-cve-vulnerabilities-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/RqHebCztBLFKahWRM/builds/wYGDf0ewQoQqKbYZ0/openapi.json
