Skip to main content
GET
/
api
/
free
/
ip-geo
Lookup IP geolocation
curl --request GET \
  --url https://apiany.ai/api/free/ip-geo \
  --header 'Authorization: Bearer <token>'
{
  "object": "ip_geo",
  "request_id": "req_123",
  "data": {
    "ip": "8.8.8.8",
    "country": "US",
    "region": "California",
    "city": "Mountain View",
    "source": "maxmind-city"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

ip
string

IP address to look up. If omitted, the caller IP is used when proxy headers are available.

Response

IP geolocation result.

object
string
required
Example:

"ip_geo"

request_id
string
required
Example:

"req_123"

data
object
required