Geo IP

PAID
By weatherbit
Updated 17 days ago
Tools
-/10
Popularity Score
-
Latency
-
Success Rate

Geo IP API Documentation

The Geo IP API from Weatherbit offers a JSON IP / GeoIP API which allow you to obtain a visitor's IP address, or query location data from any IP address. Valid outputs include JSON, JSONP, and plantext. Supports Cross-origin resource sharing (CORS).

allowing to get a visitor IP address and to query location information from any IP address. It outputs JSON-encoded IP geolocation data, and supports both Cross-origin resource sharing (CORS) and JSONP.

View API Details
GETGeoIP
GETJSON IP
GETGeoIP with specific IP
GETIP
GETGeoIP

Get visitor IP address location in JSON format

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Optional Parameters
callbackSTRING
OPTIONALReturn data in JSONP format
Code Snippet
unirest.get("https://weatherbit123.p.rapidapi.com/ip")
.header("X-RapidAPI-Host", "weatherbit123.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://weatherbit123.p.rapidapi.com/ip
Request Method: GET
Response Headers
Response Body

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://weatherbit123.p.rapidapi.com/ip")
.header("X-RapidAPI-Host", "weatherbit123.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication