Documentation

API URL


POST /api/v1/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",
  "location": {
    "country": "United States",
    "region": "California",
    "city": "Mountain View",
    "latitude": 37.386,
    "longitude": -122.0838
  },
  "network": {
    "network": "8.8.8.0/24",
    "asn": 15169,
    "org": "Google LLC"
  }
}

Error Response

Example
Code
400 INVALID_IP – If IP missing or invalid; 404 NOT_FOUND – IP not in dataset; 415 UNSUPPORTED_CONTENT – Content-Type not application/json; 500 SERVER_ERROR – Internal server error

Last Updated:  May 4, 2026