Docs / Scan API

1 endpoint,the whole check.

Send a host name, get back the full post-quantum check as JSON: the score, which ML-KEM groups the server accepts, its TLS version and certificate, and its email, SSH and subdomains.

Request

endpoint
GET https://pqcreadinesscheck.com/api/scan?domain={host}
ParameterTypeDescription
domainstring, requiredA public host name, like example.com or api.example.com. We strip a scheme, path, query, port and trailing dot, so https://Example.com:8443/login checks example.com on port 443. International names are converted to punycode. IP addresses and private names (localhost, .internal, .local and similar) are refused.
save"1", optionalAlso save the result as a private link that works for 30 days. The response then has 2 more fields, id and link. See saved results.

No headers, no key, no body. A check usually takes 5 to 15 seconds. Allow 40 seconds before your client times out.

If the bare domain doesn't answer on port 443, we check www. once and say so in note.

POST https://pqcreadinesscheck.com/api/scan with a JSON body {"domain": "example.com"} runs the same check with the same limits. The domain stays out of the URL, so it stays out of proxy and server logs. A POST always saves the result and returns id and link.

Response

HTTP 200 with the result, whatever the score. A real result for mozilla.org, checked on 4 December 2026:

200 OK · application/json
{
  "host": "mozilla.org",
  "ip": "35.190.14.201",
  "checkedAt": "2026-12-04T04:27:09.800Z",
  "ms": 4068,
  "score": 95,
  "webScore": 95,
  "points": [
    {
      "id": "pq",
      "label": "Post-quantum key exchange accepted",
      "got": 45,
      "max": 45
    },
    {
      "id": "tls13",
      "label": "TLS 1.3",
      "got": 20,
      "max": 20
    },
    {
      "id": "no-old-tls",
      "label": "TLS 1.0 and 1.1 refused",
      "got": 10,
      "max": 10
    },
    {
      "id": "cert",
      "label": "Valid certificate, more than 14 days left",
      "got": 15,
      "max": 15
    },
    {
      "id": "cert-key",
      "label": "Certificate key RSA 2048+ or ECDSA",
      "got": 5,
      "max": 5
    },
    {
      "id": "mlkem1024",
      "label": "ML-KEM-1024 accepted (CNSA 2.0 level)",
      "got": 0,
      "max": 5
    }
  ],
  "grade": "A",
  "webGrade": "A",
  "verdict": "Ready for post-quantum",
  "summary": "Your site already protects visitor traffic with post-quantum key exchange. Traffic recorded today can't be unlocked later by a quantum computer.",
  "tlsVersion": "TLSv1.3",
  "cipher": "TLS_AES_256_GCM_SHA384",
  "pq": {
    "supported": true,
    "groups": [
      "X25519MLKEM768"
    ]
  },
  "cert": {
    "subject": "mozilla.org",
    "issuer": "Google Trust Services",
    "validTo": "2027-02-03T11:25:18.000Z",
    "daysLeft": 61,
    "trusted": true,
    "keyType": "RSA 2048",
    "quantumSafe": false
  },
  "provider": "nginx",
  "findings": [
    {
      "id": "key-exchange",
      "title": "Post-quantum key exchange",
      "status": "pass",
      "value": "X25519MLKEM768",
      "detail": "The server agreed a key with us using ML-KEM (NIST FIPS 203) mixed with a classic curve. This is the hybrid setup Chrome, Firefox and Safari already use."
    },
    {
      "id": "tls-version",
      "title": "TLS version",
      "status": "pass",
      "value": "TLS 1.3",
      "detail": "TLS 1.3 is the current version, and the only one with post-quantum key exchange. No retired versions accepted."
    },
    {
      "id": "certificate",
      "title": "Certificate signature",
      "status": "warn",
      "value": "RSA 2048, Google Trust Services",
      "detail": "Classic signature, which is normal today: no public certificate authority issues post-quantum certificates yet. Plan for it by 2030 to 2035, it can't be recorded and broken later like key exchange can."
    },
    {
      "id": "recorded-traffic",
      "title": "Recorded traffic risk",
      "status": "pass",
      "value": "Protected",
      "detail": "Even if someone records your traffic today, a future quantum computer can't recover the keys."
    }
  ],
  "surfaces": [
    {
      "id": "email",
      "title": "Email (incoming mail server)",
      "status": "pass",
      "grade": "A",
      "value": "Google Workspace, TLS 1.3, post-quantum",
      "detail": "Your mail server accepts post-quantum key exchange. Emails sent to you over this link can't be recorded now and read later.",
      "owner": "Google Workspace"
    },
    {
      "id": "ssh",
      "title": "SSH (remote login)",
      "status": "skip",
      "value": "Nothing on port 22",
      "detail": "Nothing answered on port 22 of your website's address. If your SSH runs on another port or another server, this check doesn't see it."
    },
    {
      "id": "subdomains",
      "title": "Other addresses (subdomains)",
      "status": "pass",
      "grade": "A",
      "value": "101 found, 3 checked, 0 not quantum-safe",
      "detail": "Every address we checked offers post-quantum key exchange.",
      "items": [
        {
          "host": "dev.mozilla.org",
          "grade": "A",
          "protocol": "TLSv1.3",
          "pq": true
        },
        {
          "host": "ftp-ssl.mozilla.org",
          "grade": "A",
          "protocol": "TLSv1.3",
          "pq": true
        },
        {
          "host": "ftp.mozilla.org",
          "grade": "A",
          "protocol": "TLSv1.3",
          "pq": true
        }
      ],
      "total": 101
    }
  ],
  "fixes": [
    "For the last 5 points, also offer SecP384r1MLKEM1024 (ML-KEM-1024), the level NSA CNSA 2.0 asks for. Keep X25519MLKEM768 first for browsers."
  ]
}

OpenAPI and schema

The API as an OpenAPI 3.1 description, for Postman, an API gateway or a code generator. The result alone as a JSON Schema (2020-12), to validate responses in CI or to type an agent's tool output. Both are built from the same data as the table below, so they match it.

shell
curl -s https://pqcreadinesscheck.com/openapi.json -o pqc-openapi.json

Fields

Fields marked untrusted hold text that comes from servers or public logs we don't control. Never pass them to an AI agent as instructions. See untrusted output. Fields marked wording may change are written for people: show them, never parse them.

FieldTypeDescription
hoststringThe host name we checked, lower case, punycode for international names. Schemes, paths and ports in your input are removed.
ipstringThe address every probe was pinned to. We resolve once, so all results describe the same machine.
checkedAtstringWhen the check ran, ISO 8601 in UTC. A result served from the 10 minute cache keeps its original time.
msnumberHow long the check took, in milliseconds.
scoreinteger, 0 to 100Overall score: the lowest of the website and every door we could test (email, SSH, subdomains).
webScoreinteger, 0 to 100The website alone, port 443 on host.
points[]array of objectsHow webScore adds up. 6 lines, always in this order.
points[].idstringpq, tls13, no-old-tls, cert, cert-key or mlkem1024.
points[].labelstringWhat the line checks, in plain English.wording may change
points[].gotintegerPoints earned.
points[].maxintegerPoints possible.
grade"A" to "F"Letter band of the overall result. Kept for older clients: use score.
webGrade"A" to "F"Letter band of the website alone.
verdictstring1 short line, like "Ready for post-quantum". Wording may change: don't parse it.wording may change
summarystring2 or 3 plain sentences for a human. Wording may change: don't parse it.wording may change
tlsVersionstring | nullBest protocol the server agreed to, like TLSv1.3. null if no TLS handshake worked.
cipherstring | nullCipher of the connection that set tlsVersion, like TLS_AES_256_GCM_SHA384.
notestring, optionalOnly present when we checked a different name than the one you sent. Today that means the bare domain didn't answer on 443, so we checked www.wording may change
pqobjectThe post-quantum result for the website.
pq.supportedbooleantrue if the server accepted at least 1 ML-KEM group on TLS 1.3. This is the field to gate a build on.
pq.groups[]array of stringsThe groups it accepted, tested 1 at a time. Values: X25519MLKEM768, SecP256r1MLKEM768, SecP384r1MLKEM1024, MLKEM768.
certobject | nullThe leaf certificate on port 443. null if we got none.
cert.subjectstringCommon name of the certificate. Comes straight from the certificate.untrusted
cert.issuerstringOrganisation (or common name) of the issuer. Comes straight from the certificate.untrusted
cert.validTostringExpiry, ISO 8601 in UTC.
cert.daysLeftintegerWhole days until expiry. Negative once expired.
cert.trustedbooleantrue if the chain verifies against the Node.js root store for this host name.
cert.keyTypestringKey type and size, like RSA 2048, ECDSA P-256, Ed25519 or ML-DSA-65.
cert.quantumSafebooleantrue for ML-DSA and SLH-DSA keys. Public CAs don't issue these yet, so expect false.
providerstringWho serves the site, guessed from response headers, so the fix fits. Values: cloudflare, cloudfront, vercel, netlify, fastly, akamai, google, azure, nginx, apache, caddy, iis, unknown.
findings[]array of objects4 plain findings about the website, empty if the host was unreachable.
findings[].idstringkey-exchange, tls-version, certificate or recorded-traffic.
findings[].titlestringShort heading.wording may change
findings[].statusstringpass, warn or fail.
findings[].valuestringThe fact found, like X25519MLKEM768. The certificate line includes the issuer name.untrustedwording may change
findings[].detailstringWhat it means, in 1 to 3 sentences.wording may change
surfaces[]array of objectsThe other doors. Always 3 entries: email, ssh, subdomains.
surfaces[].idstringemail, ssh or subdomains.
surfaces[].titlestringShort heading.wording may change
surfaces[].statusstringpass, warn, fail or skip. skip means not tested or nothing there: it never changes the score.
surfaces[].grade"A" to "F", optionalAbsent when status is skip.
surfaces[].valuestringThe fact found. For email it holds the mail server name, for SSH the software name from the server banner.untrustedwording may change
surfaces[].detailstringWhat it means. For email it can include the mail server name.untrustedwording may change
surfaces[].ownerstring, optionalEmail only: the hosted provider, like Microsoft 365, when the fix is theirs to make.
surfaces[].totalinteger, optionalSubdomains only: how many names we found in certificate logs and DNS.
surfaces[].items[]array of objects, optionalEmail: each mail server that answered, up to 6. Subdomains: up to 10 we tested.
surfaces[].items[].hoststringThe mail server or subdomain name. Subdomains come from public certificate logs, so anyone could have put a name there.untrusted
surfaces[].items[].grade"A" to "F"Graded on encryption only. A mail server with no STARTTLS is F. A subdomain is never F for a certificate mismatch.
surfaces[].items[].protocolstring | nullBest protocol, like TLSv1.3.
surfaces[].items[].pqbooleantrue if it accepted an ML-KEM group.
fixes[]array of stringsSuggested changes, most urgent first. Plain sentences for a human.wording may change
idstring, optionalOnly with save=1 or POST: the 16 character id of the private result link. Absent if saving failed: the check itself still returns.
linkstring, optionalOnly with save=1 or POST: the private result link, /r/ followed by id. It works for 30 days.

New fields and new values in a list (a new provider, a new ML-KEM group) can appear at any time: ignore what you don't know. Existing fields keep their name and type. Read the ids, booleans and numbers in code. The full promise is on the changelog.

Errors

When we can't run a check, the body is 1 object with a plain message and a stable code. Show error to people, branch on code in code.

codeHTTPWhen
invalid400domain is empty, an IP address, or not a public host name (for example localhost or a .internal name).
blocked400The name resolves to a private, loopback or reserved address. We never connect there.
dns400The name doesn't resolve.
unreachable400Nothing completed a TLS handshake on port 443, on the name or on www. The server may block unknown clients.
rate-limit429More than 12 checks in a minute, or 10 in 24 hours, from your IP.
unavailable503Our checker is being updated and can't run ML-KEM handshakes right now. Try again in a few minutes.

Every error, word for word

The exact bodies we send. Names in the messages are examples.

400 · invalid · localhost
{
  "error": "That doesn't look like a website address. Try something like yourcompany.com.",
  "code": "invalid"
}
400 · blocked · a name that resolves to 10.0.0.1
{
  "error": "We only check public websites.",
  "code": "blocked"
}
400 · dns · nosuchname-example.com
{
  "error": "We couldn't find nosuchname-example.com. Check the spelling.",
  "code": "dns"
}
400 · unreachable · example.net
{
  "error": "We couldn't open a secure connection to example.net on port 443. The server may block unknown clients, or HTTPS may be off on this name. Try www.example.net or the exact address your visitors use.",
  "code": "unreachable"
}
429 · rate-limit · the 13th check in a minute
{
  "error": "Too many checks in a minute. Please wait a moment.",
  "code": "rate-limit"
}
429 · rate-limit · the 11th check in 24 hours
{
  "error": "The free API allows 10 checks a day. Write to us for more.",
  "code": "rate-limit"
}
503 · unavailable · any
{
  "error": "The checker is being updated. Please try again in a few minutes.",
  "code": "unavailable"
}

Status codes

200The check ran. The body is the result, whatever the score.
400We couldn't check this name. The body says why.
429Rate limit reached. The body says which one.
503The checker is briefly unavailable. Retry later.

A host that is down returns 400 with unreachable, not 200 with a score of 0. A 503 is safe to retry after a few minutes. A 400 for the same input will come back the same.

Rate limits

Per IP, per minute12
Per IP, in any 24 hours10
  • The 24 hours roll: each check frees up 24 hours after it was made. There is no fixed reset time.
  • Every request counts, including ones that end in an error and ones served from the cache.
  • The API and the MCP tool check_domain share the same count.
  • Over the limit you get HTTP 429 with "code": "rate-limit" and a Retry-After header: the number of seconds until your next check is allowed. Wait that long before you retry. The message says whether you hit the minute or the day limit.
  • X-RateLimit-Limit, X-RateLimit-Remaining and X-RateLimit-Reset are planned, not sent yet. The MCP tool has no headers: over the limit it returns isError: true with the message.
  • We count in memory on each of our servers. A deploy resets the count, and busy times can spread your checks over more than 1 server, so you may get a few more than the limit. Never fewer.
  • Shared IPs share the limit. GitHub-hosted runners and office NAT are the common cases. The CI example treats a 429 as a warning, not a failure.

Planned: higher limits with an API key. The paid plans list 1,000 and 10,000 API checks a day. The API has no keys yet, so today every caller gets the free limit. Need more now? Write to us.

Caching

  • A result is kept for 10 minutes per host. Checking the same host again inside that window can return the stored result: checkedAt tells you when it really ran.
  • Subdomain names read from certificate logs are kept for 6 hours per domain. The checks on those names run fresh.
  • Responses carry cache-control: no-store. Don't put a shared HTTP cache in front: store the JSON yourself if you need history.

Examples

curl
curl -s "https://pqcreadinesscheck.com/api/scan?domain=example.com"
Python 3 · standard library only
import json, urllib.error, urllib.parse, urllib.request

def check(domain: str) -> dict:
    url = "https://pqcreadinesscheck.com/api/scan?" + urllib.parse.urlencode({"domain": domain})
    try:
        with urllib.request.urlopen(url, timeout=40) as r:
            return json.load(r)
    except urllib.error.HTTPError as e:
        body = json.load(e)  # { "error": "...", "code": "..." }
        raise RuntimeError(f"{e.code} {body['code']}: {body['error']}")

r = check("example.com")
print(r["host"], r["score"], r["pq"]["supported"], r["pq"]["groups"])
JavaScript · Node.js 18+, Deno, Bun or a browser
async function check(domain) {
  const url = new URL("https://pqcreadinesscheck.com/api/scan");
  url.searchParams.set("domain", domain);
  const res = await fetch(url, { signal: AbortSignal.timeout(40_000) });
  const body = await res.json();
  if (!res.ok) throw new Error(`${res.status} ${body.code}: ${body.error}`);
  return body;
}

const r = await check("example.com");
console.log(r.host, r.score, r.pq.supported, r.pq.groups);
Go · standard library only
package main

import (
	"encoding/json"
	"fmt"
	"log"
	"net/http"
	"net/url"
	"time"
)

type Result struct {
	Host  string `json:"host"`
	Score int    `json:"score"`
	PQ    struct {
		Supported bool     `json:"supported"`
		Groups    []string `json:"groups"`
	} `json:"pq"`
}

type apiError struct {
	Message string `json:"error"`
	Code    string `json:"code"`
}

func check(domain string) (*Result, error) {
	client := &http.Client{Timeout: 40 * time.Second}
	res, err := client.Get("https://pqcreadinesscheck.com/api/scan?domain=" + url.QueryEscape(domain))
	if err != nil {
		return nil, err
	}
	defer res.Body.Close()
	if res.StatusCode != http.StatusOK {
		var e apiError
		if json.NewDecoder(res.Body).Decode(&e) != nil {
			return nil, fmt.Errorf("HTTP %d", res.StatusCode)
		}
		return nil, fmt.Errorf("%d %s: %s", res.StatusCode, e.Code, e.Message)
	}
	var r Result
	if err := json.NewDecoder(res.Body).Decode(&r); err != nil {
		return nil, err
	}
	return &r, nil
}

func main() {
	r, err := check("example.com")
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(r.Host, r.Score, r.PQ.Supported, r.PQ.Groups)
}
PowerShell · Windows PowerShell 5.1 or PowerShell 7
function Test-PQ([string]$Domain) {
  $uri = "https://pqcreadinesscheck.com/api/scan?domain=$([uri]::EscapeDataString($Domain))"
  try {
    Invoke-RestMethod -Uri $uri -TimeoutSec 40
  } catch {
    if ($_.ErrorDetails.Message) {
      $body = $_.ErrorDetails.Message | ConvertFrom-Json
      throw "$($body.code): $($body.error)"
    }
    throw
  }
}

$r = Test-PQ "example.com"
"{0} {1} {2} {3}" -f $r.host, $r.score, $r.pq.supported, ($r.pq.groups -join ", ")
if (-not $r.pq.supported) { exit 1 }

The PowerShell example exits with 1 when the host doesn't accept ML-KEM, so it can gate a pipeline on a Windows agent. On Windows PowerShell 5.1, if you see "Could not create SSL/TLS secure channel", run [Net.ServicePointManager]::SecurityProtocol = 'Tls12' first.

The API sends no CORS headers, so browsers block a direct call from another site. Call it from your server, or use the MCP endpoint, which allows any origin.

GitHub Actions

This workflow runs every Monday and on demand. It fails when a host stops accepting post-quantum key exchange. A rate limit only gives a warning.

.github/workflows/pq-check.yml
name: Post-quantum check
on:
  schedule:
    - cron: "0 6 * * 1"
  workflow_dispatch:

jobs:
  pq:
    runs-on: ubuntu-latest
    steps:
      - name: Fail if a host stops accepting ML-KEM
        env:
          HOSTS: example.com api.example.com
        run: |
          fail=0
          for h in $HOSTS; do
            code=$(curl -s -o r.json -w '%{http_code}' --max-time 40 \
              "https://pqcreadinesscheck.com/api/scan?domain=$h")
            if [ "$code" = "429" ]; then
              echo "::warning::$h not checked: $(jq -r .error r.json)"
              continue
            fi
            if [ "$code" != "200" ]; then
              echo "::error::$h: $(jq -r .error r.json)"
              fail=1
              continue
            fi
            if jq -e '.pq.supported == false' r.json > /dev/null; then
              echo "::error::$h no longer accepts post-quantum key exchange"
              fail=1
            else
              echo "$h: $(jq -r '.pq.groups | join(", ")' r.json)"
            fi
          done
          exit $fail

Why gate on pq.supported and not on the score. The score is the lowest of the website and every other door: a certificate close to expiry, a mail server run by your email provider or a forgotten subdomain can all pull it down. Those are worth knowing, but none of them is caused by your deploy, so a build that fails on them fails for the wrong reason. pq.supported answers 1 question: does this host still accept ML-KEM? That is the thing a config change or a new load balancer can break.

jq is installed on GitHub's Ubuntu runners. To also watch the score, log it as a number and alert on a drop elsewhere, rather than failing the build.

MCP server

The same check is available to AI agents as a remote MCP server at /mcp. Setup for each client and the tool schemas are on MCP server.