Skip to content

jordyv/ip-api-lookup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Wrapper for ip-api.com API

Build Status

Usage

var IpLookup = require('ip-api-lookup');

IpLookup.lookup('8.8.8.8').then(function (response) {
    console.log(response);
});

Will output:

{
    as: 'AS15169 Google Inc.',
    city: 'Mountain View',
    country: 'United States',
    countryCode: 'US',
    isp: 'Google',
    lat: 37.386,
    lon: -122.0838,
    org: 'Google',
    query: '8.8.8.8',
    region: 'CA',
    regionName: 'California',
    status: 'success',
    timezone: 'America/Los_Angeles',
    zip: '94035'
}

See ip-api.com's documentation for more info about the API response.

Disclaimer

I'm not the author of ip-api.com and I'm not related to the authors in any way. I just like to use the API :-).

About

Simple node.js wrapper for the ip-api.com API lookup

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published