Domain API

Domain WHOIS Lookup API

Retrieve full WHOIS data for any domain, instantly.

Request Example
curl -X POST https://app.way2api.com/api/v1/domain/whois_live \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{\"domain\": \"example.com\"}'
<?php
$ch = curl_init();
curl_setopt_array($ch, [
    CURLOPT_URL            => "https://app.way2api.com/api/v1/domain/whois_live",
    CURLOPT_RETURNTRANSFER => true,
    CURLOPT_POST           => true,
    CURLOPT_HTTPHEADER     => [
        "Authorization: Bearer YOUR_API_KEY",
        "Content-Type: application/json"
    ],
    CURLOPT_POSTFIELDS => json_encode([
    "domain" => "example.com"
])
]);

$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);

$data = json_decode($response, true);
print_r($data);
const response = await fetch("https://app.way2api.com/api/v1/domain/whois_live", {
    method: "POST",
    headers: {
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json"
    },
    body: JSON.stringify({
        "domain": "example.com"
    })
});

if (!response.ok) {
    throw new Error(`HTTP error: ${response.status}`);
}

const data = await response.json();
console.log(data);
import requests

response = requests.post(
    "https://app.way2api.com/api/v1/domain/whois_live",
    headers={
        "Authorization": "Bearer YOUR_API_KEY",
        "Content-Type": "application/json"
    },
    json={
        "domain": "example.com"
    }
)

print(response.status_code)
print(response.json())
Response Example
200 OK
{
  "status": "success",
  "domain": "example.com",
  "registrar": "GoDaddy LLC",
  "created": "2005-08-14",
  "expires": "2026-08-14",
  "updated": "2024-01-10",
  "nameservers": ["ns1.example.com", "ns2.example.com"],
  "status_flags": ["clientDeleteProhibited", "clientTransferProhibited"]
}
Common Response Codes
CodeMeaning
200OK — Request successful
400Bad Request — Missing or invalid parameters
401Unauthorized — Invalid or missing API key
429Too Many Requests — Rate limit exceeded
500Server Error — Try again later
Ready to integrate?

Start with free trial API calls. No credit card required.

Get API Key — Free Browse All APIs
Way2API Way2API
Contact Way2API

Login