get https://www.virustotal.com/api/v3/threat_profiles/
Public Preview
Threat Profile module is provided as a public preview and is subject to change. Use with caution.
This endpoint returns the list of user's Threat Profiles.
Next to each Threat Profile object, you'll see a parameter specifying user's relationship to it, structured as follows:
"context_attributes":
{
"shared_with_me": "<_boolean_> if the Threat Profile has been shared with ('true') or created by the user ('false').",
"role": "<_string_> user's role or privileges regarding the Threat Profile as 'viewer','owner' or 'editor'."
}
Examples
Get my first 5 of my Threat Profiles.
import requests
limit = 5
url = f"https://www.virustotal.com/api/v3/threat_profiles?limit={limit}"
headers = {
"accept": "application/json","x-apikey": <api-key>
}
response = requests.get(url, headers=headers)
Get my complete list of my Threat Profiles.
import requests
url = f"https://www.virustotal.com/api/v3/threat_profiles"
headers = {
"accept": "application/json","x-apikey": <api-key>
}
while url: # pagination
response = requests.get(url, headers=headers)
response = response.json()
url = response["links"].get("next",None) # pagination