You can use a website with a api that you send a HTTP request with an IP 
address parameter to and which returns the country info.

Here is an example I found of one site.

https://ipapi.co/api/#introduction

HTTP Request

GET https://ipapi.co/{ip}/{format}/

URL Parameters

Parameter       Description
ip                      An IP address for which you want to retrieve the 
location
format          Data format of response, possible values are json, jsonp, xml, 
csv, yaml

E.g.

        https://ipapi.co/8.8.8.8/json/

It is free for up to 30K requests per month,  after that there is a fee.

https://ipapi.co/#pricing

Martin Koob
> On Nov 14, 2022, at 9:34 PM, harrison--- via use-livecode 
> <use-livecode@lists.runrev.com> wrote:
> 
> Hi Bob,
> 
> Yes, that website illustrates what I’m trying to do, but
> I really need my own code for this.
> 
> Thanks for the suggestion anyway.
> 
> Rick
> 
>> On Nov 14, 2022, at 7:57 PM, Bob Sneidar via use-livecode 
>> <use-livecode@lists.runrev.com> wrote:
>> 
>> Is that a fixed thing? Can it ever change? Seems like there must be a web 
>> site for that. I found https://www.ipvoid.com/ip-to-country/ 
>> <https://www.ipvoid.com/ip-to-country/>. They may license the tool that does 
>> this.
>> 
>> Bob S
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to