We offer a very simple to use API that allows you to scan any site at any time and get a result similar to what is provided on our internal malware scanners and SiteCheck.
Our Scanning API is a paid plan for access to the API please contact email@example.com.
You can find this feature in your dashboard under “API” at the very bottom of the screen.
Once there, click on “Scanning API”.
You can then click on the box next to “Enable Scanning API” in order to turn the feature on or off.
After enabling the API, you will be given your own API key. Note that this key should be treated like a password and kept secured. Anyone with access to your key will have full access to the API and will be able to add/remove sites, run scans, etc.
You will also be given a full API link that should look similar to this:
You will need your own link from the dashboard in order to run scans.
To scan sites, all you need to do is copy the link in your browser and add &a=scan&host= to the end of the link, and after host= add the website to be scanned. So, using the example link, scanning "sucuri.net" would look like this:
You can, optionally, choose the results format. There are three formats: text, serialized and simple. Just add &format= to the end of your link followed by the format choice.
For example, choosing the text option should look like this:
If you are still not sure what do, please feel free to open a support ticket with the Sucuri team.