---
title: "Count the domains that have their own DNS zone"
method: GET
path: "/DomainLookup/countbasedomains"
tags: ["DomainLookup"]
---

# Count the domains that have their own DNS zone

`GET /DomainLookup/countbasedomains`

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.

## Response `200`

HTTP Request was successful.

- object
  - `data` object[] — A single entry holding the count.
    - `count` integer — The number of base domains on the account.
  - `errors` string[], nullable
  - `messages` string[], nullable
  - `metadata` object
    - `transformed` integer
  - `status` 0 | 1 — * `1` — Success. * `0` — Failed. Check the `errors` field for more details.
  - `warnings` string[], nullable

---

[API](https://skmtc.net/cpanel/apis/cpanel-uapi.md) · [All operations](https://skmtc.net/cpanel/apis/cpanel-uapi/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/cpanel/cpanel-uapi/revisions/632e2f8e6d04/schema)
