Domain Intelligence and Analysis API

Domain WHOIS Lookup

live registry WHOIS for any domain.

Request Example
<?php $ch = curl_init(); curl_setopt_array($ch, [ CURLOPT_URL => "https://app.way2api.com/api/v1/domain/whois", CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_HTTPHEADER => [ "Authorization: Bearer YOUR_API_KEY", "Content-Type: application/json" ], CURLOPT_POSTFIELDS => json_encode([ "domain_name" => "way2api.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", { method: "POST", headers: { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" }, body: JSON.stringify({ "domain_name": "way2api.com" }) }); if (!response.ok) { throw new Error(`HTTP error: ${response.status}`); } const data = await response.json(); console.log(data);
curl -X POST https://app.way2api.com/api/v1/domain/whois \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{\"domain_name\":\"way2api.com\"}'
$.ajax({ url: "https://app.way2api.com/api/v1/domain/whois", type: "POST", contentType: "application/json", headers: { "Authorization": "Bearer YOUR_API_KEY" }, data: JSON.stringify({ "domain_name": "way2api.com" }), success: function(data) { console.log(data); }, error: function(xhr) { console.error(xhr.responseJSON); } });
const { data } = await axios.post( "https://app.way2api.com/api/v1/domain/whois", {"domain_name":"way2api.com"}, { headers: { "Authorization": "Bearer YOUR_API_KEY" } } ); console.log(data);
import requests response = requests.post( "https://app.way2api.com/api/v1/domain/whois", headers={ "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" }, json={ "domain_name": "way2api.com" } ) print(response.status_code) print(response.json())
Response Example
200 OK Success Response
{
    "success": true,
    "message": "",
    "data": {
        "order_id": "W2A1739512345abcdef01",
        "result": {
            "domain_name": "way2api.com",
            "is_registered": true,
            "created_on": "2024-03-03",
            "updated_on": "2026-02-21",
            "expires_on": "2031-03-03",
            "registrar": {
                "name": "GoDaddy.com, LLC",
                "iana_id": "146",
                "url": "http://www.godaddy.com",
                "abuse_email": "[email protected]",
                "abuse_phone": "+14806242505"
            },
            "registrant": {
                "registry_id": "way2apicom-reg",
                "name": "Registration Private",
                "organization": "Domains By Proxy, LLC",
                "email": "",
                "phone": "+14806242599",
                "street": "DomainsByProxy.com 100 S. Mill Ave, Suite 1600",
                "city": "Tempe",
                "state": "Arizona",
                "zip_code": "85281",
                "country": "United States",
                "country_code": "US"
            },
            "technical_contact": {
                "email": ""
            },
            "name_servers": [
                "magnolia.ns.cloudflare.com",
                "charles.ns.cloudflare.com"
            ],
            "domain_status": [
                "client_update_prohibited",
                "client_delete_prohibited",
                "client_renew_prohibited",
                "client_transfer_prohibited"
            ],
            "queried_at": "2026-08-06 05:53:51"
        }
    }
}
4xx Error Response
{
    "success": false,
    "message": "We are not providing the whois of this domain extension (local)",
    "data": {
        "order_id": "W2A1739512345abcdef01",
        "error_code": "Not Supported Domain extension"
    }
}
Common Response Codes
Code Meaning
200 OK — Request successful
400 Bad Request — Missing or invalid parameters
401 Unauthorized — Invalid or missing API key
429 Too Many Requests — Rate limit exceeded
500 Server 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