ctlogs.dev: Certificate Transparency search
ctlogs.dev indexes every public Certificate Transparency (CT) log: billions of TLS certificates, searchable by domain, subdomain, organization, serial number, public key or SHA-256 fingerprint. CAs must log every publicly trusted certificate, so CT shows which certificates exist for a name, who issued them and when they expire.
All calls are plain HTTPS GET requests to https://api.ctlogs.dev/v1 and return JSON.
When to use this skill
- "What subdomains does example.com have?" →
/v1/hosts - "Which certificates were issued for example.com?" →
/v1/domain(exact name) or/v1/subdomains(name and everything under it) - "Which CA issues certificates for this site?", "When does its certificate expire?" →
/v1/domain, then/v1/certfor details - "Find certificates issued to an organization" →
/v1/org - "Look up this serial number / fingerprint / public key" →
/v1/serial,/v1/cert,/v1/spki - "Does this brand have a BIMI logo certificate?" →
/v1/bimi
API key (optional)
The API works without a key: 200 requests per day and 100 per hour per IP address, one request at
a time, first 10 pages of a query. If CTLOGS_API_KEY is set, add this header to every request:
-H "Authorization: Bearer $CTLOGS_API_KEY"
A free key (10,000 credits a month, non-commercial use) is at https://account.ctlogs.dev/. Paid
plans allow commercial use. Without a key, send requests one at a time. If the API answers 429,
read the error message: it says whether to wait for the previous request or that a limit was
reached; in the second case tell the user where to get a free key.
Methods
{domain} is any DNS name: an apex (example.com) or a hostname (www.example.com).
Subdomains of a domain
Every distinct hostname under the domain that has a certificate valid now or expired within the last 90 days, with certificate count, first/last seen and the latest expiry:
curl -s "https://api.ctlogs.dev/v1/hosts/example.com"
Response: {"hosts":[{"host":"www.example.com","certs":2,"first_seen":"...","last_seen":"...","last_not_after":"..."}], "has_next":false, "next_cursor":""}.
Wildcards appear inline as *.example.com. Paging past the first page needs an API key.
Certificates for a name
Exact hostname only:
curl -s "https://api.ctlogs.dev/v1/domain/example.com"
The name and all names under it (one row per certificate; matches lists its names under the domain):
curl -s "https://api.ctlogs.dev/v1/subdomains/example.com"
Each row has id, not_before, not_after, serial_hex, issuer (the CA organization),
key_algo and san_count. Results are newest first.
Certificates of an organization
Matches the subject organization (O) exactly or as a substring. Let curl encode the query:
curl -s -G "https://api.ctlogs.dev/v1/org" --data-urlencode "q=PayPal, Inc."
Rows also carry subject_cn and domains. Without a key one organization search counts as 10
requests, so ask for a precise name first.
Serial number, fingerprint, public key
curl -s "https://api.ctlogs.dev/v1/serial/77288510df7e2b1d5b1ebc349a11db61"
curl -s "https://api.ctlogs.dev/v1/spki/01774d8f83b69231dbc81514fdcd1c6944c82844298acfef7750581ad6a2e668"
/v1/serial takes 4-42 hex characters (colons and spaces are fine). /v1/spki takes the SHA-256
of the SubjectPublicKeyInfo and lists every certificate that shares that key.
Full certificate record
curl -s "https://api.ctlogs.dev/v1/cert/000000b577288510df7e2b1d5b1ebc349a11db61"
{id} is the id from any search result, or a 64-hex SHA-256 certificate fingerprint. The record
has every SAN (san_dns), the issuer DN, validity, key and signature algorithms, policy OIDs, the
public key hash (pubkey_sha256) and the CT log entries (sightings). To download the certificate
itself, append /final.pem or /precert.pem to the URL.
BIMI logo certificates
curl -s "https://api.ctlogs.dev/v1/bimi?q=cnn.com"
A query with a dot is a domain, otherwise an organization name. Rows carry the mark type
(VMC/CMC), the trademark fields, the domains and logo_url.
Paging
Search methods return up to 100 rows. When has_next is true, repeat the same request with
after=<next_cursor> added to the query string. Fetch more pages only when the user needs them.
Coverage
Every plan covers certificates valid now plus those expired within the last 90 days. A response
with history_truncated: true means older certificates exist beyond that window; history back to
2013 needs a Pro plan (see https://api.ctlogs.dev/#plans).
How to answer
- Summarize, don't dump JSON: for subdomains, list hostnames (mark wildcards); for certificates, give issuer, validity dates and names.
- Use dates from the response as they are (UTC).
- If a project shows these results to other people, ctlogs.dev asks for a visible link to https://ctlogs.dev.
More
- Web search: https://ctlogs.dev/ and the subdomain finder https://ctlogs.dev/subdomains?d=example.com
- API documentation: https://api.ctlogs.dev/ and OpenAPI: https://api.ctlogs.dev/openapi.json
- MCP server for clients that support MCP (no key needed): https://mcp.ctlogs.dev/mcp, setup at https://ctlogs.dev/mcp
