IP and Network Intelligence API

IP WHOIS Lookup

live registration data for an IPv4 or IPv6 address, straight from the Regional Internet Registry that allocated it.

Request Example
<?php $ch = curl_init(); curl_setopt_array($ch, [ CURLOPT_URL => "https://app.way2api.com/api/v1/ip/whois", CURLOPT_RETURNTRANSFER => true, CURLOPT_POST => true, CURLOPT_HTTPHEADER => [ "Authorization: Bearer YOUR_API_KEY", "Content-Type: application/json" ], CURLOPT_POSTFIELDS => json_encode([ "ip_address" => "8.8.8.8" ]) ]); $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/ip/whois", { method: "POST", headers: { "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" }, body: JSON.stringify({ "ip_address": "8.8.8.8" }) }); 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/ip/whois \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{\"ip_address\":\"8.8.8.8\"}'
$.ajax({ url: "https://app.way2api.com/api/v1/ip/whois", type: "POST", contentType: "application/json", headers: { "Authorization": "Bearer YOUR_API_KEY" }, data: JSON.stringify({ "ip_address": "8.8.8.8" }), success: function(data) { console.log(data); }, error: function(xhr) { console.error(xhr.responseJSON); } });
const { data } = await axios.post( "https://app.way2api.com/api/v1/ip/whois", {"ip_address":"8.8.8.8"}, { headers: { "Authorization": "Bearer YOUR_API_KEY" } } ); console.log(data);
import requests response = requests.post( "https://app.way2api.com/api/v1/ip/whois", headers={ "Authorization": "Bearer YOUR_API_KEY", "Content-Type": "application/json" }, json={ "ip_address": "8.8.8.8" } ) print(response.status_code) print(response.json())
Response Example
200 OK Success Response
{
    "success": true,
    "message": "",
    "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"
        }
    }
}
4xx Error Response
{
    "success": false,
    "message": "Request-param 'ip' (not-an-ip) is not an IP address",
    "data": {
        "order_id": "W2A1739512345abcdef01",
        "error_code": "Input parameter is not valid"
    }
}
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