0% found this document useful (0 votes)
80 views1 page

NVD API Request Guide

Uploaded by

ccode1942
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
80 views1 page

NVD API Request Guide

Uploaded by

ccode1942
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

NVD CVE API - How to Request Data

■ What is a request?
A request is like you asking the NVD database for information. You send a message (request) to
their server, and the server replies with the data you want.

Method 1 – Using your web browser (simplest)


You can paste the API URL in your browser’s address bar and hit Enter!
For example, paste this:
This will show the first 10 CVE records in JSON format.

Method 2 – Using a tool like Postman


1. Install Postman from https://www.postman.com/downloads/.
2. Open Postman and create a new request.
3. Enter the URL:
4. Set the request method to GET.
5. Click Send.
6. You will see the response JSON with CVE data.

Method 3 – Using Python (programmatically)


You can write a small script that sends a request and reads the response.
import requests # API endpoint url = "https://services.nvd.nist.gov/rest/json/cves/2.0" # Parameters
params = { "startIndex": 0, "resultsPerPage": 10 } # Send GET request response = requests.get(url,
params=params) # Convert response to JSON data = response.json() # Print the first CVE ID
print(data['vulnerabilities'][0]['cve']['id'])

■ Important Notes
• The method for this request is GET, meaning you are only retrieving information.
• The parameters (startIndex, resultsPerPage) tell the API what data you want.
• The response is a JSON object, which you need to parse to extract useful information.

■ Now It’s Your Turn!


Would you like to:
1. Try making a request in your browser first?
2. Try using Python to send the request?
3. Try Postman and see the output without coding?
Let me know how you’d like to proceed, and I can guide you through it in detail!

You might also like