# ctlogs.dev Certificate Transparency API > REST API over a continuously updated index of all public Certificate > Transparency logs - billions of TLS/SSL certificates searchable by domain, > organization, serial number or fingerprint. Engineered for speed: API > response time is a primary development focus. ctlogs.dev API: the fastest way to query Certificate Transparency - billions of certificates, ~30-50 ms typical latency, JSON, cursor paging. Free without a key (100 requests per day per address, one request at a time, on server capacity shared with other keyless users, the first 10 pages of a query; a keyless organization search counts as 10 of the 100) or with a free key from https://account.ctlogs.dev/ (10 000 credits/month, 100 requests per hour, non-commercial use, paging as deep as the quota goes). A non-commercial project that shows results to other people must credit ctlogs.dev with a visible link to https://ctlogs.dev. Signing in on the website (https://ctlogs.dev/login, GitHub or Google) gives ctlogs.dev the same monthly allowance as a free key, shared with the key. Paid plans allow commercial use: your own operations, client reports and showing results inside your own branded product; reselling or redistributing results needs a separate licence (https://ctlogs.dev/terms#licence). Every plan covers all currently valid certificates plus those expired within the last 90 days - the full current attack surface of a domain. On the Pro plan, archive=full lifts that window on /v1/domain, /v1/subdomains, /v1/org and /v1/bimi (?archive=full, or &archive=full after ?q=; without the Pro plan it answers 403, uncharged). /v1/hosts, /v1/serial and /v1/spki keep the window on every plan (archive= there is a 400); every hostname since 2013 is /v1/hosts-history. archive=2022 (any four-digit year from 2013) keeps the certificates valid into that year or later. On /v1/domain and /v1/subdomains an explicit archive= lists by hostname (index key order, grouped by parent zone, one row per hostname of a certificate) and streams on any zone size; every other list is newest first. There is no order parameter. Pro Lite adds first-seen dates per hostname (/v1/first-seen) and historical subdomain discovery (/v1/hosts-history) back to 2013, everything else staying at the 90-day window; Pro adds on top the deep archive back to 2013 - domain, subdomain and organization search over archived certificates (with archive=full or a year). Responses carry history_truncated=true when older records are known to exist beyond the window; on a domain or subdomain answer its absence does not mean there are none. ## API Base URL: https://api.ctlogs.dev/v1 - all responses are JSON. Search methods return up to 100 rows plus cursor pagination (repeat the request with ?after=). {domain} in a path is any DNS name - an apex (example.com) or a hostname (www.example.com); /v1/domain and /v1/first-seen match it exactly, /v1/subdomains, /v1/hosts and /v1/hosts-history take it together with every name under it. Performance (measured 2026-09-03 on real queries, cold cache, server-side p50 / p90): domain 26 / 31 ms, subdomains 46 / 54 ms, hosts 41 / 49 ms, serial 43 / 51 ms, cert 109 / 182 ms, org 352 / 516 ms. End-to-end adds the Cloudflare round trip (~40-60 ms from Europe). - /v1/domain/{domain}: certificates matching the exact hostname. With archive=full or a year (Pro plan), results also include archived certificates back to 2013, listed by hostname. curl 'https://api.ctlogs.dev/v1/domain/example.com' - /v1/subdomains/{domain}: certificates for {domain} and its subdomains, one row per certificate: matches lists all of its names under {domain} (the apex first), match is the first of them. With archive=full or a year (Pro plan), results also include archived certificates back to 2013, listed by hostname: one row per certificate and name, no matches. curl 'https://api.ctlogs.dev/v1/subdomains/example.com' - /v1/hosts/{domain}: subdomain finder - every distinct hostname under {domain} with a certificate valid now or expired within the last 90 days (the last 90 days on every plan, archive= is refused with a 400; apex + wildcards inline), one row per hostname with certs count, first_seen / last_seen and last_not_after. 100 per page; the website shows page 1 only, paging needs an API key. History since 2013: /v1/hosts-history (Pro Lite and Pro plans). curl 'https://api.ctlogs.dev/v1/hosts/example.com' - /v1/org?q={name}: certificates by subject organization (exact or substring). With archive=full or a year (Pro plan), results also include archived certificates back to 2013. A page that cannot reach the archive answers 503 "archive not reached" with Retry-After and is not charged - retry it. curl 'https://api.ctlogs.dev/v1/org?q=PayPal%2C%20Inc.' curl -H 'Authorization: Bearer YOUR_KEY' 'https://api.ctlogs.dev/v1/org?q=PayPal%2C%20Inc.&archive=full' - /v1/serial/{hex}: certificates by serial number (4-42 hex chars, separators tolerated); certificates valid now or expired within the last 90 days, on every plan (archive= is a 400). curl 'https://api.ctlogs.dev/v1/serial/0624d0ab311558780b7d5213b9631831' - /v1/spki/{hash}: certificates sharing one public key ({hash} = SHA-256 of the SubjectPublicKeyInfo, 64 hex, separators tolerated); certificates valid now or expired within the last 90 days, on every plan (archive= is a 400). 1 credit per request. A key shared by more than 1,000 certificates lists its first 1,000 (issuer/serial order) with "truncated": true on every page. curl 'https://api.ctlogs.dev/v1/spki/0856752f53199a673dcc955c137fe1f5b105a180528acb320bb3eddf15103a9b' - /v1/first-seen/{domain}: Pro Lite and Pro plans. Earliest and latest CT record of one exact hostname since 2013 (SCT timestamp, issuer, serial of each record; min_not_before and max_not_after for the name); a name without a certificate of its own gets its wildcard parent's ("matched"); 404 when the name never appeared, not even under its wildcard parent (the error names *.{domain} when only that wildcard exists - query it for its history); last_logged / max_not_after are null when only the first record is known. curl -H 'Authorization: Bearer YOUR_KEY' 'https://api.ctlogs.dev/v1/first-seen/foo.example.com' - /v1/hosts-history/{domain}: Pro Lite and Pro plans. Every hostname ever certified under {domain} since 2013 with first_seen, first_not_before and last_not_after (null when the latest record is unknown); 100 per page. curl -H 'Authorization: Bearer YOUR_KEY' 'https://api.ctlogs.dev/v1/hosts-history/example.com' - /v1/bimi?q={domain or organisation}: BIMI mark certificates (VMC/CMC, the brand-logo certificates behind BIMI e-mail logos), as on https://ctlogs.dev/bimi. A query with a dot is a domain (marks whose SAN list holds it or a name under it), otherwise an organisation substring (subject O, CN or word mark); type=domain|org overrides. Rows carry the trademark fields, the domains, logo_url (sanitised SVG on ctlogs.dev), page_url, pem_url / der_url and the log entry. 50 per page, cursor paging. Every plan, 1 credit. History: marks valid now or expired within the last 90 days; with archive=full (Pro plan) every mark, with a year every mark from that year (since 2019). curl 'https://api.ctlogs.dev/v1/bimi?q=cnn.com' - /v1/usage: the key's plan and remaining monthly quota (plus the hourly window for free keys); it counts against no limit and costs nothing. Key required. Every keyed response also carries X-RateLimit-Limit / X-RateLimit-Remaining. A malformed request (400) is refunded; a 404 is a real lookup and stays paid. curl -H 'Authorization: Bearer YOUR_KEY' 'https://api.ctlogs.dev/v1/usage' - /v1/cert/{id}: the full record of one certificate; {id} is the id value from search results (archived certificates: ids ending in -yyyymm, from Pro org results), or a 64-hex SHA-256 fingerprint (it does not find archived certificates). Raw bodies can be downloaded for nearly every certificate: append /final.pem, /final.der, /precert.pem or /precert.der; 404 when there is none, 503 with Retry-After when it is temporarily unavailable (not charged; retry). precert_body_archived / final_body_archived say which downloads exist (sizes in precert_body_bytes / final_body_bytes, 0 when unknown). The precertificate body exists for nearly every certificate, the final body only when a log received the final certificate (about half). issuer_ca is the SHA-256 of the issuing CA certificate. curl 'https://api.ctlogs.dev/v1/cert/000000b50624d0ab311558780b7d5213b9631831' ## Docs - API documentation: https://api.ctlogs.dev/ - MCP server (Streamable HTTP, no key needed): https://mcp.ctlogs.dev/mcp — tools find_subdomains, search_certificates, search_organization, get_certificate, get_ca; setup per client: https://ctlogs.dev/mcp - OpenAPI 3.1: https://api.ctlogs.dev/openapi.json (an unknown method answers 404 naming the one you probably meant) - Web search UI: https://ctlogs.dev/ - Monitored CT logs and coverage: https://ctlogs.dev/logs