Skip to content
OSINTtools.io

Qualys SSL Labs Server Test API

Free deep analysis of a public web server's TLS setup with a letter grade, certificate chain, protocols and cipher suites.

Base URL
https://api.ssllabs.com/api/v4
Sign-in
API key
Format
REST
Endpoints
4

Compiled by OSINTtools.io editors from github.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The Qualys SSL Labs API v4 runs the SSL Server Test programmatically. It returns a grade and the detailed findings for a public HTTPS host: certificate chain, protocols, cipher suites, HSTS and HTTP policies, and results of vulnerability tests such as Heartbleed and ROBOT.

Calls are HTTP GET with JSON responses (register is a POST). You register once with an organizational email address (common consumer providers are not allowed), then send that address in an email header on analyze and getEndpointData. Commercial use generally needs Qualys's explicit permission.

An assessment usually takes at least 60 seconds: start one with analyze, then poll it every 5 seconds until it is IN_PROGRESS and every 10 seconds after that, until the status is READY or ERROR. A fresh assessment connects to the tested host, so it is an active check. The getRootCertsRaw call (root certificates per trust store) is not documented here.

Quick start

  1. Get a key

    Create an account with Qualys SSL Labs Server Test and copy your api key. Where to get it

  2. Make your first request

    Start an assessment of a host, or fetch its status or a cached report.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.ssllabs.com/api/v4/analyze?host=example.com' \
      -H 'email: YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "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
        }
      ]
    }

Authentication

Send your API key in the email header of every request.

The email address registered through the register call.

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

Qualys may cap concurrent assessments and total assessments per period; exceeding them returns 429 for new assessments. After each new assessment wait newAssessmentCoolOff milliseconds (from info). Responses carry X-Max-Assessments and X-Current-Assessments headers.

Errors

StatusMeaning
400Invalid invocation or parameters
441Not registered; use the register call
429Request rate too high or too many new assessments
500Internal error; retry, and give up after repeated 500s
503Service unavailable (for example maintenance); wait about 15 minutes
529Service overloaded; wait about 30 minutes

Assessments

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

hoststringrequiredtakes your domain

Hostname to assess

Example: example.com
publishstring

Publish the result to the public boards

Default: offOne of: on, off
startNewstring

Start a new assessment. Use once only; repeated use can cause an assessment loop.

One of: on, off
fromCachestring

Return a cached report if available. Cannot be combined with startNew.

Default: offOne of: on, off
maxAgestring

Maximum age of a cached report, in hours; used with fromCache

Example: 24
allstring

on returns full endpoint info; done returns it only when status is READY or ERROR

Default: onOne of: on, done
ignoreMismatchstring

Proceed even if the certificate does not match the hostname

Default: offOne of: on, off
Response fields · 21Show

hoststring

Assessed hostname

portinteger

Port tested

protocolstring

Protocol tested

isPublicboolean

Whether the result is on the public boards

statusstring

DNS, ERROR, IN_PROGRESS or READY

statusMessagestring

Status text

startTimeinteger

Assessment start time

testTimeinteger

Assessment completion time

engineVersionstring

Assessment engine version

criteriaVersionstring

Grading criteria version

cacheExpiryTimeinteger

When the cached report expires

certHostnames[]string

Hostnames in the certificates

ipAddressstring

Server IP address

serverNamestring

Server name

statusMessagestring

Endpoint status; Ready on success

gradestring

Grade: A+, A-, A to F, T or M

hasWarningsboolean

Whether the endpoint has warnings

isExceptionalboolean

Whether the endpoint is exceptional

progressinteger

Assessment progress

detailsobject

Detailed findings: chains, protocols, suites, policies, vulnerability tests

certs[]object

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'
Replace YOUR_API_KEY with your key
Response
{
  "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
    }
  ]
}

Returns an Endpoint object. Does not start a new assessment. The docs' own example for this call shows the analyze path, which looks like a documentation error.

Query parameters

hoststringrequiredtakes your domain

Hostname

Example: example.com
sstringrequired

Endpoint IP address

Example: 192.0.2.10
fromCachestring

Return a cached report if available

Default: offOne of: on, off
Response fields · 6Show

ipAddressstring

Endpoint IP address

serverNamestring

Server name

statusMessagestring

Endpoint status; Ready on success

gradestring

Grade: A+, A-, A to F, T or M

hasWarningsboolean

Whether the endpoint has warnings

detailsobject

Detailed findings: chains, protocols, suites, policies, vulnerability tests

curl 'https://api.ssllabs.com/api/v4/getEndpointData?host=example.com&s=192.0.2.10' \
  -H 'email: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "ipAddress": "192.0.2.10",
  "statusMessage": "Ready",
  "grade": "A",
  "hasWarnings": false,
  "details": {
    "protocols": []
  }
}

Service

  • Passive: the target is not contacted

No parameters. Use newAssessmentCoolOff to pace new assessments.

Response fields · 6Show

engineVersionstring

Engine version

criteriaVersionstring

Criteria version

maxAssessmentsinteger

Maximum concurrent assessments

currentAssessmentsinteger

Assessments currently running

newAssessmentCoolOffinteger

Milliseconds to wait between new assessments

messages[]string

Messages; private ones start with [Private]

curl 'https://api.ssllabs.com/api/v4/info' \
  -H 'email: YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "engineVersion": "2.3.0",
  "criteriaVersion": "2009q",
  "maxAssessments": 25,
  "currentAssessments": 3,
  "newAssessmentCoolOff": 1000,
  "messages": [
    "Example message"
  ]
}
  • Passive: the target is not contacted

Consumer email providers (Gmail, Yahoo, Hotmail) are not allowed. The registered address is then sent in the email header.

Request body (JSON) · 4Show

firstNamestringalways present

First name

lastNamestringalways present

Last name

emailstringalways present

Organizational email address

organizationstringalways present

Organization name

Response fields · 2Show

messagestring

Result message

statusstring

success or failure

curl -X POST 'https://api.ssllabs.com/api/v4/register' \
  -H 'email: YOUR_API_KEY' \
  -H 'Content-Type: application/json' \
  -d '{"firstName":"Alex","lastName":"Example","email":"alex@example.org","organization":"Example Org"}'
Replace YOUR_API_KEY with your key
Response
{
  "message": "Registration successful",
  "status": "success"
}