Geolocate an IP
Understand how to geolocate an IP
Allows you to take up to 100 IP addresses and determine the geographic location origins of each address.
API calls containing a single IP will return a 200 code and the results. When making an API call that includes multiple IPs, the response will be asynchronous and return a 202 instead of immediately returning the results. You will then need to poll for the results. For more information, visit our Asynchronous API response page.
Use case: Send the client IPs of your users to the geolocate endpoint to understand where they are coming from. Use this information to pre-populate forms with country information or even default to specific language if your application has that capability. Further, this could be used to understand and record activity to a specific country in something like Secure Audit Log.
curl -sSLX POST 'https://ip-intel.'"$PANGEA_DOMAIN"'/v2/geolocate' \
-H 'Authorization: Bearer '"$PANGEA_INTEL_TOKEN" \
-H 'Content-Type: application/json' \
-d '{"ips":["93.231.182.110"]}'
Was this article helpful?