Skip to content

bigfunctions > ip2asn

ip2asn

Signature

ip2asn(ip)

Description

Get asn 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.ip2asn('152.216.7.110')
select bigfunctions.us.ip2asn('152.216.7.110')
select bigfunctions.europe_west1.ip2asn('152.216.7.110')
+------------------------------------------------------------------------+
| asn                                                                    |
+------------------------------------------------------------------------+
| {"asn":"AS30313","domain":"irs.gov","name":"Internal Revenue Service"} |
+------------------------------------------------------------------------+