Domain WHOIS Lookup Code Examples

Domain Intelligence and Analysis
POST /api/v1/domain/whois Bearer

Ready-to-run Domain WHOIS Lookup calls. Replace YOUR_API_KEY with the key from your dashboard.

Domain WHOIS Lookup — Code Samples

cURL
PHP
Fetch
jQuery
Axios
Python
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"}'

Expected Response — 200

{
    "status": "SUCCESS",
    "status_code": 200,
    "charged": true,
    "success": true,
    "message": "",
    "message_code": "OK",
    "order_id": "W2A1739512345abcdef01",
    "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"
        }
    }
}