Documentation

API URL


POST /ip-geolocation

Headers
Code
Content-Type: application/json
Body Parameters


Example Request

Code
{
  "ip": "8.8.8.8"
}

Successful Response

Status
HTML
200 OK
Body
Code
{
  "ip": "8.8.8.8",
  "found": true,
  "location": {
    "country": "United States",
    "region": "California",
    "city": "Mountain View",
    "latitude": 37.4056,
    "longitude": -122.0775
  },
  "network": {
    "network": "8.8.8.0/24",
    "asn": "AS15169",
    "org": "Google LLC"
  }
}

Error Response

Example
Code
{
  "error": "Bad Request"
}

Last Updated:  May 4, 2026