bulk_lookup: Perform "bulk" IP lookup

Description Usage Arguments Value Note References Examples

View source: R/bulk-lookup.R

Description

Perform "bulk" IP lookup

Usage

1
2
3
bulk_lookup(ips, fields = NULL, hostname = FALSE, security = FALSE,
  language = "en", ssl = FALSE,
  ipstack_api_key = Sys.getenv("IPSTACK_API_KEY"))

Arguments

ips

a character vector of IP addresses to lookup (madx 50)

fields

When NULL all fields that the ipstack_api_key has access to will be returned. Otherwise, specify a character vector of field names according to the API reference.

hostname

By default, the ipstack API does not return information about the hostname the given IP address resolves to. In order to include the hostname object in your API result set this to TRUE.

security

Customers subscribed to the "Professional Plus Plan" may access the ipstack API's Security Module, which can be used to assess risks and threats originating from certain IP addresses before any harm can be done to a website or web application. In order to use this feature set this parameter to TRUE. NOTE: requests will fail if this parameter is set to TRUE and your plan does not have authority to access security information.

language

Defaults to en (English). But can be any, valid 2-letter language spec supported by the API.

ssl

if your plan supports making calls via https vs plaintet http set this to TRUE

ipstack_api_key

if not placed in the IPSTACK_API_KEY environment variable, place it here. Otherwise, API requests fail

Value

list

Note

Bulk requests are not supported on all plans

References

https://ipstack.com/documentation

Examples

1
2
3
4
## Not run: 
bulk_lookup(c("134.201.250.155", "72.229.28.185", "110.174.165.78"))

## End(Not run)

hrbrmstr/ipstack documentation built on May 18, 2019, 2:35 a.m.