Every API here is available over the APIs.io API and to AI agents over MCP.
{
"openapi": "3.1.0",
"info": {
"title": "ctlogs.dev API",
"version": "1",
"description": "Certificate Transparency search: certificates by domain, organization, serial, fingerprint, public key or CA, and the hostnames under a domain. Requests work without a key (shared pool, 100 per day); keys come from https://account.ctlogs.dev/. Docs: https://api.ctlogs.dev/",
"termsOfService": "https://ctlogs.dev/terms",
"contact": {
"email": "contact@ctlogs.dev",
"url": "https://api.ctlogs.dev/"
}
},
"servers": [
{
"url": "https://api.ctlogs.dev"
}
],
"security": [
{},
{
"bearerAuth": []
},
{
"queryKey": []
}
],
"tags": [
{
"name": "certificates"
},
{
"name": "hostnames"
},
{
"name": "lookup"
},
{
"name": "account"
}
],
"paths": {
"/v1/domain/{domain}": {
"get": {
"operationId": "domain",
"summary": "Certificates for exactly this name",
"description": "Certificates whose subject CN or SAN dNSName equals {domain}; newest first, 100 per page. Certificates valid now or expired within the last 90 days; archive=full (Pro plan) lifts the window.",
"tags": [
"certificates"
],
"parameters": [
{
"$ref": "#/components/parameters/domain"
},
{
"$ref": "#/components/parameters/after"
},
{
"$ref": "#/components/parameters/archive"
}
],
"responses": {
"200": {
"description": "OK",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-Hourly-Limit": {
"$ref": "#/components/headers/X-Hourly-Limit"
},
"X-Hourly-Remaining": {
"$ref": "#/components/headers/X-Hourly-Remaining"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CertList"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"422": {
"$ref": "#/components/responses/TooLarge"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/Unavailable"
}
}
}
},
"/v1/subdomains/{domain}": {
"get": {
"operationId": "subdomains",
"summary": "Certificates for a domain and every name under it",
"description": "Certificates naming {domain} or any name under it; newest first, 100 per page. Certificates valid now or expired within the last 90 days; archive=full (Pro plan) lifts the window.",
"tags": [
"certificates"
],
"parameters": [
{
"$ref": "#/components/parameters/domain"
},
{
"$ref": "#/components/parameters/after"
},
{
"$ref": "#/components/parameters/archive"
}
],
"responses": {
"200": {
"description": "OK",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-Hourly-Limit": {
"$ref": "#/components/headers/X-Hourly-Limit"
},
"X-Hourly-Remaining": {
"$ref": "#/components/headers/X-Hourly-Remaining"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CertList"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"422": {
"$ref": "#/components/responses/TooLarge"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/Unavailable"
}
}
}
},
"/v1/hosts/{domain}": {
"get": {
"operationId": "hosts",
"summary": "Hostnames under a domain",
"description": "One row per distinct hostname under {domain}, in reversed-name order, 100 per page. Paging needs an API key. Certificates valid now or expired within the last 90 days, on every plan; archive= is refused with a 400 - every hostname since 2013 is /v1/hosts-history/{domain} (Pro Lite or Pro plan).",
"tags": [
"hostnames"
],
"parameters": [
{
"$ref": "#/components/parameters/domain"
},
{
"$ref": "#/components/parameters/after"
}
],
"responses": {
"200": {
"description": "OK",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-Hourly-Limit": {
"$ref": "#/components/headers/X-Hourly-Limit"
},
"X-Hourly-Remaining": {
"$ref": "#/components/headers/X-Hourly-Remaining"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HostList"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"422": {
"$ref": "#/components/responses/TooLarge"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/Unavailable"
}
}
}
},
"/v1/org": {
"get": {
"operationId": "org",
"summary": "Certificates by organization",
"description": "Certificates by subject organization (O=): 4+ characters match case-insensitively anywhere in the name, shorter queries exactly. Costs 10 credits; without a key it counts as 10 of the 100 daily requests. Certificates valid now or expired within the last 90 days; archive=full (Pro plan) lifts the window and merges the archive back to 2013.",
"tags": [
"certificates"
],
"parameters": [
{
"name": "q",
"in": "query",
"required": true,
"description": "Organization name, 1-200 characters.",
"schema": {
"type": "string"
},
"example": "PayPal, Inc."
},
{
"$ref": "#/components/parameters/after"
},
{
"$ref": "#/components/parameters/archive"
}
],
"responses": {
"200": {
"description": "OK",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-Hourly-Limit": {
"$ref": "#/components/headers/X-Hourly-Limit"
},
"X-Hourly-Remaining": {
"$ref": "#/components/headers/X-Hourly-Remaining"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CertList"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"422": {
"$ref": "#/components/responses/TooLarge"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/Unavailable"
}
}
}
},
"/v1/bimi": {
"get": {
"operationId": "bimi",
"summary": "BIMI mark certificates",
"description": "Verified and Common Mark Certificates (VMC/CMC) by domain (a query with a dot) or organization; newest first, 50 per page. Marks valid now or expired within the last 90 days; archive=full (Pro plan): every mark since 2019.",
"tags": [
"certificates"
],
"parameters": [
{
"name": "q",
"in": "query",
"required": true,
"description": "A domain or an organization name.",
"schema": {
"type": "string"
},
"example": "cnn.com"
},
{
"name": "type",
"in": "query",
"description": "Override the guess: domain or org.",
"schema": {
"type": "string",
"enum": [
"domain",
"org"
]
}
},
{
"$ref": "#/components/parameters/after"
},
{
"$ref": "#/components/parameters/archive"
}
],
"responses": {
"200": {
"description": "OK",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-Hourly-Limit": {
"$ref": "#/components/headers/X-Hourly-Limit"
},
"X-Hourly-Remaining": {
"$ref": "#/components/headers/X-Hourly-Remaining"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/BimiList"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/Unavailable"
}
}
}
},
"/v1/hosts-history/{domain}": {
"get": {
"operationId": "hostsHistory",
"summary": "Every hostname ever seen under a domain (Pro Lite, Pro)",
"description": "Pro Lite and Pro plans. Every hostname seen in a certificate under {domain} since 2013, sorted by name, 100 per page.",
"tags": [
"hostnames"
],
"parameters": [
{
"$ref": "#/components/parameters/domain"
},
{
"$ref": "#/components/parameters/after"
}
],
"responses": {
"200": {
"description": "OK",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-Hourly-Limit": {
"$ref": "#/components/headers/X-Hourly-Limit"
},
"X-Hourly-Remaining": {
"$ref": "#/components/headers/X-Hourly-Remaining"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/HostsHistoryList"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/Unavailable"
}
}
}
},
"/v1/first-seen/{domain}": {
"get": {
"operationId": "firstSeen",
"summary": "When a name first and last appeared in CT (Pro Lite, Pro)",
"description": "Pro Lite and Pro plans. The earliest and latest CT record of one name since 2013; a name without its own record gets its one-label wildcard parent's.",
"tags": [
"hostnames"
],
"parameters": [
{
"$ref": "#/components/parameters/domain"
}
],
"responses": {
"200": {
"description": "OK",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-Hourly-Limit": {
"$ref": "#/components/headers/X-Hourly-Limit"
},
"X-Hourly-Remaining": {
"$ref": "#/components/headers/X-Hourly-Remaining"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FirstSeen"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/Unavailable"
}
}
}
},
"/v1/cert/{id}": {
"get": {
"operationId": "cert",
"summary": "One certificate",
"description": "Full record of one certificate by a search-result id or a 64-hex SHA-256 fingerprint: names, validity, extensions, every CT log entry.",
"tags": [
"lookup"
],
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"description": "A search-result id (hex, archive ids with -yyyymm) or a SHA-256 fingerprint.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "OK",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-Hourly-Limit": {
"$ref": "#/components/headers/X-Hourly-Limit"
},
"X-Hourly-Remaining": {
"$ref": "#/components/headers/X-Hourly-Remaining"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CertDetail"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/Unavailable"
}
}
}
},
"/v1/cert/{id}/{body}": {
"get": {
"operationId": "certBody",
"summary": "A certificate's raw body",
"tags": [
"lookup"
],
"description": "The precertificate or final certificate as PEM or DER, when it can be downloaded (precert_body_archived / final_body_archived).",
"parameters": [
{
"name": "id",
"in": "path",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "body",
"in": "path",
"required": true,
"schema": {
"type": "string",
"enum": [
"final.pem",
"final.der",
"precert.pem",
"precert.der"
]
}
}
],
"responses": {
"200": {
"description": "The body.",
"content": {
"application/x-pem-file": {
"schema": {
"type": "string"
}
},
"application/pkix-cert": {
"schema": {
"type": "string",
"format": "binary"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/Unavailable"
}
}
}
},
"/v1/serial/{serial}": {
"get": {
"operationId": "serial",
"summary": "Certificates by serial number",
"description": "Certificates with this serial number (4-42 hex characters, colons allowed), valid now or expired within the last 90 days, on every plan; archive= is refused with a 400.",
"tags": [
"lookup"
],
"parameters": [
{
"name": "serial",
"in": "path",
"required": true,
"schema": {
"type": "string"
},
"example": "0aabbccdd"
},
{
"$ref": "#/components/parameters/after"
}
],
"responses": {
"200": {
"description": "OK",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-Hourly-Limit": {
"$ref": "#/components/headers/X-Hourly-Limit"
},
"X-Hourly-Remaining": {
"$ref": "#/components/headers/X-Hourly-Remaining"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CertList"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/Unavailable"
}
}
}
},
"/v1/spki/{hash}": {
"get": {
"operationId": "spki",
"summary": "Certificates sharing one public key",
"description": "Certificates whose public key has this SHA-256 (pubkey_sha256 of /v1/cert), valid now or expired within the last 90 days, on every plan; archive= is refused with a 400.",
"tags": [
"lookup"
],
"parameters": [
{
"$ref": "#/components/parameters/hex64"
},
{
"$ref": "#/components/parameters/after"
}
],
"responses": {
"200": {
"description": "OK",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-Hourly-Limit": {
"$ref": "#/components/headers/X-Hourly-Limit"
},
"X-Hourly-Remaining": {
"$ref": "#/components/headers/X-Hourly-Remaining"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CertList"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/Unavailable"
}
}
}
},
"/v1/ca/{sha256}": {
"get": {
"operationId": "ca",
"summary": "A CA certificate and what it issued",
"description": "The CA certificate with this SHA-256 (issuer_ca of /v1/cert): its card, parents and cross-signs, and one page of the certificates it issued (issued, in serial order). Certificates valid now or expired within the last 90 days; the Pro plan lifts the window.",
"tags": [
"lookup"
],
"parameters": [
{
"name": "sha256",
"in": "path",
"required": true,
"description": "64 hex characters (colons allowed).",
"schema": {
"type": "string",
"pattern": "^[0-9a-fA-F:]+$"
}
},
{
"$ref": "#/components/parameters/after"
}
],
"responses": {
"200": {
"description": "OK",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-Hourly-Limit": {
"$ref": "#/components/headers/X-Hourly-Limit"
},
"X-Hourly-Remaining": {
"$ref": "#/components/headers/X-Hourly-Remaining"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/CADetail"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"404": {
"$ref": "#/components/responses/NotFound"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/Unavailable"
}
}
}
},
"/v1/usage": {
"get": {
"operationId": "usage",
"summary": "Plan and remaining quota",
"description": "The key's plan, monthly credits and, for free keys, the hourly count; costs nothing. Needs a key.",
"tags": [
"account"
],
"parameters": [],
"responses": {
"200": {
"description": "OK",
"headers": {
"X-RateLimit-Limit": {
"$ref": "#/components/headers/X-RateLimit-Limit"
},
"X-RateLimit-Remaining": {
"$ref": "#/components/headers/X-RateLimit-Remaining"
},
"X-Hourly-Limit": {
"$ref": "#/components/headers/X-Hourly-Limit"
},
"X-Hourly-Remaining": {
"$ref": "#/components/headers/X-Hourly-Remaining"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Usage"
}
}
}
},
"400": {
"$ref": "#/components/responses/BadRequest"
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"$ref": "#/components/responses/Forbidden"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/Unavailable"
}
}
}
}
},
"components": {
"securitySchemes": {
"bearerAuth": {
"type": "http",
"scheme": "bearer",
"description": "Authorization: Bearer <key>"
},
"queryKey": {
"type": "apiKey",
"in": "query",
"name": "key"
}
},
"parameters": {
"domain": {
"name": "domain",
"in": "path",
"required": true,
"description": "Any DNS name, URL-encoded: example.com, www.example.com or *.example.com.",
"schema": {
"type": "string"
},
"example": "example.com"
},
"after": {
"name": "after",
"in": "query",
"description": "next_cursor of the previous page.",
"schema": {
"type": "string"
}
},
"hex64": {
"name": "hash",
"in": "path",
"required": true,
"description": "64 hex characters (colons allowed).",
"schema": {
"type": "string",
"pattern": "^[0-9a-fA-F:]+$"
}
},
"archive": {
"name": "archive",
"in": "query",
"description": "full: lift the 90-day window; a four-digit year from 2013: certificates valid into that year or later (not_after >= YYYY-01-01). Pro plan only (403 otherwise, uncharged). Any other value is a 400. On /v1/domain and /v1/subdomains an explicit archive= lists by hostname (index key order, grouped by parent zone; no time order inside a name; a certificate with several names in the zone appears once per name).",
"schema": {
"type": "string",
"pattern": "^(full|201[3-9]|20[2-9][0-9])$"
}
}
},
"headers": {
"X-RateLimit-Limit": {
"description": "Keyed requests: the monthly credit limit.",
"schema": {
"type": "integer"
}
},
"X-RateLimit-Remaining": {
"description": "Keyed requests: credits left this month.",
"schema": {
"type": "integer"
}
},
"X-Hourly-Limit": {
"description": "Anonymous and free keys: requests per UTC hour.",
"schema": {
"type": "integer"
}
},
"X-Hourly-Remaining": {
"description": "Anonymous and free keys: requests left this hour.",
"schema": {
"type": "integer"
}
},
"Retry-After": {
"description": "Seconds to wait (429, 503).",
"schema": {
"type": "integer"
}
}
},
"responses": {
"BadRequest": {
"description": "Malformed input or cursor; a keyed request is refunded.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"Unauthorized": {
"description": "Unknown or revoked key (or /v1/usage without one).",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"Forbidden": {
"description": "/v1/first-seen or /v1/hosts-history without Pro Lite or Pro, archive=full or a year without Pro, keyless paging past the allowed depth, or paging /v1/hosts without a key.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"NotFound": {
"description": "Nothing with that id or name; unknown endpoints say which method you probably meant.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"TooLarge": {
"description": "Too many certificates for a newest-first listing (a zone on the scale of amazonaws.com); not charged. Use /v1/hosts/{domain} for the hostnames, or (Pro) add archive=full to list them by hostname.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"TooManyRequests": {
"description": "One request at a time, or the daily (keyless), hourly or monthly limit.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"headers": {
"Retry-After": {
"$ref": "#/components/headers/Retry-After"
}
}
},
"Unavailable": {
"description": "The answer did not come in time (ClickHouse, the archive tier — \"archive not reached\" — or the store), the server is busy, or a certificate body is temporarily unavailable; retryable: carries Retry-After, and a keyed request is refunded.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
},
"headers": {
"Retry-After": {
"$ref": "#/components/headers/Retry-After"
}
}
}
},
"schemas": {
"Error": {
"type": "object",
"properties": {
"error": {
"type": "string",
"description": "What went wrong; unknown endpoints name the method you probably meant."
}
},
"required": [
"error"
]
},
"CertRow": {
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Certificate id for /v1/cert/{id}; archive certificates carry a -yyyymm suffix."
# --- truncated at 32 KB (54 KB total) ---
# Full source: https://artifacts.apis.io/ctlogs-dev/openapi/_original/ctlogs-dev-api-openapi.json