Does anybody have a PHP example of using the VirusTotal.com public API for URL scanning?
The API is available here: http://www.virustotal.com/advanced.html
There's a Python/JSON example, but I'm not experienced with either :(
Does anybody have a PHP example of using the VirusTotal.com public API for URL scanning?
The API is available here: http://www.virustotal.com/advanced.html
There's a Python/JSON example, but I'm not experienced with either :(
All you need is to retreive the report json using file_get_contents this way :
$json = file_get_contents('https://www.virustotal.com/api/get_url_report.json');
Then use json_decode to convert your json into a php array:
$array = json_decode($json);
to see results :
var_dump($array);
to post data use curl, related question.