Lists the sub-domains of a domain that appeared in Certificate Transparency logs recently, with the date each was first seen and the issuing CA.
1 credit/ call
Never more than 2 credits a call.
You only pay when data comes back.
curl -X POST "https://api.primaryapi.com/v1/run/domain.new_subdomains" \
-H "Authorization: Bearer $PRIMARYAPI_API_KEY" \
-H "Content-Type: application/json" \
-d '{"domain":"iana.org","sinceDays":90}'{
"output": {
"found": true,
"data": {
"totalHostnames": "<integer>",
"truncated": "<boolean>",
"domain": "<string>",
"basis": "<\"current_certificates\">", …
}
},
"credits": 1
}Input and output
5 fields
iana.org.since is set. For example 90.7 fields
limit cut the list or the certificate search was capped.Good to know
Sorted newest first (then by host name) and free of per-run timestamps. So a monitor with a fixed since fires only when a new host appears.
A domain with no valid certificates. Or none inside the window, is a free miss. A miss is an answer, not an error, and it costs nothing.
Large domains can take 10-40 seconds.
The same key and credits work for every API.