whois.enhost.uk
Check domain registration details, nameservers, and expiration dates
This free WHOIS lookup service provides comprehensive domain registration information including registration dates, expiration dates, nameservers, registrar details, and current domain status.
WHOIS data sourced from authoritative registries and registrars worldwide.
Query WHOIS via HTTP API:
https://whois.enhost.uk/?domain=example.com
Returns JSON with domain information:
{
"domain": "example.com",
"registered": true,
"creation_date": "1995-08-14 04:00:00",
"expiration_date": "2024-08-13 04:00:00",
"registrar": "RESERVED-Internet Assigned Numbers Authority",
"nameservers": ["a.iana-servers.net", "b.iana-servers.net"],
"status": ["clientTransferProhibited"]
}
cURL example:
curl "https://whois.enhost.uk/?domain=example.com"
Bash script example:
#!/bin/bash
DOMAIN="example.com"
curl -s "https://whois.enhost.uk/?domain=$DOMAIN" | jq .
Python example:
import requests
domain = 'example.com'
response = requests.get(f'https://whois.enhost.uk/?domain={domain}')
data = response.json()
print(f"Domain: {data['domain']}")
print(f"Registrar: {data['registrar']}")
print(f"Expiration: {data['expiration_date']}")
JavaScript example:
const domain = 'example.com';
fetch(`https://whois.enhost.uk/?domain=${domain}`)
.then(res => res.json())
.then(data => {
console.log('Domain:', data.domain);
console.log('Registrar:', data.registrar);
console.log('Expiration:', data.expiration_date);
});
PHP example:
<?php
$domain = 'example.com';
$url = "https://whois.enhost.uk/?domain=" . urlencode($domain);
$response = file_get_contents($url);
$data = json_decode($response, true);
echo "Domain: {$data['domain']}\n";
echo "Registrar: {$data['registrar']}\n";
echo "Expiration: {$data['expiration_date']}\n";
?>