It uses the UrlFetchApp service to perform multiple HTTP requests in a single batch for improved performance. import os import ip2location database ip2location.ip2location (os.path.join ('data', 'ipv4-country.bin')) rec database.getall (ip) print (rec.countryshort) print (rec.countrylong) print (rec.region) print (rec.city) print (rec.isp) print (rec.latitude) print (rec.longitude) print (rec.domain) print (rec.zipcode) print (rec. Internally, the Google Sheet uses the IP2location web service with Google Apps Script to transform IP addresses into geographic region. If you have a small list of IP address, use demo as the key or get your own API key from .Ĭlick the Run button, authorize the script and watch as the geographic details and ISP names are populated in the sheet. The lookup service works for both IPv4 and IPv6 addresses.Įnter your key in cell E1. Paste the list of IP addresses in column A, one per row. Multiple Granularity IP2Location.io provides different plans with different granular level of geolocation data. Security IP2Location.io secures all data via SSL encryption. If you have a bulk list of IP addresses, you can use Google Sheets to estimate the corresponding geographic details for each of the addresses in few easy steps:Ĭlick here to make a copy of the Google Sheet for performing IP lookups in bulk. Fast & Reliable IP2Location.io offers real-time IP Geolocation API and returns geolocation information. The IP location lookup service can retrieve the client’s country, city name, region, the ISP name and more. IP2Location is another good alternative that retrieves more detailed geolocation information for any IP address. We internally use that service at Digital Inspiration to determine the payment service provider on the checkout page. #Ip2location finder freeThere are free web IP lookup services, for example, that will reveal the country of your client’s IP address with a simple HTTP request. A currency exchange website can determine your default currency based on your country which is detected from your IP address. For example, a weather website may use your IP address to estimate your approximate location and provide weather forecast for your current city automatically. Websites can determine the visitor’s geographic location using their IP address and serve more relevant content. How to determine the country, city and ISP name of IP addresses in bulk with Google Sheets and IP2Location service.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |