Search the ctlogs.dev certificate index from your code: certificates by domain, organization, serial, fingerprint or public key, and the hostnames under a domain. Pro Lite adds the hostname history back to 2013. Pro also adds archived certificates to the certificate lists.
All requests are GET to https://api.ctlogs.dev.
Certificates 90 days = valid now or expired within the last 90 days · Pro: back to 2013 with ?archive=full, or from a given year with ?archive=2022 | Free, Standard, Pro Lite | Pro | |
|---|---|---|---|
/v1/domain/{domain} | certificates for exactly this name | 90 days | since 2013 |
/v1/subdomains/{domain} | certificates for the domain and every name under it | 90 days | since 2013 |
/v1/org?q={organization} | certificates whose organization name contains the query | 90 days | since 2013 |
/v1/bimi?q={domain or organization} | BIMI logo certificates (VMC/CMC) | 90 days | since 2019 |
| Hostnames one row per hostname, not per certificate | Free, Standard | Pro Lite, Pro | |
/v1/hosts/{domain} | hostnames under the domain with a recent certificate, one row each | 90 days | 90 days |
/v1/hosts-history/{domain} | every hostname ever seen under the domain | — | since 2013 |
/v1/first-seen/{domain} | when one name first and last appeared in CT | — | since 2013 |
| Lookup by id, serial number or public key | Every plan | ||
/v1/cert/{id} | one certificate in full, with its PEM and DER | any id from a list | |
/v1/serial/{serial} | certificates by serial number | 90 days | |
/v1/spki/{hash} | certificates sharing one public key | 90 days | |
/v1/ip/{ip} | certificates naming an IP address | 90 days | |
The plan and the remaining credits of your key: /v1/usage. Details: authentication and limits, plans, pagination, measured latency, MCP server.
Responses are JSON (UTF-8). Cross-origin requests are allowed. /openapi.json (OpenAPI 3.1) describes every method.
Certificate lists are sorted newest first (by not_before) and have up to 100 rows per page (see pagination). With archive=, /v1/domain and /v1/subdomains sort by hostname instead (see archive).
{domain} is any DNS name, URL-encoded: example.com or www.example.com. /v1/domain and /v1/first-seen also take a wildcard such as *.example.com, a name of its own. /v1/hosts and /v1/hosts-history read *.example.com as example.com.
The examples that need no key have a Run button. The button sends the request from your browser without a key, and the request counts against your own anonymous limit.
Send a key in an Authorization: Bearer <key> header or in a ?key=<key> parameter. Get a key in the account cabinet: a free key for non-commercial use, or a paid plan for commercial use. An unknown or revoked key returns 401 {"error": "invalid api key"}.
curl -H 'Authorization: Bearer YOUR_KEY' 'https://api.ctlogs.dev/v1/domain/example.com'
/v1/org) counts as 10 requests. Over a limit, the API returns 429 with Retry-After. X-Daily-Remaining shows the requests that remain today, X-Hourly-Remaining the requests that remain this hour. A free key removes the daily limit.429 with Retry-After. X-Hourly-Remaining shows the requests that remain this hour.403. All requests without a key share the same server capacity. Under load, such a request can wait or return 503. Retry with backoff./v1/org costs 10 credits per request, every other method costs 1 credit. Responses to requests with a key have the X-RateLimit-Limit and X-RateLimit-Remaining headers. /v1/usage shows the remaining credits at no cost. When a free key's quota is spent, the API returns 429 until the quota renews. On a paid plan the API answers for another 10% of the quota, with X-RateLimit-Remaining at 0, and then returns 429 until the quota renews. A refused request costs nothing. The API refunds a 400 (for example, a bad cursor). A 404 is a real lookup and costs a credit.GET/v1/usage
The plan and the remaining credits of the key. This method costs nothing and counts against no limit. It needs a key (401 without one). resets_at is the time when the quota renews. Free keys also show their hourly limit.
curl -H 'Authorization: Bearer YOUR_KEY' 'https://api.ctlogs.dev/v1/usage'
{
"plan": "free",
"monthly_limit": 10000,
"used": 1733,
"remaining": 8267,
"resets_at": "2026-11-01T00:00:00Z",
"hourly_limit": 100,
"hourly_used": 0,
"hourly_resets_in_seconds": 2252
}
Every plan covers the 90-day window: all certificates that are valid now or expired within the last 90 days. This is the full current attack surface of a domain. Pro Lite adds the hostname history back to 2013 (/v1/hosts-history and /v1/first-seen). Pro also adds the archive: certificates back to 2013 on /v1/domain, /v1/subdomains, /v1/org and /v1/bimi. /v1/hosts, /v1/serial, /v1/spki and /v1/ip use the 90-day window on every plan.
| Plan | Price / month | Credits / month | Limits | History |
|---|---|---|---|---|
| Anonymous | free | — | 200 requests per day, at most 100 per hour (an organization search counts as 10), one at a time, capacity shared with other requests without a key | 90-day window |
| Free key | free | 10,000 | 100 requests per hour, one at a time | 90-day window |
| Standard | $50 per package | 100,000 × packages | none | 90-day window |
| Pro Lite | $100 per package | 100,000 × packages | none | /v1/hosts-history and /v1/first-seen back to 2013. All other methods: 90-day window |
| Pro | from $250 | none | everything in Pro Lite, plus the archive back to 2013 on /v1/domain, /v1/subdomains, /v1/org and /v1/bimi with archive=full or a year (archive=2022). /v1/hosts, /v1/serial, /v1/spki and /v1/ip: 90-day window | |
License. Every paid plan covers your own operations, reports for your clients included. A paid plan also lets you show results to your customers in your own product or service, under your own brand, with no attribution. A non-commercial project on the free tier that shows results to other people must credit ctlogs.dev with a visible link. No plan includes reselling or redistributing the results or access to them (feeds, bulk exports, APIs, datasets), or using them to build a competing certificate database. For a data license, write to contact@ctlogs.dev. The terms have the details.
By default, every list method uses the 90-day window, on every plan. On the Pro plan, archive=full removes the window: the list goes back to 2013. archive=2022 (any four-digit year from 2013) returns the certificates that expire in that year or later.
/v1/domain, /v1/subdomains: the 90-day window plus the archive back to 2013, sorted by hostname and grouped by parent zone. The rows of one name have no time order. A certificate with several names in the zone appears once per name: match is that name, and there is no matches field. A page usually takes well under one second for a zone of any size, amazonaws.com included. A first request to the archive can take 2–4 seconds. A cursor continues the same list./v1/domain, /v1/subdomains with order=year: the same rows, one expiry year at a time, the latest year first: the certificates that expire next year or later, then those that expire this year, then each year back to 2013. Inside a year the rows are sorted by hostname, as above, with no time order. A name's recent certificates are in the first one or two years, so you can stop reading once you reach an older year. order=year without archive=, or on another method, returns 400./v1/org: the 90-day window plus the archive back to 2013, newest first./v1/hosts: no archive= parameter. This method uses the 90-day window on every plan. /v1/hosts-history has every hostname since 2013./v1/bimi: every mark since 2019, or from the given year./v1/serial, /v1/spki, /v1/ip: no archive= parameter. These methods use the 90-day window on every plan.curl -H 'Authorization: Bearer YOUR_KEY' 'https://api.ctlogs.dev/v1/subdomains/example.com?archive=2022'
curl -H 'Authorization: Bearer YOUR_KEY' 'https://api.ctlogs.dev/v1/domain/example.com?archive=full&order=year'
Server-side latency over 1,212 real queries from the access log, measured on 2026-09-03 (cold result cache, one request at a time, production load). From Europe, Cloudflare adds roughly 40–60 ms end to end. We measure again after major changes.
| Method | p50 | p90 |
|---|---|---|
/v1/domain | 26 ms | 31 ms |
/v1/subdomains | 46 ms | 54 ms |
/v1/hosts | 41 ms | 49 ms |
/v1/serial | 43 ms | 51 ms |
/v1/cert | 109 ms | 182 ms |
/v1/org | 352 ms | 516 ms |
The searches of the API are also available as a Model Context Protocol server for AI assistants and agents: https://mcp.ctlogs.dev/mcp (Streamable HTTP). The server works without a key or an account. If you have a key, send it in the Authorization header, as for the API. The MCP server page has the tools, the connection instructions for Claude, ChatGPT, Cursor and VS Code, the sign-in and the limits.
GET/v1/domain/{domain}
Certificates whose subject CN or SAN dNSName equals {domain} exactly. A SAN dNSName is a DNS name in the Subject Alternative Name list of the certificate. A wildcard certificate for *.example.com is a different name: this method does not return it for sub.example.com. /v1/subdomains returns both.
curl 'https://api.ctlogs.dev/v1/domain/example.com'
{
"rows": [
{
"id": "000000b501eee6aabb521d5e14fc315fd9985690",
"match": "example.com",
"matches": [
"example.com"
],
"not_before": "2026-09-26T22:49:11Z",
"not_after": "2026-12-25T22:56:35Z",
"serial_hex": "01eee6aabb521d5e14fc315fd9985690",
"issuer": "SSL Corporation",
"key_algo": "ECDSA P-256",
"san_count": 2
},
{
"id": "0000035362036c9f540965765e0ecc173cd1509c",
"match": "example.com",
"matches": [
"example.com"
],
"not_before": "2026-09-26T22:48:57Z",
"not_after": "2026-12-25T22:56:35Z",
"serial_hex": "62036c9f540965765e0ecc173cd1509c",
"issuer": "SSL Corporation",
"key_algo": "RSA 2048",
"san_count": 2
},
"… 13 more rows"
],
"has_next": false,
"next_cursor": "",
"duration_ms": 36,
"history_window_days": 90,
"history_truncated": true,
"upgrade": "https://account.ctlogs.dev/"
}GET/v1/subdomains/{domain}
Certificates for {domain} itself and every name under it, for example www.example.com, *.example.com and a.b.example.com. This is the same as the *.example.com query on the website. Each row is one certificate. matches lists all names of the certificate under {domain}, the apex (the domain itself) first. match is the first of them.
curl 'https://api.ctlogs.dev/v1/subdomains/example.com'
{
"rows": [
{
"id": "0005432a298e86054c63f6553cb78d46aeb08b0f75658494",
"match": "emudhra-lab.example.com",
"matches": [
"emudhra-lab.example.com"
],
"not_before": "2026-10-20T21:19:03Z",
"not_after": "2027-08-01T21:19:03Z",
"serial_hex": "298e86054c63f6553cb78d46aeb08b0f75658494",
"issuer": "eMudhra BV",
"key_algo": "ECDSA P-256",
"san_count": 1
},
"… 7 more rows",
{
"id": "000000b501eee6aabb521d5e14fc315fd9985690",
"match": "example.com",
"matches": [
"example.com",
"*.example.com"
],
"not_before": "2026-09-26T22:49:11Z",
"not_after": "2026-12-25T22:56:35Z",
"serial_hex": "01eee6aabb521d5e14fc315fd9985690",
"issuer": "SSL Corporation",
"key_algo": "ECDSA P-256",
"san_count": 2
},
"… 14 more rows"
],
"has_next": false,
"next_cursor": "",
"duration_ms": 93,
"history_window_days": 90,
"history_truncated": true,
"upgrade": "https://account.ctlogs.dev/"
}GET/v1/hosts/{domain}
Every distinct hostname under {domain} that has a certificate in the 90-day window (valid now or expired within the last 90 days), the apex and wildcards such as *.example.com included. Each row is one hostname. certs is the number of those certificates that name it. first_seen and last_seen are the first and the latest of them, and last_not_after is the expiry of the latest one. /v1/hosts-history (Pro Lite or Pro plan) has the hostnames whose certificates all expired earlier. Rows are sorted by reversed name (example.com, *.example.com, a.example.com, www.example.com, …), 100 per page. Pages after the first need an API key.
curl 'https://api.ctlogs.dev/v1/hosts/example.com'
{
"hosts": [
{
"host": "example.com",
"certs": 19,
"first_seen": "2025-11-20T00:00:00Z",
"last_seen": "2026-09-26T22:49:11Z",
"last_not_after": "2026-12-25T22:56:35Z"
},
{
"host": "*.example.com",
"certs": 16,
"first_seen": "2026-05-31T21:39:00Z",
"last_seen": "2026-09-26T22:49:11Z",
"last_not_after": "2026-12-25T22:56:35Z"
},
{
"host": "emudhra-lab.example.com",
"certs": 8,
"first_seen": "2026-10-20T19:58:47Z",
"last_seen": "2026-10-20T21:19:03Z",
"last_not_after": "2027-08-01T21:19:03Z"
},
{
"host": "www.example.com",
"certs": 2,
"first_seen": "2025-11-21T00:00:00Z",
"last_seen": "2025-12-02T00:00:00Z",
"last_not_after": "2026-12-02T23:59:59Z"
}
],
"has_next": false,
"next_cursor": "",
"duration_ms": 160,
"history_window_days": 90
}GET/v1/org?q={organization}
Certificates by subject organization (O=). A query of 4 or more characters matches anywhere in the name, case-insensitively (paypal finds “PayPal, Inc.”). A shorter query must match the full name exactly, so EY still works. Rows have subject_cn and a sample of domains in place of the issuer and key fields. Costs 10 credits per request (see limits). With archive=full (Pro plan), results also include archived certificates back to 2013. If a page cannot reach the archive, the API returns 503 (archive not reached) and does not charge the request. Retry it.
curl 'https://api.ctlogs.dev/v1/org?q=paypal'
{
"rows": [
{
"id": "000000160fb86b686f5cef5c17f912c0a099c091",
"match": "PayPal, Inc.",
"not_before": "2026-10-22T00:00:00Z",
"not_after": "2027-05-08T23:59:59Z",
"serial_hex": "0fb86b686f5cef5c17f912c0a099c091",
"issuer": "DigiCert Inc",
"subject_cn": "api.financing.paypal.com",
"domains": [
"api.financing.paypal.com",
"api.financing-mint.paypal.com"
]
},
{
"id": "0000000f0ff39df8ef046a59ef793a641478e016",
"match": "PayPal, Inc.",
"not_before": "2026-10-22T00:00:00Z",
"not_after": "2027-05-08T23:59:59Z",
"serial_hex": "0ff39df8ef046a59ef793a641478e016",
"issuer": "DigiCert Inc",
"subject_cn": "ppoms02.paypalinc.com",
"domains": [
"ppoms02.paypalinc.com"
]
},
"… 93 more rows"
],
"has_next": false,
"next_cursor": "",
"duration_ms": 708,
"history_window_days": 90,
"history_truncated": true,
"upgrade": "https://account.ctlogs.dev/"
}GET/v1/bimi?q={domain or organization}
Verified Mark and Common Mark Certificates (VMC/CMC), the certificates behind brand logos in BIMI e-mail, as on ctlogs.dev/bimi. A query with a dot is a domain: the method returns the marks whose SAN list has that domain or a name under it (a leading *. and a trailing dot are ignored). Any other query matches anywhere in the subject organization, the subject CN or the word mark, case-insensitively. Add type=domain or type=org to set the query type yourself, for example for an organization with a dot in its name (Booking.com B.V.). Rows are sorted newest first, 50 per page, with has_next and next_cursor. The method is available on every plan and without a key. 1 credit per request. With archive=full (Pro plan), the method returns every mark since 2019.
Each row has the subject, issuer and trademark fields, the domains of the certificate, kind (VMC or CMC) and the CT log entry of the certificate. The row does not contain the logo itself. logo_url points to a sanitized copy of the SVG from the certificate on ctlogs.dev, and is absent when the certificate has no logo. logo_hash_ok tells whether the SVG matches the hash in the certificate. page_url, pem_url and der_url point to the page of the mark and to the certificate body.
curl 'https://api.ctlogs.dev/v1/bimi?q=cnn.com'
{
"query": "cnn.com",
"type": "domain",
"rows": [
{
"id": "f468559206fd370c",
"kind": "VMC",
"subject_o": "Cable News Network, Inc.",
"subject_cn": "Cable News Network, Inc.",
"subject_c": "US",
"subject_dn": "SERIALNUMBER=2976730,CN=Cable News Network\\, Inc.,O=Cable News Network\\, Inc.,STREET=190 Marietta St NW,L=Atlanta,ST=Georgia,C=US",
"issuer_dn": "CN=DigiCert Verified Mark RSA4096 SHA256 2021 CA1,O=DigiCert\\, Inc.,C=US",
"domains": [
"cnn.com"
],
"not_before": "2026-08-28T00:00:00Z",
"not_after": "2027-09-01T23:59:59Z",
"serial_hex": "0cb658999c795a3a19c7ee4434a810bd",
"sha256": "c32882230aa19b1b6e50230928f4c2751602b1dad06955121f9bd4f56393b9d7",
"is_precert": false,
"word_mark": "",
"mark_type": "Registered Mark",
"trademark_office": "",
"trademark_country": "US",
"trademark_registration": "5817930",
"logo_url": "https://ctlogs.dev/bimi/f468559206fd370c/logo.svg",
"logo_hash_ok": true,
"page_url": "https://ctlogs.dev/bimi/f468559206fd370c",
"pem_url": "https://ctlogs.dev/bimi/f468559206fd370c.pem",
"der_url": "https://ctlogs.dev/bimi/f468559206fd370c.der",
"log_id": "VVlTrjCWAIBs0utSCKbJnpMYKKwQVrRCHFU2FUxfdaw=",
"log_url": "https://gorgon.ct.digicert.com/log/",
"entry_idx": 41616,
"sct_ts": "2026-09-12T01:51:55.898Z"
},
{
"id": "87703325e3e8d912",
"kind": "VMC",
"subject_o": "Cable News Network, Inc.",
"subject_cn": "Cable News Network, Inc.",
"subject_c": "US",
"subject_dn": "SERIALNUMBER=2976730,CN=Cable News Network\\, Inc.,O=Cable News Network\\, Inc.,STREET=190 Marietta St NW,L=Atlanta,ST=Georgia,C=US",
"issuer_dn": "CN=DigiCert Verified Mark RSA4096 SHA256 2021 CA1,O=DigiCert\\, Inc.,C=US",
"domains": [
"cnn.com"
],
"not_before": "2025-08-11T00:00:00Z",
"not_after": "2026-09-01T23:59:59Z",
"serial_hex": "0761ea92ba6d039b6ee0bf657c0b1821",
"sha256": "ce9ea9c4eb87613448dadd064bfb64d3c5f1ac37ec4406ee7ab601bc658635dc",
"is_precert": false,
"word_mark": "",
"mark_type": "Registered Mark",
"trademark_office": "",
"trademark_country": "US",
"trademark_registration": "5817930",
"logo_url": "https://ctlogs.dev/bimi/87703325e3e8d912/logo.svg",
"logo_hash_ok": true,
"page_url": "https://ctlogs.dev/bimi/87703325e3e8d912",
"pem_url": "https://ctlogs.dev/bimi/87703325e3e8d912.pem",
"der_url": "https://ctlogs.dev/bimi/87703325e3e8d912.der",
"log_id": "VVlTrjCWAIBs0utSCKbJnpMYKKwQVrRCHFU2FUxfdaw=",
"log_url": "https://gorgon.ct.digicert.com/log/",
"entry_idx": 24597,
"sct_ts": "2025-08-17T08:27:52.04Z"
}
],
"has_next": false,
"next_cursor": "",
"duration_ms": 209,
"history_window_days": 90,
"history_truncated": true,
"upgrade": "https://account.ctlogs.dev/"
}GET/v1/hosts-history/{domain}
Pro Lite and Pro plans. Every hostname ever seen in a certificate under {domain} since 2013, the apex and wildcards included. Each row has the first SCT timestamp, the earliest validity start and the latest expiry. last_not_after is null when the latest record is unknown (see first-seen). Rows are sorted by reversed name as in /v1/hosts, 100 per page. 1 credit per page. For the current hostnames with certificate counts, use /v1/hosts.
curl -H 'Authorization: Bearer YOUR_KEY' 'https://api.ctlogs.dev/v1/hosts-history/example.com'
{
"apex": "example.com",
"hosts": [
{
"name": "example.com",
"first_seen": "2014-12-11T14:36:57.201Z",
"first_not_before": "2014-11-06T00:00:00Z",
"last_not_after": "2026-12-25T22:56:35Z"
},
{
"name": "*.example.com",
"first_seen": "2016-07-14T07:25:01.93Z",
"first_not_before": "2016-07-14T00:00:00Z",
"last_not_after": "2026-12-25T22:56:35Z"
},
{
"name": "emudhra-lab.example.com",
"first_seen": "2026-10-20T20:37:31.796Z",
"first_not_before": "2026-10-20T19:58:47Z",
"last_not_after": "2027-08-01T21:19:03Z"
},
"… 5 more hosts"
],
"has_next": false,
"next_cursor": "",
"duration_ms": 89
}
GET/v1/first-seen/{domain}
Pro Lite and Pro plans. The first and the latest Certificate Transparency record of one hostname since 2013. first_logged is the first record: SCT timestamp, validity start, issuer and serial. last_logged is the latest record. min_not_before is the earliest validity start and max_not_after is the latest expiry. Issuer and serial identify a record. To get the certificate itself, use /v1/serial/{serial}. 1 credit per request.
A hostname without a certificate of its own gets the history of the wildcard one label up. matched tells which name the answer is for: the hostname itself or, as in the example, *.example.com. You can also query a wildcard directly.
last_logged and max_not_after are null when only the first record of the name is known. The method returns 404 when neither the name nor its wildcard parent ever appeared in CT. Sometimes only the wildcard one label below exists. That wildcard covers names under the domain, not the domain itself. The error then names it: {"error": "no CT record for this name; only *.{domain} exists"}. You can query that wildcard instead.
curl -H 'Authorization: Bearer YOUR_KEY' 'https://api.ctlogs.dev/v1/first-seen/foo.example.com'
{
"name": "foo.example.com",
"matched": "*.example.com",
"first_logged": {
"sct_ts": "2016-07-14T07:25:01.93Z",
"not_before": "2016-07-14T00:00:00Z",
"issuer": "CN=thawte SSL CA - G2,O=thawte\\, Inc.,C=US",
"serial": "75547E6F9D1C6F1B60227E84C9D83203"
},
"min_not_before": "2016-07-14T00:00:00Z",
"last_logged": {
"sct_ts": "2026-10-11T01:26:05.467Z",
"issuer": "CN=Cloudflare TLS Issuing RSA CA 3,O=SSL Corporation,C=US",
"serial": "62036C9F540965765E0ECC173CD1509C"
},
"max_not_after": "2026-12-25T22:56:35Z",
"duration_ms": 39
}
GET/v1/cert/{id}
The full record of one certificate: subject and issuer DNs, the complete SAN list, validity, key and signature details, policy OIDs, fingerprints and every CT log entry of the certificate with its SCT timestamp. {id} is an id from a list method, or the SHA-256 fingerprint of the precertificate or the final certificate (64 hex characters, separators are ignored). Archived certificates have ids that end in -yyyymm. These ids come from pages with archive= on the Pro plan. A fingerprint does not find archived certificates.
precert_sha256 and final_sha256 are the SHA-256 of the precertificate as logged and of the final certificate. Each is empty when that form was not logged or is not known. precert_first_seen and final_first_seen are the earliest SCT timestamps of each form, and null for a form that was never logged. issuer_ca is the SHA-256 of the issuing CA certificate. san_dns lists the DNS names of the SAN; san_other, present only when the certificate has such entries, lists the rest as {"type", "value"}: ip, email and uri with the plain value, and the rare other, dirname and regid as hex of the raw entry.
curl 'https://api.ctlogs.dev/v1/cert/000000b50624d0ab311558780b7d5213b9631831'
{
"aki": "8303fde7f6f54a4d1541f4ed2216d3320a3eca66",
"duration_ms": 111,
"ext_key_usage": [
"serverAuth"
],
"final_body_archived": false,
"final_body_bytes": 0,
"final_first_seen": "2026-07-29T22:20:19.316Z",
"final_sha256": "6153a96fd1a6ab7f4d438fc34932484299d0729d9140b3a126bb2f9c07b02200",
"id": "000000b50624d0ab311558780b7d5213b9631831",
"is_ca": false,
"issuer_ca": "f15f29abef73aa4dd9ab754baeae3685bdd3874b46b525071177628685718026",
"issuer_dn": "CN=Cloudflare TLS Issuing ECC CA 3,O=SSL Corporation,C=US",
"not_after": "2026-10-27T22:17:21Z",
"not_before": "2026-07-29T22:10:08Z",
"policy_oids": [
"2.23.140.1.2.1",
"1.3.6.1.4.1.38064.1.3.1.1"
],
"precert_body_archived": false,
"precert_body_bytes": 0,
"precert_first_seen": "2026-07-29T22:20:12.47Z",
"precert_sha256": "",
"pubkey_sha256": "0856752f53199a673dcc955c137fe1f5b105a180528acb320bb3eddf15103a9b",
"san_dns": [
"example.com",
"*.example.com"
],
"serial_hex": "0624d0ab311558780b7d5213b9631831",
"sig_algo": "ECDSA-SHA256",
"sightings": [
{
"entry_idx": 1433464941,
"is_precert": true,
"log_id": "944e4387faecc1ef81f3192426a8186501c7d35f3802013f72677d55372e19d8",
"log_url": "https://sphinx.ct.digicert.com/2026h2/",
"operator": "DigiCert",
"sct_ts": "2026-07-29T22:20:12.47Z"
},
{
"entry_idx": 1480562289,
"is_precert": true,
"log_id": "c2317e574519a345ee7f38deb29041ebc7c2215a22bf7fd5b5ad769ad90e52cd",
"log_url": "https://wyvern.ct.digicert.com/2026h2/",
"operator": "DigiCert",
"sct_ts": "2026-07-29T22:20:12.486Z"
},
"… 25 more sightings"
],
"subject_cn": "example.com",
"subject_dn": "CN=example.com"
}To download the certificate, append /final.pem, /final.der, /precert.pem or /precert.der. You can download the body (the PEM or DER file) of nearly every certificate: the precertificate for nearly all of them, and the final certificate for about half (only a log that received the final certificate has it). precert_body_archived and final_body_archived tell which downloads exist. precert_body_bytes and final_body_bytes give their sizes (0 when not known). When a body does not exist, the API returns 404 {"error": "certificate body not archived"}. The log entry in sightings is then the source. When a body is temporarily unavailable, the API returns 503 {"error": "certificate body is temporarily unavailable; try again shortly"} with Retry-After and does not charge the request. Retry it.
GET/v1/serial/{serial}
Finds certificates by serial number: 4–42 hex characters. Separators (:, -, spaces) and leading zero bytes are ignored. Serials are not globally unique, so one serial can return certificates from several CAs. This method uses the 90-day window on every plan (archive= returns 400).
curl 'https://api.ctlogs.dev/v1/serial/0624d0ab311558780b7d5213b9631831'
{
"rows": [
{
"id": "000000b50624d0ab311558780b7d5213b9631831",
"match": "example.com",
"not_before": "2026-07-29T22:10:08Z",
"not_after": "2026-10-27T22:17:21Z",
"serial_hex": "0624d0ab311558780b7d5213b9631831",
"issuer": "SSL Corporation",
"key_algo": "ECDSA P-256",
"san_count": 2
}
],
"has_next": false,
"next_cursor": "",
"duration_ms": 74,
"history_window_days": 90,
"history_truncated": false
}GET/v1/spki/{hash}
Finds every certificate that has the same public key. {hash} is the SHA-256 of the SubjectPublicKeyInfo (64 hex characters, separators are ignored). To compute it with OpenSSL: openssl x509 -pubkey | openssl pkey -pubin -outform DER | sha256sum. Use this method to find key reuse across certificates and CAs. For a key shared by more than 1,000 certificates (shared-hosting and CDN keys), the method lists only the first 1,000 in issuer and serial order, and every page has "truncated": true. Other keys are listed in full. This method uses the 90-day window on every plan (archive= returns 400).
curl 'https://api.ctlogs.dev/v1/spki/0856752f53199a673dcc955c137fe1f5b105a180528acb320bb3eddf15103a9b'
{
"rows": [
{
"id": "000000b50624d0ab311558780b7d5213b9631831",
"match": "example.com",
"not_before": "2026-07-29T22:10:08Z",
"not_after": "2026-10-27T22:17:21Z",
"serial_hex": "0624d0ab311558780b7d5213b9631831",
"issuer": "SSL Corporation",
"key_algo": "ECDSA P-256",
"san_count": 2
}
],
"has_next": false,
"next_cursor": "",
"duration_ms": 393,
"history_window_days": 90,
"history_truncated": false,
"truncated": false
}GET/v1/ip/{ip}
Finds the certificates whose subjectAltName holds this IPv4 or IPv6 address (an iPAddress entry). Most of them are short-lived certificates that a CA issues for a server reached by its address rather than a name. The address is matched in canonical form, so 2001:DB8:0::7 and 2001:db8::7 are the same query. match is the address. The certificate's other addresses, e-mail and URI entries are in san_other of /v1/cert.
curl 'https://api.ctlogs.dev/v1/ip/192.0.2.7'
A list response has up to 100 rows (50 for /v1/bimi), plus has_next and next_cursor. To get the next page, repeat the same request with ?after=<next_cursor> (cursor= is an alias). The cursor is an opaque token. Do not parse it. Without a key, a query returns at most 10 pages. With a key, the quota is the only limit.
curl 'https://api.ctlogs.dev/v1/subdomains/example.com?after=NEXT_CURSOR'
{
"rows": [
{
"id": "0005432c7e9cfb6128b531a046f1dfe0464aa7de",
"match": "google.com",
"matches": [
"google.com"
],
"not_before": "2026-10-21T01:45:29Z",
"not_after": "2026-10-22T01:50:29Z",
"serial_hex": "7e9cfb6128b531a046f1dfe0464aa7de",
"issuer": "eMudhra BV",
"key_algo": "ECDSA P-256",
"san_count": 1
},
"… 99 more rows"
],
"has_next": true,
"next_cursor": "MTc5MjU0NzEyOTAwMDAwMDAwMHwwMDA1NDMyY3wyNmYwODMyOTJkNTdiZTA3M2NjNDg0MzY1M2I0NzI4OHwyfGI4YmM2MWJhYTIwNTA1N2EyNDM2OWUyZg",
"duration_ms": 93,
"history_window_days": 90,
"history_truncated": true,
"upgrade": "https://account.ctlogs.dev/"
}
| Field | Meaning |
|---|---|
| has_next, next_cursor | Whether another page exists, and the cursor that gets it (see pagination). next_cursor is empty on the last page. |
| duration_ms | Server time of the query, in milliseconds. |
| history_window_days | 90 when the answer is limited to the 90-day window. Absent otherwise. |
| history_truncated, upgrade | On the first page of a /v1/domain, /v1/subdomains, /v1/org or /v1/bimi answer that is limited to the 90-day window: history_truncated is true when older certificates exist, and upgrade is the address where you get the plan that shows them. /v1/domain and /v1/subdomains send history_truncated only when it is true: without it, older certificates may still exist. /v1/serial and /v1/spki have history_truncated without upgrade, because no plan lists them further back; /v1/ip sends neither. |
| truncated | /v1/spki: the key has more than 1,000 certificates, and only the first 1,000 are listed. |
| id | Stable certificate id. Use it in /v1/cert/{id} or https://ctlogs.dev/cert/{id}. |
| match | The name that matched: a SAN dNSName for /v1/domain and /v1/subdomains, the subject organization for /v1/org, the subject CN for /v1/serial and /v1/spki, the address for /v1/ip. |
| matches | /v1/domain and /v1/subdomains without archive=: every name of the certificate under the queried domain, the apex first. match is the first of them. Absent on pages sorted by hostname (archive=), where each row is one name. |
| not_before, not_after | Validity window, RFC 3339 UTC. |
| serial_hex | Serial number, minimal big-endian hex. |
| issuer, key_algo, san_count | Issuer CN, public-key algorithm (“RSA 2048”, “ECDSA P-256”), SAN count. /v1/domain, /v1/subdomains, /v1/serial, /v1/spki and /v1/ip only. |
| subject_cn, domains, domains_more | Subject CN, a sample of the domains of the certificate, and the number of domains that are not shown. /v1/org only. |
An error is a JSON object with one field, error, sent with the HTTP status below:
{"error": "requires the Pro plan — https://account.ctlogs.dev/"}
| Status | Meaning |
|---|---|
| 400 | Malformed request: a bad hostname, IP address, serial, hash or certificate id, an organization name over 200 characters, a /v1/bimi query without q, an invalid or expired cursor, archive= with another value, or archive= on /v1/hosts, /v1/serial, /v1/spki or /v1/ip. |
| 401 | The API key is unknown or revoked, or /v1/usage was called without a key. |
| 403 | /v1/first-seen or /v1/hosts-history without Pro Lite or Pro, archive=full or a year without Pro, a /v1/hosts page after the first without a key, or a query without a key past its 10th page. |
| 404 | An unknown API method (the error names the method that you probably meant), no certificate with that id or fingerprint, a certificate body that does not exist, or a /v1/first-seen name never seen in CT, not even under its wildcard parent (the error names *.{domain} when only that wildcard exists). |
| 405 | An HTTP method other than GET or HEAD. |
| 422 | Too many certificates for a newest-first list: a zone as large as amazonaws.com in /v1/subdomains (or, in theory, /v1/domain, /v1/org and /v1/hosts). Not charged. List the hostnames of the zone with /v1/hosts/{domain}. On the Pro plan, you can also add archive=full to list the certificates by hostname. |
| 429 | A limit is reached. Without a key: a second request at the same time, more than 200 requests in the UTC day, or more than 100 in the UTC hour. With a free key: a second request at the same time, or more than 100 requests in the UTC hour. These responses have Retry-After. With a free key: the monthly quota is spent. With a paid key: the monthly quota and the 10% after it are spent. |
| 500, 503 | The server is busy, or the answer did not come in time: the search index, the archive (archive not reached with archive=) or the certificate store, or a certificate body that is temporarily unavailable. A 503 has Retry-After, and a request with a key is not charged. Retry with backoff. |