url_report: Get URL Report

View source: R/url_report.R

url_reportR Documentation

Get URL Report

Description

Retrieve a scan report for a given URL. If no scan report is available, set scan to 1 to get a new report.

Usage

url_report(url = NULL, scan_id = NULL, scan = 1, ...)

Arguments

url

URL. String. url or scan_id must be specified.

scan_id

scan id for a particular url scan. String. url or scan_id must be specified.

scan

String. Optional. Can be 0 or 1. Default is 1. When 1, submits url for scanning if no existing reports are found. When scan is set to 1, the result includes a scan_id field, which can be used again to retrieve the report.

...

Additional arguments passed to virustotal2_GET.

Value

data.frame with 13 columns: scan_id, resource, url, response_code, scan_date, permalink, verbose_msg, positives, total, .id, detected, result, detail

References

https://developers.virustotal.com/v2.0/reference

See Also

set_key for setting the API key

Examples

## Not run: 

# Before calling the function, set the API key using set_key('api_key_here')

url_report("http://www.google.com")
url_report(scan_id = "ebdd15c397d2b0c6f50c3f2df531357d1201ff5976802316405e60880d6bf5ec-1478786749")

## End(Not run)

themains/virustotal documentation built on May 12, 2023, 12:57 p.m.