WhoIs API

The data contained in this registrar's WhoIs database, while believed by the registrar to be reliable, is provided as is with no guarantee or warranties regarding its accuracy. This information is provided for the sole purpose of assisting you in obtaining information about domain name registration records. Any use of this data for any other purpose is expressly forbidden without the prior written permission of this registrar. By submitting an inquiry, you agree to these terms and limitations of warranty. In particular, you agree not to use this data to allow, enable, or otherwise support the dissemination or collection of this data, in part or in its entirety, for any purpose, such as transmission by e-mail, telephone, postal mail, facsimile or other means of mass unsolicited, commercial advertising or solicitations of any kind, including spam. You further agree not to use this data to enable high volume, automated or robotic electronic processes designed to collect or compile this data for any purpose, including mining this data for your own personal or commercial purposes. Failure to comply with these terms may result in termination of access to the Whois database. These terms may be subject to modification at any time without notice.

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

Name
Type
Description

?url=

String

URL of the WhoIs you want, do not unclude https or http.

    "credit": "API Data from <a href='http://dev.tylermwise.com/whois'>tylermwise.com</a>",
    "terms_of_use": "The data contained in this registrar's WhoIs database, while believed by the registrar to be reliable, is provided as is with no guarantee or warranties regarding its accuracy. This information is provided for the sole purpose of assisting you in obtaining information about domain name registration records. Any use of this data for any other purpose is expressly forbidden without the prior written permission of this registrar. By submitting an inquiry, you agree to these terms and limitations of warranty. In particular, you agree not to use this data to allow, enable, or otherwise support the dissemination or collection of this data, in part or in its entirety, for any purpose, such as transmission by e-mail, telephone, postal mail, facsimile or other means of mass unsolicited, commercial advertising or solicitations of any kind, including spam. You further agree not to use this data to enable high volume, automated or robotic electronic processes designed to collect or compile this data for any purpose, including mining this data for your own personal or commercial purposes. Failure to comply with these terms may result in termination of access to the Whois database. These terms may be subject to modification at any time without notice.",
    "domain_name": "example.com",
    "domain_created": "0000-00-00",
    "domain_updated": "0000-00-00",
    "domain_nameservers": [
        "NAMESERVER1",
        "NAMESERVER2"
    ],
    "domain_registrar": "DOMAIN_COMPANY",
    "registrar_abuse": "DOMAIN_CONTACT"

Domain Name

If you need to return the domain you entered was on the JSON use this line of code:

<?php
    echo $data->domain_name;
?>

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:

<?php
    echo $data->domain_created;
    echo $data->domain_updated;
?>

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:

<?php
    echo $data->domain_nameservers[0]; //NameServer 1
    echo $data->domain_nameservers[1]; //NameServer 2
    echo $data->domain_nameservers[2]; //NameServer 3
    echo $data->domain_nameservers[3]; //NameServer 4
?>

Domain Registrar

If you need to get where the domain was paid and bought from, then the following lines of code returns the company:

<?php echo $data->domain_registrar; ?>

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:

<?php echo $data->registrar_abuse; ?>

API Credit

Finally, if you would like to credit us for this powerful and fast API, please use the following line of code

<?php echo $data->credit; ?>

Last updated