IP Check Code Examples

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

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

IP Check — Code Samples

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

Expected Response — 200

{
    "status": "SUCCESS",
    "status_code": 200,
    "charged": true,
    "success": true,
    "message": "",
    "message_code": "OK",
    "order_id": "W2A1739512345abcdef01",
    "data": {
        "order_id": "W2A1739512345abcdef01",
        "result": {
            "query": "195.250.21.125",
            "status": "success",
            "country": "India",
            "countryCode": "IN",
            "region": "MH",
            "regionName": "Maharashtra",
            "city": "Navi Mumbai",
            "zip": "400703",
            "lat": 19.0336,
            "lon": 73.0118,
            "timezone": "Asia/Kolkata",
            "isp": "WHG Hosting Services Ltd",
            "org": "WHG Hosting Services Ltd",
            "as": "AS199404 WHG Hosting Services Ltd"
        }
    }
}