You are using an ad blocker that is interfering with our web typography and internal javascript. Please whitelist our domain to live in a more beautiful world. No ads here, just really great software!


Get device geolocation (city, country) by public IP.

Script Get Geolocation

  • Version – API change. Added API key and HTTPS enabling input parameters
  • Version – Initial release

Script Description

Retrieves the device geolocation (city, country) by public IP.

Execution context and suggested scheduling

Run the script manually as interactive user.


ID Label Description
1 API Key API key to be used for the external geolocation service
2 Enable HTTPS HTTPS enabled (true/false)
3 Maximum Delay In Seconds Maximum random delay set to avoid external API overload. Provide number of seconds


ID Label Type Description
1 Device Location String City and country where the device is located

Further Information

The script is designed to use IPAPI geolocation API ( This is a third-party API, hence its availability does not depend on Nexthink.


  • Service restrictions may apply depending on the user API account type (free, business, etc.). Check for further information
  • HTTPS may not be available for all the user plans (e.g. free plan)


Remote Actions

Required Modules

Nexthink Act




V6.14 and later
Thank you!