---
updatedAt: 2026-08-12T01:17:13.000Z
agentTools:
  projectIndex: https://developers.activecampaign.com/llms.txt
---

# Retrieve the location of a geo IP entry

Returns the location that one geo IP entry resolved to. The id is the id of the geo IP entry, not of a contact or a location. Returns an empty object `{}` when the entry has no location, for example when the location record was removed. Returns 404 if no geo IP entry has the id.

> 📘 Getting a Contact's geo-ip ID
>
> Retrieve a contacts list of geo-ips with a **GET** call to: `/contacts/{id}/geoIps`
>
> [Documentation](https://developers.activecampaign.com/reference/retrieve-contact-geo-ips)

> 📘 Geo IP/Address FAQ:
>
> **Is the location accurate?**\
> IP address geolocation uses IP-to-location databases to determine which IP range the provided IP falls within. The primary source for IP address data is the regional Internet registries which allocate and distribute IP addresses amongst organizations located in their respective service regions. This will not be the exact location of the Contact.
>
> **How is the geo ip saved?**\
> [A Contact's geo IP is retrieved when the Contact fills out any ActiveCampaign form.](https://help.activecampaign.com/hc/en-us/articles/115001663670-How-is-a-contact-s-location-determined-in-ActiveCampaign-?_ga=2.3826032.110179971.1702919502-1284198313.1671482480)

```json GET /contacts/:id/geoIps (Example RESPONSE)
{
    "geoAddress": {
        "ip4": "1234567890",
        "country2": "US",
        "country": "United States",
        "state": "New York",
        "city": "New York",
        "zip": "10001",
        "area": "0",
        "lat": "40.7128",
        "lon": "-74.0060",
        "tz": "America/Chicago",
        "tstamp": "2023-12-20T14:14:46-06:00",
        "links": [],
        "id": "3"
    }
}
```

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "v3",
    "version": "3"
  },
  "servers": [
    {
      "url": "https://{youraccountname}.api-us1.com/api/3",
      "variables": {
        "youraccountname": {
          "default": "youraccountname"
        }
      }
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "name": "Api-Token",
        "in": "header",
        "x-default": ""
      }
    },
    "schemas": {
      "GeoAddress": {
        "description": "A location that one or more IPv4 addresses resolved to.",
        "properties": {
          "ip4": {
            "description": "The first IPv4 address that resolved to this location, as an unsigned integer in text form. Other addresses that resolve to the same coordinates share this record, so this is not every address seen there.",
            "type": "string",
            "example": "1123637995"
          },
          "country2": {
            "description": "Two-letter ISO 3166-1 country code. Empty when the lookup returned no country.",
            "type": "string",
            "example": "US"
          },
          "country": {
            "description": "Country name in English. Empty when the lookup returned no country.",
            "type": "string",
            "example": "United States"
          },
          "state": {
            "description": "Name of the region, such as a state or province. Empty when the lookup returned none; older locations may hold the legacy region name.",
            "type": "string",
            "example": "New York"
          },
          "city": {
            "description": "City name. Empty when the lookup returned no city.",
            "type": "string",
            "example": "New York"
          },
          "zip": {
            "description": "Postal code. Empty when the lookup returned none.",
            "type": "string",
            "example": "10001"
          },
          "area": {
            "description": "Telephone area code. \"0\" for every location recorded since 2018, because the current lookup does not provide one; older locations may hold a real code.",
            "type": "string",
            "example": "0"
          },
          "lat": {
            "description": "Latitude in decimal degrees, with six decimal places.",
            "type": "string",
            "example": "40.712800"
          },
          "lon": {
            "description": "Longitude in decimal degrees, with six decimal places.",
            "type": "string",
            "example": "-74.006000"
          },
          "tz": {
            "description": "Time zone of the location as an IANA name. Empty when the lookup returned none.",
            "type": "string",
            "example": "America/New_York"
          },
          "tstamp": {
            "description": "When this location was first recorded.",
            "type": [
              "string",
              "null"
            ],
            "example": "2023-12-20T14:14:46-06:00"
          },
          "links": {
            "description": "Always empty. A location has no related records to link to.",
            "type": "array",
            "items": {}
          },
          "id": {
            "description": "ID of the location.",
            "type": "string",
            "example": "3"
          }
        },
        "type": "object"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/geoIps/{id}/geoAddress": {
      "get": {
        "summary": "Retrieve the location of a geo IP entry",
        "description": "Returns the location that one geo IP entry resolved to. The id is the id of the geo IP entry, not of a contact or a location. Returns an empty object `{}` when the entry has no location, for example when the location record was removed. Returns 404 if no geo IP entry has the id.",
        "operationId": "retrieve-a-contacts-geo-ip-address",
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "ID of the geo IP entry.",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The location the entry resolved to, or an empty object when it has none.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "geoAddress": {
                      "description": "The location.",
                      "allOf": [
                        {
                          "$ref": "#/components/schemas/GeoAddress"
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "No geo IP entry has that id.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "message": {
                      "type": "string",
                      "description": "Explains that no geo IP entry has the id.",
                      "example": "No Result found for Geoip with id 100"
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": false,
    "proxy-enabled": false
  },
  "x-readme-fauxas": true
}
```