v1

latestOpenAPI 3.0.2cPanel License2026-08-06657427.1 MB
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

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
}