Package 'ip2locationio'

Title: Lookup Geolocation and Proxy Information using 'IP2Location.io' API
Description: Query for enriched data such as country, region, city, latitude & longitude, ZIP code, time zone, Autonomous System, Internet Service Provider, domain, net speed, International direct dialing (IDD) code, area code, weather station data, mobile data, elevation, usage type, address type, advertisement category, and proxy data with an IP address. This package uses the 'IP2Location.io' API to query this data. To get started with a free API key, sign up here <https://www.ip2location.io/sign-up?ref=1>.
Authors: IP2Location.io [aut, cre]
Maintainer: IP2Location.io <[email protected]>
License: MIT + file LICENSE
Version: 1.0.0
Built: 2025-01-30 07:14:44 UTC
Source: CRAN

Help Index


Lookup for IP address geolocation and proxy information

Description

Lookup for a comprehensive of the information such as location, ASN, ISP and proxy. The availability of the data will depends on the plan you have signed up for your API key.

Usage

lookup(ip)

Arguments

ip

IPv4 or IPv6 address

Value

Return all the geolocation and proxy information about the IP address

Examples

## Not run: 
lookup("1.0.241.135")

## End(Not run)

Lookup an IP address's Autonomous system name and number

Description

Lookup for the IP address's Autonomous system name and number

Usage

lookupASNByIP(ip)

Arguments

ip

IPv4 or IPv6 address

Value

Return the Autonomous system name and number of the the IP address

Examples

## Not run: 
lookupASNByIP("1.0.241.135")

## End(Not run)

Lookup an IP address's coordinate

Description

Lookup for the IP address's coordinate

Usage

lookupCoordinateByIP(ip)

Arguments

ip

IPv4 or IPv6 address

Value

Return the coordinate of the the IP address

Examples

## Not run: 
lookupCoordinateByIP("1.0.241.135")

## End(Not run)

Lookup an IP address's country

Description

Lookup for the IP address's country

Usage

lookupCountryByIP(ip)

Arguments

ip

IPv4 or IPv6 address

Value

Return the country name of the the IP address

Examples

## Not run: 
lookupCountryByIP("1.0.241.135")

## End(Not run)

Lookup an IP address's location in text

Description

Lookup for the IP address's location in text

Usage

lookupLocationByIP(ip)

Arguments

ip

IPv4 or IPv6 address

Value

Return the location of the the IP address in text

Examples

## Not run: 
lookupLocationByIP("1.0.241.135")

## End(Not run)

Set IP2Location.io API key

Description

Set IP2Location.io API key for lookup. Free API key can be obtained from <https://www.ip2location.io/sign-up?ref=1/>

Usage

setApiKey(api_key)

Arguments

api_key

IP2Location.io API key

Value

No return value, called for side effects.

Examples

## Not run: 
setApiKey("YOUR_API_KEY")

## End(Not run)