RapidAPI logo

Sign Up

Log In

IP Geolocation - IPWHOIS.io

FREE
By xakageminato
Updated 3 months ago
Data
7.3/10
Popularity Score
374ms
Latency
99%
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.
Request 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
Log inSign up

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