get https://www.virustotal.com/api/v3/collections//
Special privileges required
Reports & Analysis are only available to users with the Google Threat Intelligence (Google TI) Enterprise or Enterprise Plus licenses.
This endpoint returns available Report's relationships that are described in the Reports object documentation.
Examples
Get 15 files related to the Zarya Hacktivist Group report--24-10072685
import requests
import urllib
object_id = "report--24-10072685"
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 this Blizzard related report report--42da08f2694dbad8af81281fa3ccc83a44891c13bb56134ca54098127977c222
import requests
import urllib
object_id = "report--42da08f2694dbad8af81281fa3ccc83a44891c13bb56134ca54098127977c222"
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)