How can I automate scans?

VirusTotal provides an API for automating analysis tasks, you can find more information in the VirusTotal API documentation.

You can also check the list of API Scripts developed by the community.