• Your shopping cart is empty!

IP2Location IP Geolocation Node.js Module

This IP Geolocation module is a Node.js module to support all IP2Location™ database products. It has been optimized for speed and memory utilization. Developers can use the module to query all IP2Location™ binary databases for applications written for the Node.js platform.

Installation
  1. Run npm install ip2location-nodejs in your command prompt.
Sample Codes
var ip2loc = require("ip2location-nodejs");

ip2loc.IP2Location_init("/path_to_your_database_file/your_BIN_file.BIN");

testip = ['8.8.8.8', '2404:6800:4001:c01::67', '2001:0200:0102:0000:0000:0000:0000:0000', '2001:0200:0135:0000:0000:0000:0000:0000', '2001:0200:017A:0000:0000:0000:0000:0000'];
for (var x = 0; x < testip.length; x++) {
	result = ip2loc.IP2Location_get_all(testip[x]);
	for (var key in result) {
		console.log(key + ": " + result[key]);
	}
}

ip2loc.IP2Location_close();
Sample IP2Location Databases (BIN)
Sample Packages - BIN File IPv4 IPv6
IP2Location DB1 Download (858.63 kB) Download (911.87 kB)
IP2Location DB2 Download (31.63 MB) Download (32.39 MB)
IP2Location DB3 Download (21.08 MB) Download (21.14 MB)
IP2Location DB4 Download (50.50 MB) Download (50.58 MB)
IP2Location DB5 Download (31.89 MB) Download (31.97 MB)
IP2Location DB6 Download (60.73 MB) Download (60.86 MB)
IP2Location DB7 Download (56.73 MB) Download (56.84 MB)
IP2Location DB8 Download (67.19 MB) Download (67.28 MB)
IP2Location DB9 Download (36.72 MB) Download (36.90 MB)
IP2Location DB10 Download (72.99 MB) Download (72.97 MB)
IP2Location DB11 Download (37.49 MB) Download (37.62 MB)
IP2Location DB12 Download (73.60 MB) Download (73.77 MB)
IP2Location DB13 Download (35.72 MB) Download (35.84 MB)
IP2Location DB14 Download (74.95 MB) Download (75.05 MB)
IP2Location DB15 Download (40.72 MB) Download (40.88 MB)
IP2Location DB16 Download (79.50 MB) Download (79.65 MB)
IP2Location DB17 Download (43.13 MB) Download (43.30 MB)
IP2Location DB18 Download (87.06 MB) Download (87.26 MB)
IP2Location DB19 Download (70.22 MB) Download (70.33 MB)
IP2Location DB20 Download (89.59 MB) Download (89.82 MB)
IP2Location DB21 Download (44.29 MB) Download (44.44 MB)
IP2Location DB22 Download (93.70 MB) Download (93.93 MB)
IP2Location DB23 Download (70.70 MB) Download (70.88 MB)
IP2Location DB24 Download (95.07 MB) Download (95.19 MB)
IP2Location DB25 Download (97.28 MB) Download (97.53 MB)
IP2Location DB26 Download (103.07 MB) Download (103.37 MB)