| Title: | Locate IP Addresses with 'ip-api' | 
| Version: | 0.1.2 | 
| Description: | 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. | 
| License: | MIT + file LICENSE | 
| Encoding: | UTF-8 | 
| RoxygenNote: | 7.2.3 | 
| Imports: | httr2, lifecycle, readr, stringr, tibble, utils | 
| Suggests: | covr, testthat (≥ 3.0.0) | 
| Config/testthat/edition: | 3 | 
| NeedsCompilation: | no | 
| Packaged: | 2023-06-05 19:01:30 UTC; judithbourque | 
| Author: | Judith Bourque | 
| Maintainer: | Judith Bourque <judith.bourque.2@ulaval.ca> | 
| Repository: | CRAN | 
| Date/Publication: | 2023-06-06 07:40:05 UTC | 
locateip: Locate IP Addresses with 'ip-api'
Description
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.
Author(s)
Maintainer: Judith Bourque judith.bourque.2@ulaval.ca (ORCID) [copyright holder]
Locate an IP adress
Description
Usage
locate_ip(
  ip = NULL,
  fields = c("status,message,country,city"),
  lang = "en",
  ...,
  tidy = TRUE
)
Arguments
| ip | String. Either an IPv4 address, IPv6 address or a domain name. If NULL, will use the current IP address. | 
| fields | String. Response fields to pass on to the API. | 
| lang | String. Response language. An ISO 639 code supported by the API. Defaults to English. | 
| ... | Query parameters to pass on to the API. | 
| tidy | Logical. TRUE to return a tibble. FALSE to return a string. | 
Details
For API documentation and terms of service, see ip-api.com.
Value
A string or a tibble.
Examples
locate_ip("132.203.167.188")