Namecheap API guide

namecheap.com

Check domain availability with Namecheap, list domains in your account, and inspect their DNS host records and nameservers.

Actions and inputs

domains check

Check whether one or more domain names are available.

Inputs domain names

domains get-list

List domains registered in your account.

Inputs page, page size, optional filters

dns get-hosts

Read the DNS host records for one of your domains.

Inputs domain name and top-level domain

dns get-list

Read the nameserver type and nameservers for one of your domains.

Inputs domain name and top-level domain

Namecheap DNS host record

Create

Add a host record by submitting the full DNS record set with the new entry.

Inputs domain, existing records, host name, record type, address, TTL

Read

Read a host record from the domain's DNS record set.

Inputs domain, host name, record type

Update

Change a host record by submitting the full DNS record set with the revised entry.

Inputs domain, current record set, revised host record

Delete

Remove a host record by submitting the DNS record set without that entry.

Inputs domain, remaining host records