- Takes: Domain
- Active: contacts the target
Returns a Host object. Use startNew=on once to begin, then poll without it. Use fromCache=on (with maxAge) to get a cached report. startNew and fromCache cannot be combined. Interim responses hold only endpoint status; the final response has full data.
Query parameters
hostHostname to assess
publishPublish the result to the public boards
startNewStart a new assessment. Use once only; repeated use can cause an assessment loop.
fromCacheReturn a cached report if available. Cannot be combined with startNew.
maxAgeMaximum age of a cached report, in hours; used with fromCache
allon returns full endpoint info; done returns it only when status is READY or ERROR
ignoreMismatchProceed even if the certificate does not match the hostname
Response fields · 21ShowHide
host
Assessed hostname
port
Port tested
protocol
Protocol tested
isPublic
Whether the result is on the public boards
status
DNS, ERROR, IN_PROGRESS or READY
statusMessage
Status text
startTime
Assessment start time
testTime
Assessment completion time
engineVersion
Assessment engine version
criteriaVersion
Grading criteria version
cacheExpiryTime
When the cached report expires
certHostnames[]
Hostnames in the certificates
ipAddress
Server IP address
serverName
Server name
statusMessage
Endpoint status; Ready on success
grade
Grade: A+, A-, A to F, T or M
hasWarnings
Whether the endpoint has warnings
isExceptional
Whether the endpoint is exceptional
progress
Assessment progress
details
Detailed findings: chains, protocols, suites, policies, vulnerability tests
certs[]
Certificates with subject, validity dates, issuer, key info and hashes
curl 'https://api.ssllabs.com/api/v4/analyze?host=example.com' \
-H 'email: YOUR_API_KEY'{
"host": "example.com",
"port": 443,
"protocol": "http",
"isPublic": false,
"status": "READY",
"startTime": 1700000000000,
"testTime": 1700000090000,
"engineVersion": "2.3.0",
"criteriaVersion": "2009q",
"endpoints": [
{
"ipAddress": "192.0.2.10",
"statusMessage": "Ready",
"grade": "A",
"hasWarnings": false,
"isExceptional": false,
"progress": 100
}
]
}