Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ipstack

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ipstack

Geolocation based on api stack api package for nodejs

  • 0.1.1
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
2.5K
decreased by-13.95%
Maintainers
1
Weekly downloads
 
Created
Source

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 } }

Keywords

FAQs

Package last updated on 29 May 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc