Locate IP Addresses with 'ip-api'

Download Internet Protocol (IP) address location and more from the 'ip-api' application programming interface (API) < https://ip-api.com/>. The package makes it easy to get the latitude, longitude, country, region, and organisation associated to the provided IP address. The information is conveniently returned in a rectangular format.


locateip

R-CMD-check Codecov testcoverage

The goal of locateip is to locate IP addresses using ip-api.com

Installation

For the most recent version, on CRAN:

install.packages("locateip")

You can install the development version of locateip from GitHub:

# install.packages("devtools")
devtools::install_github("clessn/locateip")

Example

library(locateip)

locate_ip("132.203.167.188", fields = c("status,message,country,city"))
#> # A tibble: 1 × 3
#>   status  country city  
#>   <chr>   <chr>   <chr> 
#> 1 success Canada  Québec

Usage

ip-api is free for non-commercial use.

For API documentation and terms of service, see ip-api.com.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("locateip")

0.1.2 by Judith Bourque, 3 years ago


Browse source code at https://github.com/cran/locateip


Authors: Judith Bourque [aut, cre, cph]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports httr2, lifecycle, readr, stringr, tibble, utils

Suggests covr, testthat


See at CRAN