IP to Country Name

FREE
By hajana1
Updated 5 months ago
Location
7.5/10
Popularity Score
483ms
Latency
-
Success Rate

IP to Country Name API Documentation

Using This free API developers can check Country of any IP, and this API can be used absolutly free in any application. or website.

View API Details
GETip
GETip

A Free API for getting Country name Of any IP

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
ipSTRING
REQUIREDYou Can Change IP address.
Code Snippet
unirest.get("https://hajana1-ip-to-country-name-v1.p.rapidapi.com/free-ip-country-api.php?ip=103.255.5.26")
.header("X-RapidAPI-Host", "hajana1-ip-to-country-name-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://hajana1-ip-to-country-name-v1.p.rapidapi.com/free-ip-country-api.php
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://hajana1-ip-to-country-name-v1.p.rapidapi.com/free-ip-country-api.php?ip=103.255.5.26")
.header("X-RapidAPI-Host", "hajana1-ip-to-country-name-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