API Documentation

Everything you need to know, in one place

IMPORTANT: Our privacy service provider recently changed to WithheldforPrivacy. We want to avoid service interruption for our API users, so please note that in some cases, you may still see Whoisguard in the API parameter names.


Returns information about the requested domain

Example Request


Request Parameters

Global parameters are not shown here (for clarity), but they should be present in all requests.

Name Type MaxLength Required? Description
DomainName String 70 Yes Domain name for which domain information needs to be requested
HostName String 255 No Hosted domain name for which domain information needs to be requested

Example Response

<?xml version="1.0" encoding="UTF-8"?>
<ApiResponse Status="OK">
  <Errors />
  <CommandResponse Type="namecheap.domains.getinfo">
    <DomainGetInfoResult Status="Ok" ID="736542" DomainName="domain1.com" OwnerName="apisuer" IsOwner="true" IsPremium="true">
      <LockDetails />
      <Whoisguard Enabled="True">
      <DnsDetails ProviderType="ENOM" />
      <Modificationrights All="true" />

Response Parameters

Name Description
Status Indicates the status of the domain. Possible statuses: OK, Locked, Expired
ID Unique integer value that represents the domain
DomainName Domain name for which the information was requested
OwnerName User account under which the domain is registered
IsOwner Indicates whether the API user is the owner of the domain
IsPremium Indicates whether the domain name is premium

Error Codes

Specifies the error codes that might be returned from this method

Number Description
5019169 Unknown exceptions
2030166 Domain is invalid
  • DomainName not Available

  • UserName not Available

  • Access denied

*For this error code, one of the three messages will be displayed.


We welcome your comments, questions, corrections and additional information relating to this article. Your comments may take some time to appear. Please be aware that off-topic comments will be deleted.

If you need specific help with your account, feel free to contact our Support Team. Thank you.

Need help? We're always here for you.

× Close