Free IP Geolocation

FREE
By jkosgei
Updated 5 months ago
Advertising
9.1/10
Popularity Score
73ms
Latency
98%
Success Rate

Free IP Geolocation API Documentation

A Free IP Geolocation service

View API Details
GETLocal IP
GETAny IP
GETMulti-language support
GETLocal IP

Get your local ip details

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
api-keySTRING
REQUIREDUse 'test' for highly rate-limited functions. Get your own API-key here: https://ipdata.co/
Code Snippet
unirest.get("https://jkosgei-free-ip-geolocation-v1.p.rapidapi.com/?api-key=test")
.header("X-RapidAPI-Host", "jkosgei-free-ip-geolocation-v1.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://jkosgei-free-ip-geolocation-v1.p.rapidapi.com/
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://jkosgei-free-ip-geolocation-v1.p.rapidapi.com/?api-key=test")
.header("X-RapidAPI-Host", "jkosgei-free-ip-geolocation-v1.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