Skip to main content

CT Logs API

developer
GET/v1/domain/ct-logs

Searches Certificate Transparency (CT) logs for certificates issued for a domain via the crt.sh aggregator. Supports cursor-style pagination (offset, limit up to 100) and ISO-8601 `since` filtering for polling-style CT monitoring. Default cache TTL is 30 minutes so newly-issued certs surface quickly.

What It Does

Queries crt.sh for CT log entries matching the domain. Returns deduplicated entries with issuer name, log entry timestamp, and crt.sh certificate ID. When `truncated: true`, the `pagination.next_offset` field gives the cursor for the next page. The optional `since` parameter filters to entries logged at or after the supplied timestamp — pair it with a short polling interval to detect unauthorized issuance in near real time.

Why It's Useful

CT log entries reveal patterns invisible in the active certificate alone: CA changes over time, certificate churn rates, subdomain discovery through historical SANs, and detection of unauthorized issuance. With `since` filtering plus the 30-minute cache, this endpoint becomes a polling-friendly monitor rather than a one-shot historical view.

Use Cases

Security Researcher

Historical Subdomain Enumeration

Discover subdomains from expired and historical certificates that no longer appear in the active certificate or DNS records.

Find forgotten subdomains and legacy infrastructure not visible through current DNS enumeration.

Security Operations

Unauthorized Issuance Detection

Search CT log history for certificates issued by unauthorized CAs or for unexpected subdomains.

Detect rogue certificate issuance that could indicate domain compromise or CA misbehavior.

PKI Administrator

Certificate Lifecycle Analysis

Analyze CA usage patterns over time — certificate rotation frequency, issuer changes, and automation effectiveness.

Optimize certificate management by identifying lifecycle patterns and automation gaps.

Parameters

NameLocationTypeRequiredDescription
domainquerystringRequiredThe domain to search CT logs forExample: example.com
offsetquerynumberOptionalCursor — skip the first N entries (use response.pagination.next_offset to advance).Example: 0
limitquerynumberOptionalPage size, 1–100 (default: 20).Example: 20
sincequerystringOptionalISO-8601 timestamp; only return entries logged at or after this time. Use with periodic polling for unauthorized-issuance monitoring.Example: 2026-05-01T00:00:00Z

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
certificatesarrayCertificate entries from CT logs with issuer, timestamp, and id
sctsarray[deprecated] Alias for certificates — will be removed once clients migrate.
hasSCTsbooleanWhether certificate entries were found in CT logs
countnumberTotal certificate entries returned in this page
truncatedbooleanWhether results were truncated — more entries exist beyond the current page. See pagination.next_offset.
sourcestringData source (crt.sh aggregator)
notestringAdditional context about the CT log search
paginationobject{ offset, limit, next_offset } — next_offset is the cursor to use for the next page when truncated is true.
sincestring | nullEcho of the since filter that was applied (null when unset).
embedded_sctobject | nullPhase 2: real embedded SCT count parsed from the cert's 1.3.6.1.4.1.11129.2.4.2 extension. { count, chrome_compliant, note }. Chrome policy requires ≥2 SCTs from distinct operators (≥3 for ≥180-day certs issued after 2022-04-15). Distinct-operator verification is approximated by raw count — full op-distinctness needs the CT log registry (Phase 2 follow-on).
unauthorized_issuanceobjectCAA/issuance correlation signals; investigate before treating a certificate as unauthorized.

Code Examples

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

cURL
curl --request GET 'https://api.edgedns.dev/v1/domain/ct-logs?domain=example.com' \
  --header "Authorization: Bearer YOUR_API_KEY"
JavaScript
const response = await fetch(
  "https://api.edgedns.dev/v1/domain/ct-logs?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-logs?domain=example.com",
    headers={'Authorization': 'Bearer YOUR_API_KEY'},
    timeout=60,
)
response.raise_for_status()
data = response.json()
print(data)

Read the full CT Logs guide

Learn the concepts, choose a practical workflow, and interpret the observations from CT Logs 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 Logs endpoint live in the playground.

CT Logs API Reference | EdgeDNS