3.0.0 • Published 5 years ago

@datafire/iptwist v3.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@datafire/iptwist

Client library for ipTwist

Installation and Usage

npm install --save @datafire/iptwist
let iptwist = require('@datafire/iptwist').create({
  ApiKeyAuth: ""
});

.then(data => {
  console.log(data);
});

Description

The reliable, secure, and simple IP geolocation API.

Actions

.post

Geolocate a given IP address

iptwist..post({
  "body": {}
}, context)

Input

Output

Definitions

Request

  • Request object
    • ip string

Response

  • Response object
    • city string
    • country string
    • country_code string
    • ip string
    • latitude number
    • longitude number
    • state string
    • timezone string
    • zip string