IP Geolocation

FREEMIUM
By BigDataCloud
Updated 23 days ago
Communication
-/10
Popularity Score
-
Latency
-
Success Rate

IP Geolocation API Documentation

This API returns detailed information about the geographical location, ownership and connectivity of the provided IPv4 IP address. Powered by patent pending Next Generation IP Geolocation Technology.

View API Details
GETIP Address Geolocation API
GETIP Address Geolocation API

IPv4 address Geolocation lookup

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
ipSTRING
REQUIREDIP address to lookup
Code Snippet
unirest.get("https://bigdatacloud-ip-geolocation-v1-1.p.rapidapi.com/data/ip-geolocation?ip=8.8.8.8")
.header("X-RapidAPI-Host", "bigdatacloud-ip-geolocation-v1-1.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://bigdatacloud-ip-geolocation-v1-1.p.rapidapi.com/data/ip-geolocation
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://bigdatacloud-ip-geolocation-v1-1.p.rapidapi.com/data/ip-geolocation?ip=8.8.8.8")
.header("X-RapidAPI-Host", "bigdatacloud-ip-geolocation-v1-1.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