SiteBot API
Search
⌃K

Antivirus

The Antivirus API scans a file for trojans, viruses, malware & other malicious threats.
A file to be scanned can be uploaded in the API call or referenced by URL. This API is billed based on the amount of data scanned. You may want to lookup the md5 prior to running a scan to optimize costs.
get
https://api.sitebot.com/api/v1
/av/scan-url
Perform an antivirus scan on the file located at the url provided.
post
https://api-upload.sitebot.com/api/v1
/av/scan-upload
Perform an antivirus scan on the file uploaded.
get
https://api.sitebot.com/api/v1
/av/lookup
Lookup the antivirus summary of a md5 checksum.

Callback URL

An optional callback URL can be provided in the scan-url and scan-upload methods. When the scan completes the json body of the lookup method will be posted to the callback URL.

Example URL

curl --header "x-key: [YOUR-API-KEY]" \
"https://api.sitebot.com/api/v1/av/scan-url.json?url=[URL-TO-SCAN]&callback=[CALLBACK-URL]"

Example Upload

curl --header "x-key: [YOUR-API-KEY]" \
--header "content-type: application/octet-stream" \
--header "x-callback: https://www.mywebsite/rpc/sitebot-callback" \
--data-binary "@/path/to/file" \
"https://api-upload.sitebot.com/api/v1/av/scan-upload"