Enables the user to find the country, region, city, coordinates, zip code, time zone, ISP, domain name, connection type, area code, weather station code, weather station name, mobile, usage type, address type and IAB category that any IP address or hostname originates from.


R Package

  1. Launch RStudio IDE.
  2. Make sure devtools is installed on your local machine. At the console window, run install.packages("devtools")
  3. Load devtools require(devtools)
  4. Install the package install_github("ip2location/ip2location-r")
  5. Call the open() and get_all() function to open and get all the information about the IP address
> ip2location::get_all("")
[1] ""

[1] "US"

[1] "United States"

[1] "California"

[1] "Mountain View"

[1] "Google LLC"

[1] 37.40599

[1] -122.0785

[1] ""

[1] "94043"

[1] "-07:00"

[1] "T1"

[1] "1"

[1] "650"

[1] "USCA0746"

[1] "Mountain View"

[1] "-"

[1] "-"

[1] "-"

[1] "32"

[1] "SES"

[1] "A"

[1] "IAB19"

IP2Location Python Module

This R package leverage the IP2Location Python library for geolocation lookup. Hence, you will need to install the Python and IP2Location module before using this R package. It works in both Windows and Linux environment, and below is the installation command.


At the command prompt, please run pip install IP2Location to install the module.


At the terminal, please run pip install IP2Location to install the module.

IP2Location BIN Data File

IP2Location BIN data file contains the geolocation information for the lookup. You can download the data file from the below links