Home > Uncategorized > #Free #Whois #API in #PHP

#Free #Whois #API in #PHP


Yes, I just discovered you can write your own WHOIS API in PHP in two lines of code;

$output = shell_exec(“whois ” . $_GET[“domain”]);
echo “$output”;

– Really easy.

So, you can call /whois.php?domain=google.com

Whois data is not very standardised, so be prepared to do a bit of parsing before you get what you need.


Categories: Uncategorized
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: