Just try the url
its giving the result as "Sorry, but our WHOIS does not support the top level domain name"
The site you are using do not support .co.in domain type.
So, you need to search for API, which support major domain types.
There is no error in code