WhoIs API
Firstly, to use the WhoIs API, you need to add the following PHP code:
<?php
$contents = file_get_contents("https://api.tylermwise.uk/v1/whois?url=example.com");
$data = json_decode($contents);
?>Now you are able to use any of the lines below to add onto your site
<?php
echo $data->credit;
echo $data->terms_of_use;
echo $data->domain_name;
echo $data->domain_created;
echo $data->domain_updated;
echo $data->domain_nameservers;
echo $data->domain_registrar;
echo $data->registrar_abuse;
?>GET https://api.tylermwise.com
Path Parameters
?url=
String
URL of the WhoIs you want, do not unclude https or http.
Domain Name
If you need to return the domain you entered was on the JSON use this line of code:
Domain Created/Updated
If you are needing to get the info about a domain when it was made and updated, the following lines of code shows you that:
Domain NameServers
When you are needing to get the nameservers on the domain, the following lines of code gets each one, add however many lines you need depending on how many nameservers the domain is using:
Domain Registrar
If you need to get where the domain was paid and bought from, then the following lines of code returns the company:
Registrar Contact
If you need to include a way to report a domain then the following line of code, will either return an email or a phone number depending on the company:
API Credit
Finally, if you would like to credit us for this powerful and fast API, please use the following line of code
Last updated