VirusTotal API 2.0 client for node.js.
npm install virustotal.js
- setKey(apiKey) - Sets the VirusTotal API key
- getDomainReport(resource, callback) - Retrieve a domain report
- getFileReport(resource, callback) - Retrieve a file scan report
- getIpReport(resource, callback) - Retrieve IP address report
- getUrlReport(resource, [scan,] callback) - Retrieve an URL scan report
- makeComment(resource, comment, [tags,] callback) - Creates a new comment for file/URL
- rescanFile(resource, callback) - Rescan already submitted files
- scanFile(resource, callback) - Send and scan a file
- scanUrl(resource, callback) - Submit and scan a URL
var virustotal = require('virustotal.js');
virustotal.setKey('your-api-key');
virustotal.scanFile('file.exe', function (err, res) {
if (err) {
console.error(err);
return;
}
console.log(res);
});