The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

Type: Package
Title: Lookup Geolocation and Proxy Information using 'IP2Location.io' API
Version: 1.1.0
Maintainer: IP2Location.io <support@ip2location.io>
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, fraud score, and proxy data with an IP address. You can also query a list of hosted domain names for the IP address too. 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.
License: MIT + file LICENSE
Encoding: UTF-8
Imports: reticulate (≥ 1.13), jsonlite (≥ 1.6)
SystemRequirements: IP2Location.io Python library <https://github.com/ip2location/ip2location-io-python>
RoxygenNote: 7.3.2
NeedsCompilation: no
Packaged: 2025-04-10 01:19:18 UTC; ooi18
Author: IP2Location.io [aut, cre]
Repository: CRAN
Date/Publication: 2025-04-10 02:30:02 UTC

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 for domains hosted on an IP address.

Description

Lookup for a list of hosted domain names by the IP address.

Usage

lookupHostedDomain(ip, page)

Arguments

ip

IPv4 or IPv6 address

page

(optional) Pagination result returns of the hosted domains. If unspecified, 1st page will be used.

Value

Return list of hosted domain names by the IP address

Examples

## Not run: 
lookupHostedDomain("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)

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.