get
https://www.virustotal.com/api/v3/collections///download/
Use this endpoint to export IoCs from objects associated with the vulnerability. Supported formats include JSON, CSV, and STIX.
Examples
Export files related to a given Vulnerability
import requests
import urllib
object_id = "vulnerability--cve-2022-30190"
relationship = "files"
format = "stix"
url = f"https://www.virustotal.com/api/v3/collections/{object_id}/{relationship}/download/{format}"
headers = {"accept": "application/json","x-apikey": <api-key>}
response = requests.get(url, headers=headers)