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!

Geolocation

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

Script Get Geolocation

  • Version 2.0.0.0 – API change. Added API key and HTTPS enabling input parameters
  • Version 1.0.0.0 – 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.

Parameters

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

Outputs

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 (https://ipapi.com/). This is a third-party API, hence its availability does not depend on Nexthink.

Restrictions

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

Content

Remote Actions

Required Modules

Nexthink Act

Platforms

Windows

Compatibility

V6.14 and later
Thank you!