Learn R Programming

virustotal (version 0.7.1)

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). For analysis IDs returned by scans, use get_analysis.

...

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)

# Work with the rich nested structure returned by v3 API
print(report$data$attributes$last_analysis_stats)
}

Run the code above in your browser using DataLab