Check if domain is available for purchase - C# [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 6 years ago.
Improve this questionIs 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
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
Take a look at this question: Who provides a WHOIS API?
..Yet another Google search that leads back to SO...
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.
Why do you need C# to do this? can't you do a WHOIS or a grep?
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 .
精彩评论