IP WHOIS Lookup Code Examples

IP and Network Intelligence
POST /api/v1/ip/whois Bearer

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

IP WHOIS Lookup — Code Samples

cURL
PHP
Fetch
jQuery
Axios
Python
curl -X POST https://app.way2api.com/api/v1/ip/whois \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"ip_address":"8.8.8.8"}'

Expected Response — 200

{
    "status": "SUCCESS",
    "status_code": 200,
    "charged": true,
    "success": true,
    "message": "",
    "message_code": "OK",
    "order_id": "W2A1739512345abcdef01",
    "data": {
        "order_id": "W2A1739512345abcdef01",
        "result": {
            "ip_address": "8.8.8.8",
            "registry": "ARIN",
            "network": {
                "range_start": "8.8.8.0",
                "range_end": "8.8.8.255",
                "cidr": [
                    "8.8.8.0/24"
                ],
                "name": "GOGL",
                "handle": "NET-8-8-8-0-2",
                "allocation_status": "direct_allocation",
                "parent": "NET8 (NET-8-0-0-0-0)",
                "registered_on": "2023-12-28",
                "updated_on": "2023-12-28"
            },
            "organization": {
                "name": "Google LLC",
                "handle": "GOGL",
                "street": "Amphitheatre Parkway",
                "city": "Mountain View",
                "state": "CA",
                "postal_code": "94043",
                "country": "US",
                "registered_on": "2000-03-30",
                "updated_on": "2019-10-31"
            },
            "abuse_contact": {
                "name": "Abuse",
                "email": "[email protected]",
                "phone": "+1-650-253-0000"
            },
            "technical_contact": {
                "name": "Google LLC",
                "email": "[email protected]",
                "phone": "+1-650-253-0000"
            },
            "queried_at": "2026-08-04 13:32:26"
        }
    }
}