API Whois Script for GoDaddy Domains


CodePunch has released a better script that supports ResellerClub and Dynadot in addition to GoDaddy.

You can grab the script by going to CodePunch instead of using this.

It is almost impossible to obtain registrar data for domains registered at GoDaddy because the important information is hidden if you do more than a few port 43 whois lookups using whois.godaddy.com.

GoDaddy does provide an API for accessing data corresponding to your own domains. So it is possible to use the API and obtain the domain information directly.

Important: This will work only for your own domains you have registered at GoDaddy.

Here is a simple PHP script to do just that. You will need to login to your GoDaddy account and obtain the access and secret keys (grab the production keys, not the test keys).

Please ensure that your keys are safe, do not share it, with anyone, ever.

Note: The GoDaddy API script requires PHP cURL installed on your server.

Get GoDaddy Keys   Get GoDaddy PHP Script   Web Based Whois

Download, unzip and copy the file to another name (for example, gd-api-whois.php), then open the script in any text editor. Insert your keys into the script. Please don't change the GoDaddy API URL ($gd_api_url_base), just add the two keys.

GoDaddy API Script for Whois

You can now host this script on one of your web servers / hosting accounts and then provide the URL as the http proxy in Watch My Domains or Domain Punch Pro. Please see http based whois for more details. Remember to use this script as the http proxy for only GoDaddy whois server (whois.godaddy.com)

You can use d={D} to specify the domain name. For example, if the script URL is


The corresponding http proxy entry will be


Setup the whois proxy URL

Please contact us if you have any questions.