Skip to main content

Lookup IP Address

Get geolocation, ISP, and network details for any IPv4 or IPv6 address.

Endpoint

GET /api/ip

Query Parameters

ip
string
required
IPv4 or IPv6 address to look up (e.g. 8.8.8.8)

Example Request

curl -X GET "https://rocks.rive.wtf/api/ip?ip=8.8.8.8" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response Example

{
  "data": {
    "as": "AS15169 Google LLC",
    "asName": "GOOGLE",
    "city": "Ashburn",
    "country": "United States",
    "countryCode": "US",
    "hosting": true,
    "ip": "8.8.8.8",
    "isp": "Google LLC",
    "lat": 39.03,
    "lon": -77.5,
    "mobile": false,
    "org": "Google Public DNS",
    "proxy": false,
    "region": "VA",
    "regionName": "Virginia",
    "timezone": "America/New_York",
    "zip": "20149"
  },
  "success": true
}

Response Fields

success
boolean
Whether the lookup was successful
data
object
IP data object

Error Responses

StatusMeaning
400Missing or invalid ip parameter
404IP address not found or reserved (e.g. private ranges)
502Upstream ip-api.com request failed
ip-api.com has a free tier limit of 45 requests per minute per origin IP. If you exceed this, requests will return a 429 from the upstream and be surfaced as a 502. For higher throughput, consider caching results.
Private IP ranges (e.g. 192.168.x.x, 10.x.x.x, 127.0.0.1) will return a 404 as they cannot be geolocated.