Overview
VirusTotal scans files and URLs against 70+ antivirus engines in one API call. Great for beginners building security tools or link-safety checkers.
Beginner Tip
Free tier allows 4 requests/minute. Cache results locally to avoid burning your quota on repeated scans.
Available Data
Example Response
{
"url": "https://example.com",
"safe": true,
"threat_level": "none",
"categories": [
"clean"
],
"scan_date": "2025-01-15T10:00:00Z"
} Field Reference
data.attributes.stats.malicious Count of antivirus engines that flagged the resource as malicious data.attributes.stats.harmless Count of engines that found the resource safe data.attributes.status Analysis state: queued, in-progress, or completed data.id Unique analysis ID used to poll for results data.attributes.last_analysis_date Unix timestamp of the most recent completed scan Implementation Example
const url = "https://www.virustotal.com/en/documentation/public-api/";
// Replace headers or query params with the values required by this API.
const response = await fetch(url, {
headers: {
"X-API-Key": "YOUR_API_KEY"
}
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Matrix Score Breakdown
Partially tested on Apr 5, 2026
Technical Specifications
Related Tags
Recipes Using VirusTotal
Build something with this API. Each recipe includes step-by-step instructions and code outlines.
Similar APIs
View All →AbuseIPDB
AbuseIPDB lets you check whether an IP address has been reported for malicious activity like spam, hacking, or DDoS attacks.
AlienVault Open Threat Exchange (OTX)
AlienVault Open Threat Exchange (OTX) provides programmatic access to ip/domain/url reputation via REST API.
CAPEsandbox
CAPEsandbox is an open-source malware analysis platform that executes suspicious files in an isolated environment and reports on their behavior.
Google Safe Browsing
Google Safe Browsing lets you check any URL against Google's constantly updated lists of phishing sites, malware distributors, and unwanted software.
MalDatabase
MalDatabase provides programmatic access to provide malware datasets and threat intelligence feeds via REST API.