> For the complete documentation index, see [llms.txt](https://docs.ngsurvey.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ngsurvey.com/form-management/form-designer/geolocation/ip-address-location.md).

# 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](https://docs.ngsurvey.com/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](https://docs.ngsurvey.com/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](https://docs.ngsurvey.com/installation-setup/system-settings/third-party-apis/ipstack.md) in your ngSurvey [system settings](https://docs.ngsurvey.com/installation-setup/system-settings.md).
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
