get https://www.virustotal.com/api/v3/collections//
Special privileges required
Vulnerability Intelligence is only available to users with the Google Threat Intelligence (Google TI) Enterprise or Enterprise Plus licenses.
This endpoint returns available Vulnerability's relationships that are described in the Vulnerability object documentation.
Examples
Get 5 files related to the vulnerability--cve-2024-6387
vulnerability
import requests
import urllib
object_id = "vulnerability--cve-2024-6387"
relatinship = "files"
limit = 10
url = f"https://www.virustotal.com/api/v3/collections/{object_id}/{relatinship}?limit={limit}"
headers = {"accept": "application/json","x-apikey": <api-key>}
response = requests.get(url, headers=headers)
Get the names and descriptions of all the objects associated to the Follina vulnerability vulnerability--cve-2022-30190
import requests
import urllib
object_id = "vulnerability--cve-2022-30190"
relatinship = "associations"
relationship_attributes = "name,description"
url = f"https://www.virustotal.com/api/v3/collections/{object_id}?relationships={relatinship}&relationship_attributes={relationship_attributes}"
headers = {"accept": "application/json","x-apikey": <api-key>}
response = requests.get(url, headers=headers)