Example virustotal.com API in PHP?

Does anyone have a PHP example of using the publicly available VirusTotal.com API to scan URLs?

The API is available here: http://www.virustotal.com/advanced.html

There is a Python / JSON example here, but I am not testing either :(

+3
source share
2 answers

All you need to do is restore the json report using file_get_contents as follows:

$json = file_get_contents('https://www.virustotal.com/api/get_url_report.json');

Then use json_decode to convert your json to a php array:

$array = json_decode($json);

To see the results:

var_dump($array);

to publish data use curl related question .

0
source

PHP (, ).

0

Source: https://habr.com/ru/post/1761694/


All Articles