Skip to main content
POST
/
api
/
crtsh
/
certificates
/
search
/crtsh/certificates/search
curl --request POST \
  --url https://api.anysite.io/api/crtsh/certificates/search \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "domain": "<string>",
  "count": 2,
  "timeout": 300,
  "exclude_expired": false
}
'
[
  {
    "id": 123,
    "@type": "@crtsh_certificate",
    "common_name": "<string>",
    "name_value": [],
    "issuer_name": "<string>",
    "issuer_ca_id": 123,
    "serial_number": "<string>",
    "not_before": "<string>",
    "not_after": "<string>",
    "logged_at": "<string>"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
domain
string
required

Domain to search Certificate Transparency logs for. Accepts a % wildcard (e.g. %.example.com to include subdomains).

Minimum string length: 1
Examples:

"example.com"

"%.github.com"

count
integer
required

Max number of certificates to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
exclude_expired
boolean
default:false

Exclude certificates whose validity period has ended

Response

Successful Response

id
integer
required
@type
string
default:@crtsh_certificate
common_name
string | null
name_value
string[]
issuer_name
string | null
issuer_ca_id
integer | null
serial_number
string | null
not_before
string | null
not_after
string | null
logged_at
string | null