National Institute of Standards and Technology (NIST) Cves API

The Cves API from National Institute of Standards and Technology (NIST) — 1 operation(s) for cves.

Operations 1

GET /cves/2.0 Search CVE records #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/nist-cves-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

nist-cves-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: NIST NVD CVE Cvehistory Cves API
  description: The National Vulnerability Database (NVD) CVE API provides programmatic access to CVE records, CVSS metrics, weakness (CWE) data, and configuration information for security vulnerabilities.
  version: '2.0'
  contact:
    name: NIST National Vulnerability Database
    url: https://nvd.nist.gov/developers
  license:
    name: Public Domain
servers:
- url: https://services.nvd.nist.gov/rest/json
  description: NVD production REST endpoint
security:
- apiKey: []
tags:
- name: Cves
paths:
  /cves/2.0:
    get:
      summary: Search CVE records
      description: Returns a paginated list of CVE records that match the supplied filter parameters. Supports filters by CVE ID, keyword, CPE, CVSS metrics, publication and modification dates.
      operationId: getCves
      parameters:
      - name: cveId
        in: query
        description: Returns a single CVE record by its CVE identifier.
        required: false
        schema:
          type: string
          example: CVE-2023-1234
      - name: cpeName
        in: query
        description: Returns CVE records associated with the supplied CPE 2.3 name.
        required: false
        schema:
          type: string
      - name: cvssV3Severity
        in: query
        description: Filter results by CVSS v3 qualitative severity rating.
        required: false
        schema:
          type: string
          enum:
          - LOW
          - MEDIUM
          - HIGH
          - CRITICAL
      - name: keywordSearch
        in: query
        description: Returns CVE records where the description contains the keyword.
        required: false
        schema:
          type: string
      - name: pubStartDate
        in: query
        description: Filter by CVE publish start date (ISO 8601).
        required: false
        schema:
          type: string
          format: date-time
      - name: pubEndDate
        in: query
        description: Filter by CVE publish end date (ISO 8601).
        required: false
        schema:
          type: string
          format: date-time
      - name: lastModStartDate
        in: query
        description: Filter by last modified start date (ISO 8601).
        required: false
        schema:
          type: string
          format: date-time
      - name: lastModEndDate
        in: query
        description: Filter by last modified end date (ISO 8601).
        required: false
        schema:
          type: string
          format: date-time
      - name: resultsPerPage
        in: query
        description: Number of CVE records to return per page (max 2000).
        required: false
        schema:
          type: integer
          default: 2000
          maximum: 2000
      - name: startIndex
        in: query
        description: Zero-based offset into the result set.
        required: false
        schema:
          type: integer
          default: 0
      responses:
        '200':
          description: Paginated CVE response.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CveResponse'
        '403':
          description: Request denied (rate-limited or invalid parameters).
        '404':
          description: CVE not found.
      tags:
      - Cves
components:
  schemas:
    CveResponse:
      type: object
      properties:
        resultsPerPage:
          type: integer
        startIndex:
          type: integer
        totalResults:
          type: integer
        format:
          type: string
        version:
          type: string
        timestamp:
          type: string
          format: date-time
        vulnerabilities:
          type: array
          items:
            type: object
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: apiKey
      description: Optional API key obtained from https://nvd.nist.gov/developers/request-an-api-key. Increases rate limits.