This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@alphat3ch/ip-api

1.0.2 • Public • Published

NPM

IP-API Build Status

Implementaion of IP-API.com in Node.js

Example Shorten:

First run npm install @alphat3ch/ip-api to install the IP-API package to your system.

var ipapi = require('@alphat3ch/ip-api');

ipapi.lookup('2.5.5.5', '262143', function(res) {
	console.log(res);
});

The first value used will be the IP address. The second value will be the fields. You can find more information about fields on the IP-API website. Using 262143 will return all available values as of December 2018.

Example Response:

{ as: 'AS3215 Orange S.A.',
  city: 'Lille',
  country: 'France',
  countryCode: 'FR',
  isp: 'France Telecom Orange',
  lat: 50.6292,
  lon: 3.05726,
  mobile: false,
  org: '',
  proxy: false,
  query: '2.5.5.5',
  region: 'HDF',
  regionName: 'Hauts-de-France',
  reverse: 'alille-656-1-160-5.w2-5.abo.wanadoo.fr',
  status: 'success',
  timezone: 'Europe/Paris',
  zip: '59000' }

Returns an empty string if an error occurs.

This Package Is Under The MIT License

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i @alphat3ch/ip-api

    Weekly Downloads

    0

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    4.17 kB

    Total Files

    6

    Last publish

    Collaborators

    • alphat3ch