SSL/TLS Certificate Check (expiry, issuer, SANs) API

SSL/TLS certificate expiry check for a domain from Certificate Transparency logs (SSLMate Cert Spotter), not a live handshake: the most recent logged unexpired certificate's issuer CA and intermediate, valid from/to dates, days to expiry, expiring-soon flag (under 30 days), revocation status, key type, SANs, wildcard; 90-day issuance history with distinct CAs; plus a live HTTPS reachability check with HSTS and HTTP-to-HTTPS redirect. DNS via Cloudflare DoH.

$0.01 per call  USDC over x402 v2 on Base, Polygon, Arbitrum, Avalanche or Sei. No signup, no API key. Requests that fail or match nothing are not charged.

Endpoint

GET https://api.kit-rx.com/v1/web/tls

Parameters

NameTypeRequiredDescription
domainstringnoHostname to check, e.g. example.com or www.example.com (wildcard certificates covering it are included). Give domain or url. e.g. github.com
urlstringnoAlternative to domain: an http(s) URL whose hostname is checked. e.g. https://github.com/

Example request

https://api.kit-rx.com/v1/web/tls?domain=github.com

Without payment the server answers 402 Payment Required with the price (10000 atomic USDC) in the PAYMENT-REQUIRED header. Any x402 v2 client pays and retries automatically. A request with no parameters runs this example.

curl -i "https://api.kit-rx.com/v1/web/tls?domain=github.com"

Pay from an agent

AgentCash: fetch the URL. OpenDexter MCP: x402_fetch. Kit Rx MCP server: https://api.kit-rx.com/mcp. Code:

import { x402Client } from "@x402/core/client";
import { registerExactEvmScheme } from "@x402/evm/exact/client";
import { wrapFetchWithPayment } from "@x402/fetch";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client();
registerExactEvmScheme(client, { signer: privateKeyToAccount(process.env.BUYER_KEY) });
const pay = wrapFetchWithPayment(fetch, client);
const res = await pay("https://api.kit-rx.com/v1/web/tls?domain=github.com");
console.log(await res.json());

Example response

{
  "query": {
    "domain": "github.com"
  },
  "result": {
    "domain": "github.com",
    "certificate": {
      "issuer": {
        "organization": "Sectigo",
        "common_name": "Sectigo Public Server Authentication CA DV E36",
        "dn": "C=GB, O=Sectigo Limited, CN=Sectigo Public Server Authentication CA DV E36"
      },
      "not_before": "2026-10-30T00:00:00Z",
      "not_after": "2027-01-27T23:59:59Z",
      "validity_days": 90,
      "days_to_expiry": 73,
      "expiring_soon": false,
      "expired": false,
      "revoked": false,
      "key_type": "ECDSA P-256",
      "wildcard": false,
      "covers_domain": "exact",
      "san_count": 2,
      "sans": [
        "github.com",
        "www.github.com"
      ],
      "sans_truncated": false,
      "sha256": "7dc4d85cf1e310971225bc9a9257679043a243d70a3cc2a91cc5d389892c2776"
    },
    "history": {
      "unexpired_logged": 10,
      "revoked_unexpired": 0,
      "issued_last_90_days": 10,
      "distinct_cas_last_90_days": 2,
      "cas_last_90_days": [
        {
          "issuer": "Sectigo",
          "count": 9
        },
        {
          "issuer": "Let's Encrypt",
          "count": 1
        }
      ],
      "latest_issuance": "2026-10-30T00:00:00Z"
    },
    "live_https": {
      "checked_url": "https://github.com/",
      "dns_resolves": true,
      "reachable": true,
      "status": 200,
      "redirect_to": null,
      "hsts": {
        "present": true,
        "max_age": 31536000,
        "include_subdomains": true,
        "preload": true
      },
      "http_redirects_to_https": true,
      "http_status": 301,
      "http_location": "https://github.com/",
      "error": null
    }
  },
  "sources": [
    {
      "name": "SSLMate Cert Spotter Certificate Transparency Search API",
      "url": "https://sslmate.com/ct_search_api/"
    },
    {
      "name": "Cloudflare DNS over HTTPS (JSON API)",
      "url": "https://developers.cloudflare.com/1.1.1.1/encryption/dns-over-https/make-api-requests/dns-json/"
    }
  ],
  "notes": [
    "Certificate data comes from Certificate Transparency logs (SSLMate Cert Spotter) and reflects the most recent logged issuance valid for this hostname, not a live TLS handshake; the certificate a server presents can be an older unexpired one. Expired certificates are not indexed."
  ],
  "attribution": [
    "DNS resolved via Cloudflare 1.1.1.1 DNS-over-HTTPS."
  ],
  "generated_at": "2026-11-15T00:31:20.829Z"
}

Kit Rx: Pay-per-call data and safety tools for AI agents, paid in USDC over x402. No signup, no API key. Machine-readable: OpenAPI, llms.txt, /.well-known/x402, agent skills.