Skip to main content

CT Monitor API

pro
GET/v1/domain/ct-monitor

Searches Certificate Transparency logs (RFC 6962/9162) via crt.sh for recent TLS certificates issued for a domain or wildcard. Surfaces unauthorized-issuance signals (issuer outside CAA-authorized set, sudden cert surge, unexpected wildcard) and provides recommendations to harden cert issuance hygiene.

What It Does

Queries crt.sh JSON endpoint (free, no key) for cert history within a configurable window. Optional `include_subdomains=true` switches to wildcard-prefix search to surface certs issued for any subdomain. Returns full per-cert details (issuer, validity, SANs), aggregate stats (unique issuers, recent 30-day count, earliest/latest dates), an `alerts` array (severity-tagged signals), and remediation recommendations. Foundation for future webhook notifications.

Why It's Useful

CT logs are the canonical record of "every cert ever issued for my domain" and the leading early-warning signal for DNS hijacking, phishing infra staging, and shadow-IT issuance. This endpoint productizes the manual crt.sh workflow with alert thresholds and remediation guidance, eliminating the need for security teams to build their own CT-monitoring tooling.

Use Cases

Security Engineer

Unauthorized Issuance Detection

Run a daily CT scan on all owned domains and alert when a cert appears from a CA outside your CAA-approved list — the canonical signal that an attacker has gained cert-issuance capability.

Detect CA-based attacks (DNS hijacks, BGP MITM, internal credential abuse) within hours of issuance, before traffic interception begins.

Brand Protection / SOC

Phishing-Infra Early Warning

Monitor CT logs for typosquat variants of your brand — squatters frequently obtain Let's Encrypt certs days before launching campaigns.

File takedown requests during the prep window, denying the attacker the activation moment.

Cloud Architect

CAA Hygiene Audit

Compare actual CT issuers vs your published CAA records — a mismatch indicates either a CAA misconfiguration or an unauthorized issuance pathway.

Close the gap between policy (CAA) and reality (CT logs).

Parameters

NameLocationTypeRequiredDescription
domainquerystringRequiredThe domain to monitorExample: example.com
include_subdomainsquerystringOptionalWhen `true` (default), query CT for `%.<domain>` (wildcard subdomain match). Set to `false` to query the bare apex only.Example: true
limitquerystringOptionalMax certs to return (1-200, default 50)Example: 50

Response Fields

Result fields below are inside the JSON data object. Any row named meta describes the sibling response metadata object. See response and error handling for status codes and error responses. Optional observations may be absent or null; inspect warnings and partial-failure fields before treating a missing result as a negative finding.

FieldTypeDescription
domainstringThe queried domain
scopestring"apex" or "apex_and_subdomains"
total_certsnumberNumber of certs returned
certsarrayPer-cert details: issuer, issuer_org, not_before, not_after, sans[], id
unique_issuersarrayDistinct issuer organization names across results
most_recentstringISO timestamp of most-recently-issued cert
earlieststringISO timestamp of earliest cert in the window
recent_30d_countnumberCert-issuance count in the last 30 days
alertsarraySeverity-tagged alerts (cert_surge, wildcard_present, unexpected_issuer, issuer_sprawl)
recommendationsarrayRemediation steps for the surfaced alerts

Code Examples

Replace YOUR_API_KEY with your API key. This endpoint requires the pro plan or higher; see plans and usage limits.

cURL
curl --request GET 'https://api.edgedns.dev/v1/domain/ct-monitor?domain=example.com' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
const response = await fetch(
  "https://api.edgedns.dev/v1/domain/ct-monitor?domain=example.com",
  {
    "method": "GET",
    "headers": {
      "Authorization": "Bearer YOUR_API_KEY"
    }
  }
);

if (!response.ok) {
  throw new Error(`EdgeDNS returned HTTP ${response.status}`);
}
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    'GET',
    "https://api.edgedns.dev/v1/domain/ct-monitor?domain=example.com",
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)

Read the full CT Monitor guide

Learn the concepts, choose a practical workflow, and interpret the observations from CT Monitor before acting on them. Run supported checks via MCP or through REST.

Read the guide →

    Related Endpoints

    External References

    Learn more about the standards and protocols behind this endpoint.

    Try This Endpoint

    Test the CT Monitor endpoint live in the playground.

    CT Monitor API Reference | EdgeDNS