<filename>Code/viroustotal_API.py
import requests

def Response_of_Hash(hashcode) :
    api_key = '<KEY>'
    REPORT_URL = 'https://www.virustotal.com/vtapi/v2/file/report' 
    parameters = {'apikey': api_key,'resource': hashcode }
    response = requests.get(REPORT_URL,params=parameters)

    data = response.json()
    scan = data.get("scans", {})
    return scan
<filename>Code/viroustotal_API.py
import requests

def Response_of_Hash(hashcode) :
    api_key = '<KEY>'
    REPORT_URL = 'https://www.virustotal.com/vtapi/v2/file/report' 
    parameters = {'apikey': api_key,'resource': hashcode }
    response = requests.get(REPORT_URL,params=parameters)

    data = response.json()
    scan = data.get("scans", {})
    return scan