Check if domain is available for purchase - C# [cl

2020-05-29 03:31发布

问题:

Is there any way that I check if a certain domain is available for purchase? If there is any library out there that will do this?

THanks

回答1:

You can take a look at: http://www.internetbs.net/ResellerRegistrarDomainNameAPI/api/01_domain_related/01_domain_check Its pretty straight forward to use:

https://testapi.internet.bs/Domain/Check?ApiKey=testapi&Password=testpass&Domain=example.com 

and the result would be:

transactid=e504cdbf00e7821e954f0f5a65249ff0
status=UNAVAILABLE
domain=example.com
minregperiod=1Y
maxregperiod=10Y
registrarlockallowed=YES
privatewhoisallowed=YES
realtimeregistration=YES


回答2:

Take a look at this question: Who provides a WHOIS API?

..Yet another Google search that leads back to SO...



回答3:

Get a windows build of the common linux whois client or something similar. Do a system call to run that and parse its output.

Kind of kludgy but it is easy and quick.



回答4:

Why do you need C# to do this? can't you do a WHOIS or a grep?



回答5:

you can write an c# application using Watin Libarary and set the application go to a site like (www.register.com or ... ) and get the result you can set the application to read from a list of your domain names and get the results .