open-horizon / examples

Code examples you can use with Horizon.
Apache License 2.0
40 stars 65 forks source link

Added IP2Location.io API #596

Open ip2location opened 9 months ago

joewxboy commented 7 months ago

@ip2location Thank you for submitting this enhancement. I'm not familiar with your service, nor the terms of use for open source projects like Open Horizon. Please reach out and let's discuss to ensure we remain in compliance with your terms while providing value to developer/users of this example service. You can send an email to our mailing list at open-horizon-examples@lists.lfedge.org or chat with us at https://chat.lfx.linuxfoundation.org/ in the open-horizon-examples chat room, or just reply here in this issue. Thanks.

ip2location commented 7 months ago

For this URL http://ip2location.io/ip, there is no licensing involved as it just returns the public IP.

For this API http://api.ip2location.io, without an API key, you can make 500 geolocation queries per day. If you choose to sign up for the free API plan at http://www.ip2location.io/pricing, then you can make up to 30,000 geolocation queries per month.

For the free API plan, we do require attribution as below:

image