Skip to Content
SSL API

SSL Check1–2 Credits

Check a site's certificate and expiry, and grade its HTTPS setup from A+ to F.

GET
/v1/ssl

Check whether browsers trust a site's certificate, when it expires, and how well its HTTPS is set up. Returns a status, a plain-English summary, an SSL Labs-aligned grade with its reasons, and the issues to fix; verbose=true adds the certificate, chain, connection and evidence detail. full=true adds the exhaustive cipher sweep, grades the same server alike and costs 2 credits.

Each call costs 1 credit, or 2 with full=true. Results are cached for up to 10 minutes.

Authorization

See Authentication for details.

headerX-API-Key<token>

Provide your API key in an HTTP request header.

Query Parameters

host*string

The host whose certificate to check: a domain name

Length1 <= length
verbose?boolean

Return extra detail: totalElapsed, retries and params, plus each errors entry's detail when the lookup fails. For SSL, each result also has the detail groups: certificate, chain, connection (protocol versions, cipher classes, and with full=true every accepted suite), revocation, transparency, http (HTTPS redirect and HSTS), dns (CAA), endpoints (one row per IP address) and evidence (every check, the probe transcript, refused suites and timings).

port?integer

The TCP port to check

Range1 <= value <= 65535
Default443
full?boolean

Run a full scan. By default (about a second, at most 10) the check measures everything the grade needs: the certificate, chain, revocation, every protocol version and each class of legacy cipher suite. true (at most 20 seconds) adds the exhaustive cipher and key-exchange group sweeps, and turns verbose on unless it is set to false. The grade is the same either way. Costs 2 credits instead of 1

Defaultfalse
sni?string

The server name to send in the handshake, when it differs from the host. An empty value sends none, to test what the server shows clients without SNI

Response Body

Successful ssl response

application/json
  1. response
tool*string

Tool that generated this result

Value in"dns""domain""reverse""site""dnssec""ssl""email""redirect"
query*string

The original query string

requestId*|

Unique request identifier that generated this result

timestamp*string

UTC timestamp when the result was generated

elapsed*|

Time taken to generate the result in milliseconds

cached*boolean

Whether this result was served from cache

totalElapsed?|

Returned with verbose. Total time in milliseconds, including retries and any lookups this one made. For a cached result, the time to read it

retries?number

Returned with verbose. Number of retries before the answer, 0 for a cached result

params?

Returned with verbose. The query parameters you set that differ from their defaults

results*array<|>|

One result: the simple shape by default, the verbose shape with verbose=true

errors*array<>

Empty on a 200, whatever the verdict. On any other status, why the request failed. The HTTP status is in the response line only

Errors

See Errors for the response format.

invalid_request
A parameter is missing or not valid, or is not one this endpoint takes.
400
invalid_query
The query is not a host name or IP address the check can connect to.
400
blocked_address
The host resolves to a private or reserved address.
400
authentication_failed
No API key was sent, or it could not be checked.
401
invalid_api_key
The API key is not valid.
401
api_key_expired
The API key has expired.
401
out_of_credits
The account has no credits left.
402
forbidden
The caller may not use this tool.
403
rate_limited
The caller is over its rate limit; retry after the Retry-After header.
429
internal_error
An internal error on our side.
500
Example Request
curl -X GET 'https://api.dns.tools/v1/ssl?host=github.com'
Example Response
{  "tool": "ssl",  "query": "github.com",  "requestId": "3c9e1f7a-52b4-4d8e-9a61-7f0b2c5d8e14",  "timestamp": "2026-11-26T04:26:29.730Z",  "elapsed": 405,  "cached": false,  "errors": [],  "results": [    {      "host": "github.com",      "port": 443,      "status": "valid",      "trusted": true,      "summary": "The certificate is valid and trusted by browsers. It expires in 62 days.",      "grade": "A+",      "gradeReasons": [],      "issuer": "Sectigo",      "issuedAt": "2026-10-30T00:00:00.000Z",      "expiresAt": "2027-01-27T23:59:59.000Z",      "daysRemaining": 62,      "hostnameMatches": true,      "coveredNames": [        "github.com",        "www.github.com"      ],      "wildcard": false,      "issues": [        {          "code": "weak_ciphers",          "severity": "low",          "message": "The server accepts older CBC cipher suites that use SHA-1.",          "fix": "Remove CBC suites that use SHA-1, and prefer AES-GCM or ChaCha20-Poly1305."        },        {          "code": "non_forward_secret_ciphers",          "severity": "low",          "message": "The server still accepts cipher suites without forward secrecy, though modern browsers don't use them.",          "fix": "Remove static RSA key exchange suites (TLS_RSA_*) from the server configuration."        },        {          "code": "no_ocsp_stapling",          "severity": "info",          "message": "The server doesn't attach its certificate's revocation status (OCSP stapling).",          "fix": "Turn on OCSP stapling. It saves visitors a lookup."        }      ],      "checkedAt": "2026-11-26T04:26:29.730Z"    }  ]}