- Takes: File
- Passive: the target is not contacted
- Plan: Public and Premium API
Returns the File object: hashes, names, size, type, submission dates, the latest result of each antivirus engine and the count of verdicts per category, community reputation and votes. Some attributes (capabilities tags, downloadable) are Premium API only.
Path parameters
idSHA-256, SHA-1 or MD5 identifying the file
Response fields · 16ShowHide
id
The file's SHA-256
type
Always "file"
md5
MD5 of the file
sha1
SHA-1 of the file
sha256
SHA-256 of the file
meaningful_name
The most informative of the file's names
names[]
All names the file has been seen with
size
Size in bytes
type_description
Human-readable file type
first_submission_date
UTC timestamp of the first submission to VirusTotal
last_analysis_date
UTC timestamp of the most recent scan
last_analysis_stats
Number of engines per verdict category (malicious, suspicious, undetected, harmless, timeout, ...)
last_analysis_results
Latest result per engine, keyed by engine name: category, engine_name, engine_version, engine_update, method, result
reputation
Score from community votes
times_submitted
How many times the file was submitted
threat_verdict
Overall verdict: unknown, undetected, suspicious or malicious
curl 'https://www.virustotal.com/api/v3/files/4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e' \
-H 'x-apikey: YOUR_API_KEY'{
"data": {
"type": "file",
"id": "4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e",
"links": {
"self": "https://www.virustotal.com/api/v3/files/4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e"
},
"attributes": {
"md5": "0a1b2c3d4e5f60718293a4b5c6d7e8f9",
"sha1": "1a2b3c4d5e6f708192a3b4c5d6e7f8091a2b3c4d",
"sha256": "4d5e6f7a8b9c0d1e2f3a4b5c6d7e8f9a0b1c2d3e4f5a6b7c8d9e0f1a2b3c4d5e",
"meaningful_name": "invoice_example.exe",
"names": [
"invoice_example.exe",
"sample.exe"
],
"size": 204800,
"type_description": "Win32 EXE",
"type_tag": "peexe",
"first_submission_date": 1700000000,
"last_analysis_date": 1700086400,
"last_analysis_stats": {
"malicious": 3,
"suspicious": 0,
"undetected": 2,
"harmless": 0,
"timeout": 0,
"confirmed-timeout": 0,
"failure": 0,
"type-unsupported": 0
},
"last_analysis_results": {
"ExampleAV": {
"category": "malicious",
"engine_name": "ExampleAV",
"engine_version": "1.0.0",
"engine_update": "20231115",
"method": "blacklist",
"result": "Trojan.Example.1"
}
},
"reputation": 0,
"times_submitted": 2
}
}
}