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.