IP Geolocation - IPWHOIS.io

FREE
By xakageminato
Updated 5 months ago
Data
7.9/10
Popularity Score
167ms
Latency
100%
Success Rate

IP Geolocation - IPWHOIS.io API Documentation

You can use ipwhois.io to filter out bot traffic, customize content based on visitor's location, display full country names, perform bulk IP geolocation, and more.

View API Details
GETJSON endpoint
GETJSON endpoint

Detailed information on our website: https://ipwhois.io/

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Optional Parameters
ipSTRING
OPTIONAL{ip} can be an IPv4 or IPv6 address, or none to use the current IP address.
Code Snippet
unirest.get("https://ip-geolocation-ipwhois-io.p.rapidapi.com/json/")
.header("X-RapidAPI-Host", "ip-geolocation-ipwhois-io.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://ip-geolocation-ipwhois-io.p.rapidapi.com/json/
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://ip-geolocation-ipwhois-io.p.rapidapi.com/json/")
.header("X-RapidAPI-Host", "ip-geolocation-ipwhois-io.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