ScanMalware Certificates API
The certificates API from ScanMalware — 6 operation(s) for certificates.
The certificates API from ScanMalware — 6 operation(s) for certificates.
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
find_apisBrowse and filter every API in the catalog.get_api_artifactsOne API's artifacts, grouped by type.get_openapiThe primary OpenAPI for this API.find_similar_apisAPIs that look like this one.apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.resolveTurn a domain, URL or GitHub org into the provider it belongs to.find_cohortsEvery scored population of providers in the catalog.curl "https://apis.io/api/v1/apis/scanmalware-com:scanmalware-com-certificates-api"
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: ScanMalware Certificates API
description: URL Security Scanner API
version: 1.0.0
tags:
- name: Certificates
paths:
/api/v1/ct/{domain}:
get:
tags:
- Certificates
summary: Get Ct Certificates
description: 'Get Certificate Transparency certificates for a domain
Returns certificates with hash, timestamp, and CT log source'
operationId: get_ct_certificates_api_v1_ct__domain__get
parameters:
- name: domain
in: path
required: true
schema:
type: string
description: Domain name (e.g. example.com), or an IP address.
title: Domain
description: Domain name (e.g. example.com), or an IP address.
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/ct/similar/{domain}:
get:
tags:
- Certificates
summary: Find Similar Ct Domains
description: 'Find similar domains in Certificate Transparency logs
Searches for:
- Wildcard subdomains
- Domains containing the base domain
- Fuzzy matches for potential typosquatting'
operationId: find_similar_ct_domains_api_v1_ct_similar__domain__get
parameters:
- name: domain
in: path
required: true
schema:
type: string
description: Domain name (e.g. example.com), or an IP address.
title: Domain
description: Domain name (e.g. example.com), or an IP address.
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/ct/dns/{domain}:
get:
tags:
- Certificates
summary: Get Ct Dns Records
description: 'DNS observations for a domain and, by default, its subdomains. Returns `domain`, `dns_records[]` (domain / ip / record_type / timestamp / ttl /
root_domain), `ip_addresses`, `total_records`, plus `subdomains[]`,
`subdomain_count`, `subdomains_unresolved[]`, `subdomains_unresolved_count` and
`subdomains_truncated`. `subdomains` holds every hostname below the domain, `www` included, except those that were
NXDOMAIN every time they were resolved. Those are in `subdomains_unresolved`: mostly retired
or internal names, kept apart so `subdomains` lists names that existed in public DNS. `ip_addresses` covers the apex and www only; each subdomain''s own IPs are in its
record''s `ip` field. `nameserver_hosts` and `rdns_hosts`, when present, list hostnames below the domain that
appear as other domains'' nameservers and as reverse-DNS (PTR) names. They do not come from
certificates and are never mixed into `subdomains`; `other_hosts_degraded: true` means they
could not be looked up this time. ⚠️ **A record''s `ip` is frequently empty and that is meaningful, not missing data.** It
means the hostname was published in a certificate but did not resolve when observed;
`resolution_error` on the same record says why (e.g. `nxdomain`). For hkr.se that is 54
of 100 records. Do not assume `ip` is populated — but do not discard those records
either: a certificate hostname that no longer resolves is exactly the shape of dangling
DNS. `dns_records` is capped at the 100 most recent observations. `subdomains` is capped at
`subdomain_limit` (default 2000, max 5000) and `subdomains_truncated` tells you when the
cap was reached, so a partial list is never mistaken for a complete one. Pass
`include_subdomains=false` for apex-only results, which are much faster. ## An empty `subdomains` has three meanings — `degraded` is how you tell them apart
**CHECK `degraded` BEFORE YOU BELIEVE A ZERO.** Under load this endpoint sheds requests to
protect the upstream store, and a shed answers in milliseconds with every counter at zero. That is not the domain having no subdomains; it is us not having looked. - `degraded: false`, `total_records: 0` — we looked and hold nothing for this domain. A
true zero. Roughly half of all real domains, because the CT corpus is a rolling window
and a long-lived or wildcard certificate enumerates no individual hostname. - `degraded: false`, `total_records` > 0, `subdomain_count: 0` — also a true zero, and not
a bug: `subdomains` excludes the apex itself, and names that never resolved are in
`subdomains_unresolved`, so a domain with records only for those answers exactly this. - `degraded: true` — **we could not answer.** `degraded_reason` says why and `error`
says it in prose. Retry; do not record the zeros. `back_pressure` in particular means
the store was never even queried, and a retry moments later usually succeeds. ## `stale: true` — a real answer, measured earlier
When a re-look is shed, a previously-measured answer is served rather than nothing. `degraded` stays `false`, because the hostnames are genuine and the counters really were
measured; `stale_age_seconds` says how long ago, and `stale_reason` why we could not
re-look. Treat the list as valid but possibly short — it cannot contain anything first
observed since it was measured. Most callers should simply use it. `subdomains_truncated` does NOT cover this: it reports only whether `subdomain_limit` was
reached, and it is `false` on a degraded response because no cap was involved. ## `partial: true` — a real answer, with a narrowed subdomain search
For a hostname two or more labels below a registrable domain that holds a very large number
of hostnames (a cloud provider''s machine-generated endpoint names, for example), older
observations are matched on the hostname itself, and names below it are listed from recent
observations only. Such an answer carries `partial: true` and
`partial_reason: large_parent_recent_only`.'
operationId: get_ct_dns_records_api_v1_ct_dns__domain__get
parameters:
- name: domain
in: path
required: true
schema:
type: string
description: Domain name (e.g. example.com), or an IP address.
title: Domain
description: Domain name (e.g. example.com), or an IP address.
- name: include_subdomains
in: query
required: false
schema:
type: boolean
default: true
title: Include Subdomains
- name: subdomain_limit
in: query
required: false
schema:
type: integer
maximum: 5000
minimum: 1
description: Maximum distinct subdomains to return (1-5000).
default: 2000
title: Subdomain Limit
description: Maximum distinct subdomains to return (1-5000).
responses:
'200':
description: DNS observations for the domain.
content:
application/json:
schema:
$ref: '#/components/schemas/CtDnsResponse'
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/ct/ip/{ip}:
get:
tags:
- Certificates
summary: Find Ct Domains On Ip
description: 'Find all domains observed resolving to the same IP address.
Returns `ip`, `domains[{domain, record_count}]` and `total`, ordered by how many
DNS records back each domain.'
operationId: find_ct_domains_on_ip_api_v1_ct_ip__ip__get
parameters:
- name: ip
in: path
required: true
schema:
type: string
title: Ip
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/ct/ip/{ip}/domains:
get:
tags:
- Certificates
summary: Find Ct Root Domains On Ip
description: 'Registrable domains that resolved to an IP address when their TLS certificates were
issued, grouped by registrable domain, alphabetical, cursor-paginated.
Each row carries the hostnames seen under that domain, the number of resolution records,
and when they were first and last observed. A domain that moved to this IP after its
certificate was issued is not listed.'
operationId: find_ct_root_domains_on_ip_api_v1_ct_ip__ip__domains_get
parameters:
- name: ip
in: path
required: true
schema:
type: string
title: Ip
- name: window
in: query
required: false
schema:
anyOf:
- type: string
pattern: ^(recent|standard|extended)$
- type: 'null'
description: 'How far back to list: `recent`, `standard` (the default) or `extended`.'
title: Window
description: 'How far back to list: `recent`, `standard` (the default) or `extended`.'
- name: limit
in: query
required: false
schema:
type: integer
maximum: 500
minimum: 1
description: Registrable domains per page.
default: 100
title: Limit
description: Registrable domains per page.
- name: cursor
in: query
required: false
schema:
anyOf:
- type: string
maxLength: 253
- type: 'null'
description: '`next_cursor` from the previous page.'
title: Cursor
description: '`next_cursor` from the previous page.'
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
/api/v1/ct/timeline/{domain}:
get:
tags:
- Certificates
summary: Get Ct Certificate Timeline
description: 'Get certificate issuance timeline for a domain
Shows when certificates were issued over time'
operationId: get_ct_certificate_timeline_api_v1_ct_timeline__domain__get
parameters:
- name: domain
in: path
required: true
schema:
type: string
description: Domain name (e.g. example.com), or an IP address.
title: Domain
description: Domain name (e.g. example.com), or an IP address.
- name: days
in: query
required: false
schema:
anyOf:
- type: integer
maximum: 3650
minimum: 1
- type: 'null'
description: Limit timeline to certificates seen in the last N days. Omit to return full history.
title: Days
description: Limit timeline to certificates seen in the last N days. Omit to return full history.
responses:
'200':
description: Successful Response
content:
application/json:
schema: {}
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
CtDnsResponse:
properties:
domain:
type: string
title: Domain
description: The domain queried, normalised to lower case.
dns_records:
items:
$ref: '#/components/schemas/CtDnsRecord'
type: array
title: Dns Records
description: The 100 most recent observations.
ip_addresses:
items:
type: string
type: array
title: Ip Addresses
description: Addresses for the apex and www ONLY. Each subdomain's own addresses are in its record's `ip` field.
total_records:
type: integer
title: Total Records
description: Number of entries in `dns_records`.
subdomains:
items:
type: string
type: array
title: Subdomains
description: Distinct hostnames below the domain, `www` included. Names that were NXDOMAIN every time we resolved them are listed in `subdomains_unresolved` instead.
subdomain_count:
type: integer
title: Subdomain Count
description: Number of entries in `subdomains`.
subdomains_unresolved:
items:
type: string
type: array
title: Subdomains Unresolved
description: ALWAYS PRESENT. Hostnames below the domain that appear in certificates but were NXDOMAIN every time we resolved them. Most are retired or internal names. Kept apart from `subdomains` so that list holds names that existed in public DNS when observed.
subdomains_unresolved_count:
type: integer
title: Subdomains Unresolved Count
description: Number of entries in `subdomains_unresolved`.
default: 0
subdomains_truncated:
type: boolean
title: Subdomains Truncated
description: True when `subdomain_limit` was reached, so a partial list is never mistaken for a complete one. ⚠️ This answers ONLY 'did the cap bite'. It is `false` on a degraded response too, because no cap was reached — check `degraded` for 'is this an answer at all'.
degraded:
type: boolean
title: Degraded
description: 'ALWAYS PRESENT. `false` means the counters are a measurement: we looked and this is what exists. `true` means we could NOT look, and every zero above is an absence of data about the domain rather than a fact about it — retry rather than recording `subdomain_count: 0`. This is the field to branch on; `subdomains_truncated` answers a different question.'
degraded_reason:
anyOf:
- type: string
- type: 'null'
title: Degraded Reason
description: Present only when `degraded` is true. One of `back_pressure` (we shed this request to protect the upstream store and never queried it — by far the most common, and a plain retry usually succeeds), `timeout`, `circuit_open`, `partial_result`, `upstream_error`, `internal_error`.
stale:
type: boolean
title: Stale
description: ALWAYS PRESENT. `true` means this is a real, previously-measured answer served from cache past its freshness window, because a re-look could not be performed. The hostnames in it are genuine; the list may be missing anything observed since. `degraded` stays `false` — the counters are a measurement, just an older one.
stale_age_seconds:
anyOf:
- type: integer
- type: 'null'
title: Stale Age Seconds
description: 'Present only when `stale` is true: how long ago this answer was measured.'
stale_reason:
anyOf:
- type: string
- type: 'null'
title: Stale Reason
description: 'Present only when `stale` is true: why the re-look did not happen. Same vocabulary as `degraded_reason`.'
partial:
type: boolean
title: Partial
description: ALWAYS PRESENT. `true` means this is a real answer but the subdomain search was narrowed, as `partial_reason` describes. Every hostname in it is genuine; names below `domain` may be missing. `degraded` stays `false` and `subdomains_truncated` is unaffected.
default: false
partial_reason:
anyOf:
- type: string
- type: 'null'
title: Partial Reason
description: 'Present only when `partial` is true. Currently always `large_parent_recent_only`: `domain` sits two or more labels below a registrable domain that holds a very large number of hostnames, so older observations were matched on `domain` itself and names below it are listed from recent observations only.'
error:
anyOf:
- type: string
- type: 'null'
title: Error
description: Human-readable form of `degraded_reason`. Present only when `degraded` is true; absent on success. Branch on `degraded`/`degraded_reason`, not on this string — its wording is not a stable interface.
nameserver_hosts:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Nameserver Hosts
description: Hostnames below `domain` that other domains name as their nameserver (from registry delegation data), sorted. NOT from certificates, so never part of `subdomains`. Present only when this answer was measured with it; absent on older cached answers.
nameserver_host_count:
anyOf:
- type: integer
- type: 'null'
title: Nameserver Host Count
description: Number of entries in `nameserver_hosts`.
nameserver_hosts_truncated:
anyOf:
- type: boolean
- type: 'null'
title: Nameserver Hosts Truncated
description: True when `nameserver_hosts` reached `subdomain_limit`.
rdns_hosts:
anyOf:
- items:
type: string
type: array
- type: 'null'
title: Rdns Hosts
description: Hostnames below `domain` seen as reverse-DNS (PTR) names of IP addresses, sorted. NOT from certificates, so never part of `subdomains`; a PTR name need not resolve forward. Present only when this answer was measured with it.
rdns_host_count:
anyOf:
- type: integer
- type: 'null'
title: Rdns Host Count
description: Number of entries in `rdns_hosts`.
rdns_hosts_truncated:
anyOf:
- type: boolean
- type: 'null'
title: Rdns Hosts Truncated
description: True when `rdns_hosts` reached `subdomain_limit`.
other_hosts_degraded:
anyOf:
- type: boolean
- type: 'null'
title: Other Hosts Degraded
description: Present together with `nameserver_hosts` and `rdns_hosts`. `true` means those two lists could not be looked up and their zeros are not a measurement; the certificate fields above are unaffected.
type: object
required:
- domain
- total_records
- subdomain_count
- subdomains_truncated
- degraded
- stale
title: CtDnsResponse
description: DNS observations for a domain and, by default, its subdomains.
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
input:
title: Input
ctx:
type: object
title: Context
type: object
required:
- loc
- msg
- type
title: ValidationError
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
CtDnsRecord:
properties:
domain:
anyOf:
- type: string
- type: 'null'
title: Domain
description: The hostname this record is for.
ip:
items:
type: string
type: array
title: Ip
description: 'Addresses it resolved to. FREQUENTLY EMPTY, and that is meaningful, not missing data: the hostname was published in a certificate but did not resolve when observed. `resolution_error` says why.'
record_type:
anyOf:
- type: string
- type: 'null'
title: Record Type
description: DNS record type, e.g. A or AAAA.
timestamp:
anyOf:
- type: string
- type: 'null'
title: Timestamp
description: When the observation was made (ISO 8601).
ttl:
anyOf:
- type: integer
- type: 'null'
title: Ttl
description: Record TTL in seconds.
root_domain:
anyOf:
- type: string
- type: 'null'
title: Root Domain
description: Registrable parent of `domain`.
resolution_error:
anyOf:
- type: string
- type: 'null'
title: Resolution Error
description: Why `ip` is empty, e.g. `nxdomain`. Null when it resolved.
type: object
title: CtDnsRecord
description: One observed DNS record for a hostname seen in Certificate Transparency.
securitySchemes:
OptionalHTTPBearer:
type: http
scheme: bearer
HTTPBearer:
type: http
scheme: bearer