IP and Network Intelligence API

IP Geolocation Enrichment

everything IP Geolocation returns, plus the full threat-intelligence block (threat score, Tor / proxy / VPN / relay / bot / spam / known-…

Request Example
<?php $ch = curl_init(); curl_setopt_array($ch, [ CURLOPT_URL => "https://app.way2api.com/api/v1/ip/geolocation/full", 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/geolocation/full", { 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/geolocation/full \ -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/geolocation/full", 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/geolocation/full", {"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/geolocation/full", 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",
            "location": {
                "continent_code": "NA",
                "continent_name": "North America",
                "country_code": "US",
                "country_code3": "USA",
                "country_name": "United States",
                "country_name_official": "United States of America",
                "country_capital": "Washington, D.C.",
                "state": "California",
                "state_code": "US-CA",
                "district": "Santa Clara",
                "city": "Mountain View",
                "postal_code": "94043-1351",
                "latitude": 37.4224,
                "longitude": -122.08421,
                "is_eu": false,
                "geoname_id": "6301403",
                "locality": "Mountain View",
                "accuracy_radius": 38.288,
                "confidence": "low",
                "dma_code": "807"
            },
            "country_metadata": {
                "calling_code": "+1",
                "tld": ".us",
                "languages": [
                    "en-US",
                    "es-US",
                    "haw",
                    "fr"
                ],
                "flag_emoji": "\ud83c\uddfa\ud83c\uddf8"
            },
            "network": {
                "route": "8.8.8.0/24",
                "connection_type": "",
                "is_anycast": true
            },
            "currency": {
                "code": "USD",
                "name": "US Dollar",
                "symbol": "$"
            },
            "asn": {
                "number": "AS15169",
                "organization": "Google LLC",
                "country": "US",
                "type": "business",
                "domain": "google.com",
                "registry": "ARIN",
                "allocated_on": "2000-03-30"
            },
            "company": {
                "name": "Google LLC",
                "type": "hosting",
                "domain": "google.com"
            },
            "time_zone": {
                "name": "America/Los_Angeles",
                "offset": -8,
                "offset_with_dst": -7,
                "current_time": "2026-08-04 06:33:59.826-0700",
                "abbreviation": "PDT",
                "is_dst": true
            },
            "hostname": "dns.google",
            "abuse_contact": {
                "name": "Abuse",
                "organization": "Abuse",
                "address": "1600 Amphitheatre Parkway, Mountain View, CA, 94043, United States",
                "emails": [
                    "[email protected]"
                ],
                "phones": [
                    "+16502530000"
                ],
                "network": "8.8.8.0/24",
                "country": "US"
            },
            "security": {
                "threat_score": 5,
                "is_anonymous": false,
                "is_tor": false,
                "is_proxy": false,
                "is_residential_proxy": false,
                "proxy_providers": [],
                "proxy_confidence": 0,
                "proxy_last_seen": "",
                "is_vpn": false,
                "vpn_providers": [],
                "vpn_confidence": 0,
                "vpn_last_seen": "",
                "is_relay": false,
                "relay_provider": "",
                "is_known_attacker": false,
                "is_bot": false,
                "is_spam": false,
                "is_cloud_provider": true,
                "cloud_provider": "Google LLC"
            }
        }
    }
}
4xx Error Response
{
    "success": false,
    "message": "'127.0.0.1' is a reserved (bogon) IP address.",
    "data": {
        "order_id": "W2A1739512345abcdef01",
        "error_code": "Locked"
    }
}
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