madithouse Posted August 4, 2015 Share Posted August 4, 2015 I have done some effort and setup my own API. visit this url replacing the domain name. http://api.sasti.pk/whois?domain=google.pk By default it gives output in "plain" but there are 3 more outputs(json,xml,raw) you can use just add the output parameter with the required value. example http://api.sasti.pk/whois?domain=google.pk&output=json http://api.sasti.pk/whois?domain=google.pk&output=xml http://api.sasti.pk/whois?domain=google.pk&output=plain http://api.sasti.pk/whois?domain=google.pk&output=raw you can use it in WHMCS whoisservers.php file like this: .pk|http://api.sasti.pk/whois?domain=|HTTPREQUEST-Domain Not Found in Whois .com.pk|http://api.sasti.pk/whois?domain=|HTTPREQUEST-Domain Not Found in Whois .net.pk|http://api.sasti.pk/whois?output=pla...REQUEST-Domain Not Found in Whois .org.pk|http://api.sasti.pk/whois?output=pla...REQUEST-Domain Not Found in Whois .edu.pk|http://api.sasti.pk/whois?output=pla...REQUEST-Domain Not Found in Whois .web.pk|http://api.sasti.pk/whois?output=pla...REQUEST-Domain Not Found in Whois .biz.pk|http://api.sasti.pk/whois?output=pla...REQUEST-Domain Not Found in Whois .fam.pk|http://api.sasti.pk/whois?output=pla...REQUEST-Domain Not Found in Whois ONLY SUPPORTS HTTP REQUESTS FOR WHMCS Let me know if there are any problems or bugs. you can find me at https://github.com/ProfessorHaseeb 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted August 6, 2015 Share Posted August 6, 2015 Let me know if there are any problems or bugs. your hosting account has been suspended - so there is no way to test this! also, if you only need to check whether a .pk domain is available for registration, you can use the offficial .pk web site to get the answer. .pk|http://pk6.pknic.net.pk/pk5/lookup.PK?name=|HTTPREQUEST-Domain not found the whois output might not be great, but it can be used during the order process to check if the domain is available or not. 0 Quote Link to comment Share on other sites More sharing options...
madithouse Posted August 8, 2015 Author Share Posted August 8, 2015 thanks for taking a look. i was using a small shared server, this api is now shifted to dedicated api server so hopefully you shouldn't see problems anymore. well yes you can use the official .pk website to get the answers. but they do not provide json/xml to the public. this API give you JSON and XML responses too, and the whois output is great too. - - - Updated - - - thanks for taking a look. i was using a small shared server, this api is now shifted to dedicated api server so hopefully you shouldn't see problems anymore. well yes you can use the official .pk website to get the answers. but they do not provide json/xml to the public. this API give you JSON and XML responses too, and the whois output is great too. 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.