DomainLookup

Count the domains that have their own DNS zone

This function counts the cPanel account's base domains: the primary domain, its addon domains and its parked domains.

Note:

The count excludes temporary domains, and matches the number of entries that the DomainLookup::getbasedomains function returns by default.

get/DomainLookup/countbasedomains

Request

  • Base URL
    https://cpanel-server.tld:2083/execute
  • Auth
    HTTP basic

Response

HTTP Request was successful.

errorsstring[] nullable
messagesstring[] nullable
status0 | 1
  • 1 — Success.
  • 0 — Failed. Check the errors field for more details.
warningsstring[] nullable

Example response

{
  "data": [
    {
      "count": 3
    }
  ],
  "status": 1
}

Changes

No recorded changes to this operation across all 5 revisions of this API.