Package 'iplookupapi'

Title: Client for the 'iplookupapi.com' IP Lookup API
Description: An R client for the 'iplookupapi.com' IP Lookup API. The API requires registration of an API key. Basic features are free, some require a paid subscription. You can find the full API documentation at <https://iplookupapi.com/docs> .
Authors: Dominik Kukacka [aut, cre]
Maintainer: Dominik Kukacka <[email protected]>
License: MIT + file LICENSE
Version: 0.1.0
Built: 2025-02-04 04:24:30 UTC
Source: https://github.com/cran/iplookupapi

Help Index


Get the current status of the API.

Description

Get the current status of the API.

Usage

get_api_status()

Value

Returns your current quota. Requests to this endpoint do not count against your quota or rate limit.


Checks the provided IP address (both v4 & v6 formats) and returns all available information.

Description

Checks the provided IP address (both v4 & v6 formats) and returns all available information.

Usage

get_ip_info(ip = NULL, language = NULL)

Arguments

ip

The IP address you want to query

language

An ISO Alpha 2 Language Code for localizing the IP data

Value

Returns all available information about an IP address.


Iplookupapi API Key

Description

iplookupapi.com requires authentication via an API key. For this package, the API key is saved as a environmental variable. In interactive mode, using iplookupapi_api_key will require you to enter an API key. Alternatively, you can also use Sys.setenv(IPLOOKUPAPI_API_KEY = <key>) to set the API key manually.

Usage

iplookupapi_api_key(force = FALSE)

Arguments

force

If TRUE, resets the API key & requires the user to provide a new API key. If FALSE and an API key already exists, the key will be printed to the console. If no key exists, you will be required to enter a key. force. Defaults to FALSE.

Value

Returns the set API key that has been stored as an enviroment variable.