项目作者: hrbrmstr

项目描述 :
⛏ Tools to Query 'IP' Address Information from the 'ipstack' 'API'
高级语言: R
项目地址: git://github.com/hrbrmstr/ipstack.git
创建时间: 2018-12-22T18:22:59Z
项目社区:https://github.com/hrbrmstr/ipstack

开源协议:

下载


ipstack

Tools to Query ‘IP’ Address Information from the ‘ipstack’ ‘API’

Description

The ‘ipstack’ service (https://ipstack.com) offers a powerful,
real-time ‘IP’ to geolocation ‘API’ capable of looking up accurate
location data and assessing security threats originating from risky ‘IP’
addresses. Tools are provided to query the simple and bulk ‘API’ query
endpoints.

What’s Inside The Tin

The following functions are implemented:

  • bulk_lookup: Perform “bulk” IP lookup
  • ip_lookup: Perform “standard” IP lookup

Installation

  1. devtools::install_github("hrbrmstr/ipstack")

Usage

  1. library(ipstack)
  2. # current verison
  3. packageVersion("ipstack")
  1. ## [1] '0.1.0'
  1. str(ip_lookup("155.52.187.7"), 2)
  1. ## List of 13
  2. ## $ ip : chr "155.52.187.7"
  3. ## $ type : chr "ipv4"
  4. ## $ continent_code: chr "NA"
  5. ## $ continent_name: chr "North America"
  6. ## $ country_code : chr "US"
  7. ## $ country_name : chr "United States"
  8. ## $ region_code : chr "MA"
  9. ## $ region_name : chr "Massachusetts"
  10. ## $ city : chr "Boston"
  11. ## $ zip : chr "02115"
  12. ## $ latitude : num 42.3
  13. ## $ longitude : num -71.1
  14. ## $ location :List of 8
  15. ## ..$ geoname_id : int 4930956
  16. ## ..$ capital : chr "Washington D.C."
  17. ## ..$ languages :'data.frame': 1 obs. of 3 variables:
  18. ## ..$ country_flag : chr "http://assets.ipstack.com/flags/us.svg"
  19. ## ..$ country_flag_emoji : chr "\U0001f1fa\U0001f1f8"
  20. ## ..$ country_flag_emoji_unicode: chr "U+1F1FA U+1F1F8"
  21. ## ..$ calling_code : chr "1"
  22. ## ..$ is_eu : logi FALSE