Customer
Username
View Cart
Everything you need to know, in one place
Support → API → Methods → domains → getList
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 a list of domains for the particular user
https://api.namecheap.com/xml.response?ApiUser=apiexample&ApiKey=56b4c87ef4fd49cb96d915c0db68194&UserName=apiexample&Command=namecheap.domains.getList&ClientIp=192.168.1.109
Global parameters are not shown here (for clarity), but they should be present in all requests.
<?xml version="1.0" encoding="UTF-8"?> <ApiResponse xmlns="http://api.namecheap.com/xml.response" Status="OK"> <Errors /> <RequestedCommand>namecheap.domains.getList</RequestedCommand> <CommandResponse Type="namecheap.domains.getList"> <DomainGetListResult> <Domain ID="127" Name="domain1.com" User="owner" Created="02/15/2016" Expires="02/15/2022" IsExpired="false" IsLocked="false" AutoRenew="false" WhoisGuard="ENABLED" IsPremium="true" IsOurDNS="true"/> <Domain ID="381" Name="domain2.com" User="owner" Created="04/28/2016" Expires="04/28/2023" IsExpired="false" IsLocked="false" AutoRenew="true" WhoisGuard="NOTPRESENT" IsPremium="false" IsOurDNS="true"/> <Domain ID="385" Name="domain3.com" User="owner" Created="05/22/2016" Expires="05/22/2023" IsExpired="false" IsLocked="false" AutoRenew="true" WhoisGuard="ENABLED" IsPremium="false" IsOurDNS="false"/> </DomainGetListResult> <Paging> <TotalItems>2</TotalItems> <CurrentPage>1</CurrentPage> <PageSize>10</PageSize> </Paging> </CommandResponse> <Server>SERVER-NAME</Server> <GMTTimeDifference>+5</GMTTimeDifference> <ExecutionTime>0.078</ExecutionTime> </ApiResponse>
Specifies the error codes that might be returned from this method
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