$domain = 'google.com';
$url = "https://api.hyperteo.uz/d/?d=$domain";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$response = curl_exec($ch);
curl_close($ch);
$data = json_decode($response, true);
echo $data['ldhName'] ?? 'Domain not found';
import requests
domain = 'google.com'
url = f'https://api.hyperteo.uz/d/?d={domain}'
try:
response = requests.get(url)
data = response.json()
if 'ldhName' in data:
print(f"Domain: {data['ldhName']}")
print(f"Status: {data['status']}")
else:
print("Domain information not available")
except Exception as e:
print(f"Error: {e}")
async function checkDomain(domain) {
const url = `https://api.hyperteo.uz/d/?d=domain`;
try {
const response = await fetch(url);
const data = await response.json();
if (data.ldhName) {
console.log(`Domain: ${data.ldhName}`);
console.log(`Status: ${data.status}`);
} else {
console.log('Domain not found');
}
} catch (error) {
console.error('Error:', error);
}
}
checkDomain('google.com');
DOMAIN="google.com"
API_URL="https://api.hyperteo.uz/d/?d=$DOMAIN"
echo "Checking domain: $DOMAIN"
curl -s "$API_URL" | jq '.ldhName // "Domain not found"'