• Your shopping cart is empty!

IP2Proxy D Library

This library is the D programming language library to support all IP2Proxy™ BIN database products to query an IP address if it was being used as VPN anonymizer, open proxies, web proxies, Tor exits, data center, web hosting (DCH) range and search engine robots (SES). It has been optimized for speed and memory utilization.

Installation Using Dub
"dependencies": {
	"ip2proxy-d": "~master"
Sample Codes
import std.stdio;
import ip2proxy;

int main() {
	auto prox = new ip2proxy();

	if (prox.open(db) == 0) {
		auto ip = "";

		writeln("ModuleVersion: ", prox.module_version());
		writeln("PackageVersion: ", prox.package_version());
		writeln("DatabaseVersion: ", prox.database_version());

		// functions for individual fields
		writeln("IsProxy: ", prox.is_proxy(ip));
		writeln("ProxyType: ", prox.get_proxy_type(ip));
		writeln("CountryShort: ", prox.get_country_short(ip));
		writeln("CountryLong: ", prox.get_country_long(ip));
		writeln("Region: ", prox.get_region(ip));
		writeln("City: ", prox.get_city(ip));
		writeln("ISP: ", prox.get_isp(ip));
		writeln("Domain: ", prox.get_domain(ip));
		writeln("UsageType: ", prox.get_usage_type(ip));
		writeln("ASN: ", prox.get_asn(ip));
		writeln("AS: ", prox.get_as(ip));
		writeln("LastSeen: ", prox.get_last_seen(ip));

		// function for all fields
		auto all = prox.get_all(ip);
		writeln("isProxy: ", all["isProxy"]);
		writeln("ProxyType: ", all["ProxyType"]);
		writeln("CountryShort: ", all["CountryShort"]);
		writeln("CountryLong: ", all["CountryLong"]);
		writeln("Region: ", all["Region"]);
		writeln("City: ", all["City"]);
		writeln("ISP: ", all["ISP"]);
		writeln("Domain: ", all["Domain"]);
		writeln("UsageType: ", all["UsageType"]);
		writeln("ASN: ", all["ASN"]);
		writeln("AS: ", all["AS"]);
		writeln("LastSeen: ", all["LastSeen"]);
	else {
		writeln("Error reading BIN file.");

	return 0;
Sample IP2Proxy Databases (BIN)
Sample Packages IPv4 + IPv6
IP2Proxy PX1 Sample BIN File Download (25.96 MB)
IP2Proxy PX2 Sample BIN File Download (28.64 MB)
IP2Proxy PX3 Sample BIN File Download (34.31 MB)
IP2Proxy PX4 Sample BIN File Download (41.91 MB)
IP2Proxy PX5 Sample BIN File Download (44.09 MB)
IP2Proxy PX6 Sample BIN File Download (44.96 MB)
IP2Proxy PX7 Sample BIN File Download (47.95 MB)
IP2Proxy PX8 Sample BIN File Download (49.21 MB)