API Documentation

Everything you need to know, in one place

namecheap.domains.getContacts

Gets contact information for the requested domain

Example Request

https://api.namecheap.com/xml.response?ApiUser=apiexample&ApiKey=56b4c87ef4fd49cb96d915c0db68194&UserName=apiexample&Command=namecheap.domains.getContacts&ClientIp=192.168.1.109&DomainName=domain1.com

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 to get contacts

Example Response

<?xml version="1.0" encoding="UTF-8"?>
<ApiResponse xmlns="http://api.namecheap.com/xml.response" Status="OK">
  <Errors />
  <RequestedCommand>namecheap.domains.getContacts</RequestedCommand>
  <CommandResponse Type="namecheap.domains.getContacts">
    <DomainContactsResult Domain="domain1.com" domainnameid="3152456">
      <Registrant ReadOnly="false">
        <OrganizationName>NameCheap.com</OrganizationName>
        <JobTitle>Software Developer</JobTitle>
        <FirstName>John</FirstName>
        <LastName>Smith</LastName>
        <Address1>8939 S. cross Blvd</Address1>
        <Address2>ca 110-708</Address2>
        <City>california</City>
        <StateProvince>ca</StateProvince>
        <StateProvinceChoice>P</StateProvinceChoice>
        <PostalCode>90045</PostalCode>
        <Country>US</Country>
        <Phone>+1.6613102107</Phone>
        <Fax>+1.6613102107</Fax>
        <EmailAddress>john@gmail.com</EmailAddress>
        <PhoneExt>+1.6613102</PhoneExt>
      </Registrant>
      <Tech ReadOnly="false">
        <OrganizationName>NameCheap.com</OrganizationName>
        <JobTitle>Software Developer</JobTitle>
        <FirstName>John</FirstName>
        <LastName>Smith</LastName>
        <Address1>8939 S. cross Blvd</Address1>
        <Address2>ca 110-708</Address2>
        <City>california</City>
        <StateProvince>ca</StateProvince>
        <StateProvinceChoice>P</StateProvinceChoice>
        <PostalCode>90045</PostalCode>
        <Country>US</Country>
        <Phone>+1.6613102107</Phone>
        <Fax>+1.6613102107</Fax>
        <EmailAddress>john@gmail.com</EmailAddress>
        <PhoneExt>+1.6613102</PhoneExt>
      </Tech>
      <Admin ReadOnly="false">
        <OrganizationName>NameCheap.com</OrganizationName>
        <JobTitle>Software Developer</JobTitle>
        <FirstName>John</FirstName>
        <LastName>Smith</LastName>
        <Address1>8939 S. cross Blvd</Address1>
        <Address2>ca 110-708</Address2>
        <City>california</City>
        <StateProvince>ca</StateProvince>
        <StateProvinceChoice>P</StateProvinceChoice>
        <PostalCode>90045</PostalCode>
        <Country>US</Country>
        <Phone>+1.6613102107</Phone>
        <Fax>+1.6613102107</Fax>
        <EmailAddress>john@gmail.com</EmailAddress>
        <PhoneExt>+1.6613102</PhoneExt>
      </Admin>
      <AuxBilling ReadOnly="false">
        <OrganizationName>NameCheap.com</OrganizationName>
        <JobTitle>Software Developer</JobTitle>
        <FirstName>John</FirstName>
        <LastName>Smith</LastName>
        <Address1>8939 S. cross Blvd</Address1>
        <Address2>ca 110-708</Address2>
        <City>california</City>
        <StateProvince>ca</StateProvince>
        <StateProvinceChoice>P</StateProvinceChoice>
        <PostalCode>90045</PostalCode>
        <Country>US</Country>
        <Phone>+1.6613102107</Phone>
        <Fax>+1.6613102107</Fax>
        <EmailAddress>john@gmail.com</EmailAddress>
        <PhoneExt>+1.6613102</PhoneExt>
      </AuxBilling>
      <CurrentAttributes>
        <RegistrantNexus>C11</RegistrantNexus>
        <RegistrantNexusCountry />
        <RegistrantPurpose>P1</RegistrantPurpose>
      </CurrentAttributes>
      <WhoisGuardContact>
        <Registrant ReadOnly="true">
          <OrganizationName>WhoisGuard</OrganizationName>
          <JobTitle>Please contact protect@whoisguard.com for legal issues</JobTitle>
          <FirstName>WhoisGuard</FirstName>
          <LastName>Protected</LastName>
          <Address1>11400 W. Olympic Blvd. Suite 200</Address1>
          <Address2 />
          <City>Los Angeles</City>
          <StateProvince>CA</StateProvince>
          <StateProvinceChoice>P</StateProvinceChoice>
          <PostalCode>90064</PostalCode>
          <Country>US</Country>
          <Phone>+1.6613102107</Phone>
          <Fax>+1.6613102107</Fax>
          <EmailAddress>95fabfd2c51b4307bb626568.protect@whoisguard.com</EmailAddress>
          <PhoneExt />
        </Registrant>
        <Tech ReadOnly="true">
          <OrganizationName>WhoisGuard</OrganizationName>
          <JobTitle>Please contact protect@whoisguard.com for legal issues</JobTitle>
          <FirstName>WhoisGuard</FirstName>
          <LastName>Protected</LastName>
          <Address1>11400 W. Olympic Blvd. Suite 200</Address1>
          <Address2 />
          <City>Los Angeles</City>
          <StateProvince>CA</StateProvince>
          <StateProvinceChoice>P</StateProvinceChoice>
          <PostalCode>90064</PostalCode>
          <Country>US</Country>
          <Phone>+1.6613102107</Phone>
          <Fax>+1.6613102107</Fax>
          <EmailAddress>95fabfd2c51b4307bb626568.protect@whoisguard.com</EmailAddress>
          <PhoneExt />
        </Tech>
        <Admin ReadOnly="true">
          <OrganizationName>WhoisGuard</OrganizationName>
          <JobTitle>Please contact protect@whoisguard.com for legal issues</JobTitle>
          <FirstName>WhoisGuard</FirstName>
          <LastName>Protected</LastName>
          <Address1>11400 W. Olympic Blvd. Suite 200</Address1>
          <Address2 />
          <City>Los Angeles</City>
          <StateProvince>CA</StateProvince>
          <StateProvinceChoice>P</StateProvinceChoice>
          <PostalCode>90064</PostalCode>
          <Country>US</Country>
          <Phone>+1.6613102107</Phone>
          <Fax>+1.6613102107</Fax>
          <EmailAddress>95fabfd2c51b4307bb626568.protect@whoisguard.com</EmailAddress>
          <PhoneExt />
        </Admin>
        <AuxBilling ReadOnly="true">
          <OrganizationName>WhoisGuard</OrganizationName>
          <JobTitle>Please contact protect@whoisguard.com for legal issues</JobTitle>
          <FirstName>WhoisGuard</FirstName>
          <LastName>Protected</LastName>
          <Address1>11400 W. Olympic Blvd. Suite 200</Address1>
          <Address2 />
          <City>Los Angeles</City>
          <StateProvince>CA</StateProvince>
          <StateProvinceChoice>P</StateProvinceChoice>
          <PostalCode>90064</PostalCode>
          <Country>US</Country>
          <Phone>+1.6613102107</Phone>
          <Fax>+1.6613102107</Fax>
          <EmailAddress>95fabfd2c51b4307bb626568.protect@whoisguard.com</EmailAddress>
          <PhoneExt />
        </AuxBilling>
        <CurrentAttributes />
      </WhoisGuardContact>
    </DomainContactsResult>
  </CommandResponse>
  <Server>SERVER-NAME</Server>
  <GMTTimeDifference>+5</GMTTimeDifference>
  <ExecutionTime>0.078</ExecutionTime>
</ApiResponse>

Response Parameters

Name Description
Domain The registered domain name
DomainnameID A unique integer value that represents the domain
Readonly Possible values: True, False. Indicates whether contact information can be edited or is read-only.

Error Codes

Specifies the error codes that might be returned from this method

Number Description
2019166 Domain not found
2016166 Domain is not associated with your account
4019337 Unable to retrieve domain contacts
3016166 Domain is not associated with Enom
3019510 This domain has expired/ was transferred out/ is not associated with your account
3050900 Unknown response from provider
5050900 Unknown exceptions

Comments

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