Domain Availability API checks whether the specified domain name is available for registration for nearly all of the TLDs.
Here you'll find examples of querying the API implemented in multiple languages.
You'll need a WhoisXmlApi account to authenticate.
This API also supports API key authentication.
Please, refer to the Domain availability API User Guide for info on input parameters, request/response formats, authentication instructions and more.