-
Notifications
You must be signed in to change notification settings - Fork 0
Usage
cookie edited this page Apr 4, 2024
·
5 revisions
- First, get your API key from: https://metadefender.opswat.com/account
- import Package as
from MetaDefender_api import MetaDefender_api
Response data see: Documentation
Example:
from MetaDefender.api import MetaDefender_api
key = "1234ABC"
output = MetaDefender_api.Apikey_info(key)
print (output)
Response data see: Documentation
Example:
from MetaDefender.api import MetaDefender_api
key = "1234ABC"
output = MetaDefender_api.Apikey_remaining_limits(key)
print (output)
Response data see: Documentation
Example:
from MetaDefender.api import MetaDefender_api
key = "1234ABC"
dataId = "ZTE2MTIyNkhKeGs5WElSNHhIMVFGLVlUYk85LQ"
output = MetaDefender_api.Fetch_analysis_result(dataId, key)
print (output)
Response data see: Documentation
Example:
from MetaDefender.api import MetaDefender_api
key = "1234ABC"
filepath = "your/file/path/ok.exe"
output = MetaDefender_api.File_Scanning(filepath, "", 1, 0, False, key)
print (output)
args:
filepath
samplesharing=1
privateprocessing=0
return_with_results=True
password=""
key
Response data see: Documentation
Example:
from MetaDefender.api import MetaDefender_api
key = "1234ABC"
hash = "6A5C19D9FFE8804586E8F4C0DFCC66DE"
output = MetaDefender_api.Hash_Lookup(hash, key)
print (output)