Hi All,
I am trying to integrate with VirusTotal API, but I keep receiving a 401 Unauthorized error.
Could you please help me understand if the public API key supports v3 fully, or if there are specific limitations/configurations I need to be aware of?Has anyone faced a similar issue after migrating from v2 to v3 API key?
Please find the screenshot for the refrence
Hi @Mohammad Iqbal Yusuf Sheikh ,
The header for the API key needs to be named x-apikey . Try changing the name and test again.
Changing the header name itself will cause VirusTotal to reject the request.
Hi @Mihai Melencu ,
I updated the header to x-apikey and now I’m getting:
Seems like my public API key isn’t being accepted — does this mean the public key is invalid or not supported for v3 endpoints?
Your API Key should be supported by the endpoints, even if you don't have the premium plan.
I tested with mine and is working.
Can you please confirm which VirusTotal API version you are using - v2 or v3?
Would it be possible to share the OML file, so I can cross check my setup?
Thanks a lot for your guidance, it really helped me.
I used the v3 endpoints. I created a sample for the Scan URL v3 endpoint (https://www.virustotal.com/api/v3/urls ).
Make sure to update the site property for the Api Key when testing.