# Domain Information

Domain Management / Domain Information

## Return all domains' hosting configuration

 - [GET /DomainInfo/domains_data](https://api.docs.cpanel.net/specifications/cpanel.openapi/domain-information/domains_data.md): This function lists user data for the cPanel account's domains.

Note:

This function retrieves data from the /var/cpanel/userdata/user/domain file, where user
represents the cPanel account username and domain represents the domain. For this reason,
actual output may not contain all of the returns that this document lists.

## Return cPanel account's domains

 - [GET /DomainInfo/list_domains](https://api.docs.cpanel.net/specifications/cpanel.openapi/domain-information/list_domains.md): This function lists the cPanel account's domains.

Note:

For this function to succeed, the /var/cpanel/userdata/username/main file (where username represents the authenticated user) must possess the correct permissions. If a permissions error occurs, this function returns blank values for all of its returns and does not return an error message.

## Return built-in subdomain aliases

 - [GET /DomainInfo/main_domain_builtin_subdomain_aliases](https://api.docs.cpanel.net/specifications/cpanel.openapi/domain-information/main_domain_builtin_subdomain_aliases.md): This function returns the built-in subdomain aliases for an account's main domain.

Note:

  This function retrieves data from the /var/cpanel/userdata/user/domain file, where user represents the cPanel account username and domain represents the domain. For this reason, actual output may not contain all of the returns that this document lists.

## Return the cPanel account's primary domain

 - [GET /DomainInfo/primary_domain](https://api.docs.cpanel.net/specifications/cpanel.openapi/domain-information/primary_domain.md): This function returns the cPanel account's main domain.

## Return domain's hosting configuration

 - [GET /DomainInfo/single_domain_data](https://api.docs.cpanel.net/specifications/cpanel.openapi/domain-information/single_domain_data.md): This function lists user data for a domain.

Important:

  This function retrieves data from the /var/cpanel/userdata/user/domain file, where user represents the cPanel account username and domain represents the domain.
  * Because aliases (parked domains) do not use a user data file, this function cannot query information for aliases. To retrieve information for an alias, specify the associated main or addon domain.
  * Due to differences in user data files, the function's actual output may not contain all of the returns that this document lists.

