This is a client library for the Whois API service. With this API you can
- Check if a domain name is available
- Get its whois data or query an arbitrary whois server
- Don't worry about rate limits on the respective whois server
The service supports all domains of the Whois Server list, which is more than 500 top level domains.
This package is available in Maven central:
<dependency>
<groupId>de.malkusch.whois-server-list</groupId>
<artifactId>whois-api</artifactId>
<version>0.0.8</version>
</dependency>
You'll need an api key to use this library. Get if from the Whois API.
WhoisApi whoisApi = new WhoisApi("apiKey");
WhoisApi.isAvailable(String)
checks if a domain name is available.WhoisApi.whois(String)
returns the whois data of a domain.WhoisApi.query(String, String)
queries an arbitrary whois server.WhoisApi.domains()
lists all top and second level domains which can be used by the Whois API.
WhoisApi whoisApi = new WhoisApi("apiKey");
System.out.println(whoisApi.isAvailable("example.net") ? "available" : "registered");
This project is free and under the WTFPL. Responsable for this project is Markus Malkusch [email protected].