I am trying to scan multiple URLs on Virustotal.com using APIs.
This is how Virustotal has defined how to send API requests.
curl –request POST
url https://www.virustotal.com/api/v3/urls
header ‘x-apikey: ‘your API key’
form url=’url’
Please let me know how I can use this in a javascript file.
2
Answers
You can use fetch() : a web API that lets you make asynchronous requests.
It returns a “Promise” which is one of the great features of ES6. All though there are other ways too here : https://www.freecodecamp.org/news/here-is-the-most-popular-ways-to-make-an-http-request-in-javascript-954ce8c95aaa/
Try to use XMLHttpRequest,it’s a better than jQuery