@freeatnet/iplocation
TypeScript icon, indicating that this package has built-in type declarations

7.3.0-alpha.1 • Public • Published

iplocation Travis CI Build Status

Get ip location information.

NPM Badge

Install

npm install iplocation

Usage

const ipLocation = require("iplocation");

(async () => {
	await ipLocation("172.217.167.78");
	//=> { latitude: -33.8591, longitude: 151.2002, region: { name: "New South Wales" ... } ... }
})();

API

ipLocation(ip)

ip

Type: string

The ipv4 address to get the information for.

Providers

iplocation currently uses ipapi for IP lookups. Their free API is limited to 1000 requests per day.

Related

Package Sidebar

Install

npm i @freeatnet/iplocation

Weekly Downloads

1

Version

7.3.0-alpha.1

License

MIT

Unpacked Size

8.96 kB

Total Files

8

Last publish

Collaborators

  • freeatnet