Get subdomains


Use this endpoint to get all subdomains included in a scan.

For more information about scanning subdomains, see Set up and run a scan

curl --location --request POST '' \
--header 'X-DC-DEVKEY: {{api_key}}' \
--header 'Content-Type: application/json' \
	"accountId": 5153184,
	"domains": [""]
200 OK
    "error": null,
    "data": [{
		"count": 2,
		"domain": "",
		"subdomains": ["", ""]

Request parameters

Name Req/Opt Type Description
accountId required string Account ID.
Domains required array Domains included in the scan.

Response parameters

Name Type Description
error object Includes the error code, if any.
data array List of objects with information about the subdomains found in the scan. This list includes an object for each domain in your request.
.. count integer Total number of subdomains found in the scan for the given domain.
.. domain string Name of the domain.
.. subdomains array List of subdomains found in the scan.