location icon indicating copy to clipboard operation
location copied to clipboard

IPinfo Lite Driver

Open nzkozar opened this issue 11 months ago • 1 comments

IPinfo service has rolled out a new unlimited free tier API which returns country information only for requested IPs: https://ipinfo.io/lite

Given its free tier and similarity to the original IPinfo driver requirements, this would most likely be a simple and welcome addition to this package.

The difference to the original driver is the API url: https://api.ipinfo.io/lite/$IP_ADDRESS?token=$TOKEN Data returned includes these fields:

ip:"8.8.8.8",
asn:"AS15169",
as_name:"Google LLC",
as_domain:"google.com",
country_code:"US",
country:"United States",
continent_code:"NA",
continent:"North America"

I'll do my best to prepare a PR for this upgrade.

nzkozar avatar May 05 '25 09:05 nzkozar

@stevebauman I opened a PR with implementation of this request: https://github.com/stevebauman/location/pull/398

nzkozar avatar May 05 '25 09:05 nzkozar

@stevebauman this can be closed

tegos avatar Aug 13 '25 11:08 tegos

Thanks @tegos.

stevebauman avatar Aug 13 '25 13:08 stevebauman