bigfunctions > ip2country_name
ip2country_name¶
Signature
ip2country_name(ip)
Description
Get country_name
of ip
This functions uses IP address data powered by IPinfo and released under Creative Commons Attribution-ShareAlike 4.0 International License. You are required to attribute IPinfo to use their free datasets. The attribution requirements can be met by giving their service credit as your data source. Simply place a link to IPinfo on the website, application, or social media account that uses their data.
Examples
select bigfunctions.eu.ip2country_name('152.216.7.110')
select bigfunctions.us.ip2country_name('152.216.7.110')
select bigfunctions.europe_west1.ip2country_name('152.216.7.110')
+---------------+
| country_name |
+---------------+
| United States |
+---------------+