Customer
Username
View Cart
Everything you need to know, in one place
Support → API → Methods → domains → getInfo
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.
WithheldforPrivacy
Whoisguard
Returns information about the requested domain
https://api.namecheap.com/xml.response?ApiUser=apiexample&ApiKey=56b4c87ef4fd49cb96d915c0db68194&UserName=apiexample&Command=namecheap.domains.getinfo&ClientIp=192.168.1.109&DomainName=domain1.com
Global parameters are not shown here (for clarity), but they should be present in all requests.
<?xml version="1.0" encoding="UTF-8"?> <ApiResponse Status="OK"> <Errors /> <RequestedCommand>namecheap.domains.getinfo</RequestedCommand> <CommandResponse Type="namecheap.domains.getinfo"> <DomainGetInfoResult Status="Ok" ID="736542" DomainName="domain1.com" OwnerName="apisuer" IsOwner="true" IsPremium="true"> <DomainDetails> <CreatedDate>09/05/2016</CreatedDate> <ExpiredDate>09/05/2016</ExpiredDate> </DomainDetails> <LockDetails /> <Whoisguard Enabled="True"> <ID>3655801</ID> <ExpiredDate>01/26/2013</ExpiredDate> </Whoisguard> <DnsDetails ProviderType="ENOM" /> <Modificationrights All="true" /> </DomainGetInfoResult> </CommandResponse> <Server>SERVER-NAME</Server> <GMTTimeDifference>+5:30</GMTTimeDifference> <ExecutionTime>9.328</ExecutionTime> </ApiResponse>
Specifies the error codes that might be returned from this method
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.
Chat with a Live Person