Skip to content
cookie edited this page Apr 4, 2024 · 5 revisions

how to use

Commands

Apikey info

Response data see: Documentation
Example:

from MetaDefender.api import MetaDefender_api

key      = "1234ABC"
output = MetaDefender_api.Apikey_info(key)

print (output)

Apikey remaining limits

Response data see: Documentation
Example:

from MetaDefender.api import MetaDefender_api

key      = "1234ABC"
output = MetaDefender_api.Apikey_remaining_limits(key)

print (output)

Fetch analysis result

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)

File Scanning

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

Hash Lookup

Response data see: Documentation
Example:

from MetaDefender.api import MetaDefender_api

key      = "1234ABC"
hash     = "6A5C19D9FFE8804586E8F4C0DFCC66DE"
output = MetaDefender_api.Hash_Lookup(hash, key)

print (output)

Clone this wiki locally