geo-ipify
TypeScript icon, indicating that this package has built-in type declarations

0.3.8 • Public • Published

Geo Ipify

Get your public IP address, network details, and internet service provider info.

Using the Geo Ipify

This is unofficially built on Ipify API, to get more information from an ip address by passing an APIKEY gotten from Geo Ipify website.

Retrieve your api key from Geo Ipify

Install

import geoIpify from 'geo-ipify';

const result = await geoIpify('apikey');
console.log(result.data);
//=> {
//     "ip": "8.8.8.8",
//     "location": {
//         "country": "US",
//         "region": "California",
//         "timezone": "-07:00",
//     },
//     "domains": [
//         "0d2.net",
//         "003725.com",
//         "0f6.b0094c.cn",
//         "007515.com",
//         "0guhi.jocose.cn"
//     ],
//     "as": {
//         "asn": 15169,
//         "name": "Google LLC",
//         "route": "8.8.8.0/24",
//         "domain": "https://about.google/intl/en/",
//         "type": "Content"
//     },
//     "isp": "Google LLC"
// }

API

geoIpify(apiKey)

Returns a Promise<object> with an object containing your ip address and other network and device information.

Package Sidebar

Install

npm i geo-ipify

Weekly Downloads

1

Version

0.3.8

License

MIT

Unpacked Size

42.8 kB

Total Files

12

Last publish

Collaborators

  • obayomi