1.0.5 • Published 11 months ago

@cactive/ip v1.0.5

Weekly downloads
-
License
SEE LICENSE IN LI...
Repository
github
Last release
11 months ago

Cactive IP API


API Information:

This is a free to use API hosted in Melbourne, Australia that provides detailed information of IP addresses.

You can request the API through the HTTP or HTTPS protocol and the GET method at ip.cactive.com.au/api/lookup/.

You can either provide an IP address with /api/lookup/[ip] or leave it blank to get the IP address of the requester.

Example: https://ip.cactive.com.au/api/lookup/8.8.8.8


Installation:

npm i @cactive/ip

Usage:

import ip from "@cactive/ip";

const examples = async () => {
    // Get the IP address of the client
    const self = await ip.self();
    console.log(self.ip); // eg: 192.168.0.1

    // Get the time zone of a domain, IPv4 or IPv6
    const external = await ip.retrieve("cactive.cloud");
    console.log(external.time_zone); // eg: Australia/Melbourne
};

examples();

Data Schema:

FieldTypeExample
ipString8.8.8.8
cityString or NullAshburn
stateString or NullVirginia
state_codeString or NullVA
countryString or NullUnited States
country_codeString or NullUS
country_currencyString or NullUSD
continentString or NullNorth America
continent_codeString or NullNA
post_codeString or Null20149
time_zoneString or NullAmerica/New_York
latitudeNumber or Null39.03
longitudeNumber or Null-77.5
reverse_dnsString or Nulldns.google
ispString or NullGoogle LLC
isp_orgString or NullGoogle Public DNS
as_numberString or NullAS15169
as_nameString or NullGOOGLE
as_orgString or NullGoogle LLC
detection_vpnBooleanfalse
detection_serverBooleantrue
detection_mobileBooleanfalse
1.0.5

11 months ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago