Get Started With IP2Proxy R Module

Dependencies

IP2Proxy R package requires IP2Proxy BIN database to function. You may download the BIN database at

IP2Proxy R package required IP2Proxy Python library to work. In order to install IP2Proxy Python library, you can use the following command:

pip install IP2Proxy

Installation

  1. In your RStudio IDE, type the following command into the console:

    install.packages("devtools")
    require(devtools)
    
  2. After that, install IP2Proxy R package by using the following command: install_github("ip2location/ip2proxy-r")


Sample Codes

Query geolocation information from BIN database

You can query the geolocation information from the IP2Proxy BIN database as below:

library(ip2proxy)

ip2proxy::open("IP2PROXY-IP-PROXYTYPE-COUNTRY-REGION-CITY-ISP-DOMAIN-USAGETYPE-ASN-LASTSEEN-THREAT-RESIDENTIAL.BIN")
result = ip2proxy::get_all("8.8.8.8")
print(result)

							
						

IP2Proxy Sample Database (BIN)

Sample Packages - BIN File IPv4 + IPv6
IP2Proxy PX1 Download (391.66 kB)
IP2Proxy PX2 Download (406.53 kB)
IP2Proxy PX3 Download (435.82 kB)
IP2Proxy PX4 Download (471.49 kB)
IP2Proxy PX5 Download (491.37 kB)
IP2Proxy PX6 Download (493.92 kB)
IP2Proxy PX7 Download (534.57 kB)
IP2Proxy PX8 Download (540.70 kB)
IP2Proxy PX9 Download (541.56 kB)
IP2Proxy PX10 Download (677.91 kB)
IP2Proxy PX11 Download (684.40 kB)
IP2Proxy PX12 Download (687.12 kB)

Articles & Tutorials