TLS certificate check API

Connects to the domain on port 443 with SNI, verifies the certificate against the system's trusted roots and the host name (RFC 9525), and reports dates, names, issuer, chain, key and signature algorithm and the negotiated TLS version. No HTTP is sent.

GET https://api.lookproof.dev/v1/tls/certificate

Updated 2026-10-09

Examples use the Base (eip155:8453) network.

Input

Query parameters.

NameTypeRequiredLimitsDescription
domainstringYes1–1024 charactersThe domain to check, for example example.com.

Example request

curl -i 'https://api.lookproof.dev/v1/tls/certificate?domain=example.com'
import asyncio
import os

from eth_account import Account
from x402 import x402Client
from x402.http.clients import x402HttpxClient
from x402.mechanisms.evm import EthAccountSigner
from x402.mechanisms.evm.exact import register_exact_evm_client


async def main() -> None:
    signer = EthAccountSigner(Account.from_key(os.environ["EVM_PRIVATE_KEY"]))
    client = register_exact_evm_client(x402Client(), signer, networks="eip155:8453")
    async with x402HttpxClient(client) as http:
        response = await http.get('https://api.lookproof.dev/v1/tls/certificate', params={'domain': 'example.com'})
        response.raise_for_status()
        print(response.json())


asyncio.run(main())
import { wrapFetchWithPaymentFromConfig } from "@x402/fetch";
import { ExactEvmScheme } from "@x402/evm";
import { privateKeyToAccount } from "viem/accounts";

const account = privateKeyToAccount(process.env.EVM_PRIVATE_KEY);
const fetchWithPayment = wrapFetchWithPaymentFromConfig(fetch, {
  schemes: [{ network: "eip155:8453", client: new ExactEvmScheme(account) }],
});

const response = await fetchWithPayment("https://api.lookproof.dev/v1/tls/certificate?domain=example.com");
console.log(await response.json());

curl: unpaid request — returns 402 with the price (PAYMENT-REQUIRED). The Python and JavaScript clients pay it and send the request again. Only ordinary wallets (EOA) can pay; smart-contract wallets get a 402 without charge. See payments.

Example response

{
  "checked_at": "2026-10-24T12:00:00Z",
  "data": {
    "address_family": "ipv4",
    "chain": [
      {
        "issuer": "CN=Example Issuing CA",
        "subject": "CN=example.com"
      },
      {
        "issuer": "CN=Example Issuing CA",
        "subject": "CN=Example Issuing CA"
      }
    ],
    "cipher": "TLS_AES_256_GCM_SHA384",
    "days_remaining": 36,
    "domain": "example.com",
    "hostname_match": true,
    "issuer": "CN=Example Issuing CA",
    "key_bits": 256,
    "key_type": "ec",
    "not_after": "2026-11-30T00:00:00Z",
    "not_before": "2026-09-01T00:00:00Z",
    "san": [
      "example.com",
      "www.example.com"
    ],
    "serial_number": "5ec0de",
    "signature_algorithm": "ecdsa-with-SHA256",
    "subject_cn": "example.com",
    "tls_version": "TLSv1.3",
    "trusted": true,
    "untrusted_reason": null
  },
  "endpoint": "tls.certificate",
  "findings": [],
  "meta": {
    "cache_hit": false,
    "duration_ms": 42,
    "fresh_until": "2026-10-24T12:05:00Z",
    "observed_at": "2026-10-24T12:00:00Z",
    "resolver": null,
    "source": "dns"
  },
  "request_id": "req_aaaaaaaaaaaaaaaaaaaaaaaaaa",
  "schema_version": "1.0",
  "status": "ok"
}

Response fields

FieldMeaning
request_idUnique id of this request. Quote it when you contact support.
endpointThe endpoint id, for example mail.spf.
schema_versionVersion of the response format, currently 1.0.
checked_atWhen the check ran (ISO 8601, UTC).
statusok, info, warning or error from the worst finding, or unknown when the check was incomplete. unknown is not an error in the domain.
dataThe check's own data. Its fields are listed below.
findingsWhat was found: code, severity, message, explanation and evidence.
metaDuration, cache use, resolver and how long the result stays fresh.

Fields in data

FieldType
domainstring
address_familyone of ipv4, ipv6 or null
tls_versionstring or null
cipherstring or null
trustedboolean or null
untrusted_reasonone of self_signed, unknown_issuer, incomplete_chain, other or null
hostname_matchboolean or null
subject_cnstring or null
sanarray of string
issuerstring or null
not_beforestring or null
not_afterstring or null
days_remaininginteger or null
serial_numberstring or null
signature_algorithmstring or null
key_typeone of rsa, ec, ed25519, ed448, dsa, other or null
key_bitsinteger or null
chainarray of ChainCertificate

Status codes

StatusCodeMeaningDo you pay?
200—The result is delivered, also when it has negative findings.Yes: charged once per payment; redelivery of the same payment is free
402—Payment is required, or the attached payment was refused. The body states the price.No
400bad_requestThe request is malformed.No
409payment_in_progress, payment_bound_to_other_requestThis payment is already being processed, or it is bound to a different request. No new payment is taken.No
422invalid_inputThe input failed validation on a request that carries a payment; nothing is charged. Without a payment, invalid input gets a 402 whose error field names the problem.No
429rate_limitedToo many requests from this IP address or payer.No
502check_failedThe check could not be completed.No
503busy, unavailable, payments_unavailableThe service is busy or temporarily unavailable.No
504deadline_exceededThe check ran out of time.No

Errors use the common error body. See errors.

Findings this endpoint can return

TLS certificate (8)