# IP Address Location

## 🌐 What is IP address location ?

The IP address location feature will try to look up the location of a respondent based on its IP address. It can be activated or disabled at any time from the [survey properties](/form-management/form-designer/form-settings.md) page.&#x20;

IP location look up will be done only once a respondent has submitted his answers and is not done in "real time" to avoid any delays during response submission.

IP location will also look up location information for any respondent recorded in your survey prior of activating the IP location lookup property.

Following location attribute can be extracted from the IP.

* Continent
* Country
* Region
* City
* Zip code
* Latitude
* Longitude

Latitude and longitude will be override by the respondent browser's location If you have activated [browser location](/form-management/form-designer/geolocation/browser-location.md) on your survey.&#x20;

Note that the IP location might not be the exact location of the respondent as the IP used by the respondent might be located in a different place however it will still give you valuable information regarding your respondents locations.

{% hint style="warning" %}
Once activated on a survey ngSurvey will retroactively lookup the location on any recorded respondent of the survey.
{% endhint %}

{% hint style="danger" %}
The IP geolocation feature uses [IPStack.com](https://www.ipstack.com)'s API to get location information as such its mandatory to set your [IPStack API access key](/installation-setup/system-settings/third-party-apis/ipstack.md) in your ngSurvey [system settings](/installation-setup/system-settings.md).
{% endhint %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.ngsurvey.com/form-management/form-designer/geolocation/ip-address-location.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
