What it does
The Qualys SSL Labs API runs the well-known SSL Server Test on any public website and returns its grade (A+ to F) with details about certificates, protocols, cipher suites and known vulnerabilities. Start a scan, poll until it is ready, and read the results as JSON. Free, but version 4 needs registration with an organisation e-mail address, and commercial use needs permission from Qualys.
More information: https://github.com/ssllabs/ssllabs-scan/blob/master/ssllabs-api-docs-v4.md