<gh_stars>1-10
import requests
import json

host = "investigate.api.umbrella.com"
api_key = "<KEY>"
domain = "internetbadguys.com"

print(f"\n==> List Threat Grid samples associated with a domain name")

url = f"https://{host}/samples/{domain}?limit=100&sortby=score"
headers = {'Authorization':'Bearer ' + api_key}

try:
	response = requests.get(url, headers=headers)
except:
	response.raise_for_status()

print (domain)
print (response.json())

import requests
import json

host = "investigate.api.umbrella.com"
api_key = "<KEY>"
domain = "internetbadguys.com"

print(f"\n==> List Threat Grid samples associated with a domain name")

url = f"https://{host}/samples/{domain}?limit=100&sortby=score"
headers = {'Authorization':'Bearer ' + api_key}

try:
	response = requests.get(url, headers=headers)
except:
	response.raise_for_status()

print (domain)
print (response.json())