url_report: Get URL Report

Description Usage Arguments Value References See Also Examples

View source: R/url_report.R

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

1
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 virustotal_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://www.virustotal.com/en/documentation/public-api/

See Also

set_key for setting the API key

Examples

1
2
3
4
5
6
7
8
## 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 April 11, 2018, 3:22 a.m.