DomainLookup
List the domains that have their own DNS zone
This function lists the cPanel account's base domains: the primary domain, its addon domains and its parked domains.
Note:
Subdomains are not base domains and this function does not return them. Use the SubDomain::listsubdomains function for those.
get/DomainLookup/getbasedomains
Query parameters
return_temporary_domain0 | 1
Example:1
Whether to include the account's temporary domains in the result.
- 1 - Include temporary domains.
- 0 - Exclude temporary domains.
Response
HTTP Request was successful.
Example response
{
"data": [
{
"domain": "example.com"
}
],
"status": 1
}