Home > Uncategorized > How to export a list of domains from #namecheap

How to export a list of domains from #namecheap

I wanted to check the IP address of all the domains I had registered with namecheap, so I wanted to write a batch file to ping them all, so first step, was to export a list from namecheap. I couldn’t find the option, so I asked namecheap support who said there wasn’t an option.

But that just got me to look harder!

So, I enabled their API under Profile-Tools-API Access, whitelisted my IP, and created an api key, and with a bit of research, I got this:


Categories: Uncategorized
  1. March 18, 2017 at 3:42 am

    Thanks i was looking for this too. namecheap should really have an export function like managemysitefor.me does or godaddy.com does…. but this api call is good enough for me!


  2. Tim Osborn
    June 15, 2018 at 1:04 am

    They still don’t offer export, but you can request a CSV export via live chat


  3. October 18, 2021 at 10:28 am

    Some handy code to download site list from namecheap, and check each domain for IP address (i.e. everything pointing to right server)

    var web = new WebClient();
    var domains = web.DownloadString(url);
    var xdoc = new XmlDocument();
    var ns = new XmlNamespaceManager(xdoc.NameTable);
    ns.AddNamespace(“xx”, “http://api.namecheap.com/xml.response”);
    var domainList = xdoc.SelectNodes(“//xx:Domain”, ns);
    foreach (XmlNode domain in domainList)
    var name = domain.Attributes[“Name”].InnerText;
    var ip = Dns.GetHostAddresses(name);
    Console.WriteLine(name + “::” + ip.First());
    catch (Exception e)
    Console.WriteLine(name + “::ERROR”);


  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: