Learn R Programming

virustotal (version 0.5.0)

file_report: Get File Scan Report

Description

Retrieves detailed analysis results for a file from VirusTotal using the v3 API.

Usage

file_report(hash, ...)

Value

A virustotal_file_report object containing file analysis results including antivirus scans, file metadata, and threat detection information

Arguments

hash

File hash (MD5, SHA1, or SHA256) or analysis ID

...

Additional arguments passed to virustotal_GET

References

https://docs.virustotal.com/reference/files

See Also

set_key for setting the API key, scan_file for submitting files

Examples

Run this code
if (FALSE) {
# Set API key first
set_key('your_api_key_here')

# Get file report using hash
report <- file_report(hash = '99017f6eebbac24f351415dd410d522d')
print(report)
summary(report)

# Convert to data.frame if needed
df <- as.data.frame(report)
}

Run the code above in your browser using DataLab