GithubHelp home page GithubHelp logo

vbaicu / ipstack Goto Github PK

View Code? Open in Web Editor NEW
3.0 1.0 0.0 1 KB

Simple ip location api for nodejs based on ipstack.com

JavaScript 100.00%
ip geolocation javascript nodejs ipstack ipgeolocation ipinfo ipinfodb freeiplocation

ipstack's Introduction

Ipstack api wrapper for nodejs

Simple ip geolocation api based on ipstack.com

Install

You need to get you're api key from here: https://ipstack.com/signup/free and you'll get 10k free requests/month

npm install --save ipstack

Usage

const ipstack = require('ipstack')

ipstack("8.8.8.8","<your ipstack api key>",(err, response) => {
  console.log(response)
})

Example output

{ ip: '8.8.8.8',
  type: 'ipv4',
  continent_code: 'NA',
  continent_name: 'North America',
  country_code: 'US',
  country_name: 'United States',
  region_code: null,
  region_name: null,
  city: null,
  zip: null,
  latitude: 37.751,
  longitude: -97.822,
  location:
   { geoname_id: null,
     capital: 'Washington D.C.',
     languages: [ [Object] ],
     country_flag: 'http://assets.ipstack.com/flags/us.svg',
     country_flag_emoji: 'πŸ‡ΊπŸ‡Έ',
     country_flag_emoji_unicode: 'U+1F1FA U+1F1F8',
     calling_code: '1',
     is_eu: false } }

ipstack's People

Contributors

vbaicu avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

ipstack's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.