IP address to location

FREE
By ipapi
Updated 4 months ago
Location
-/10
Popularity Score
-
Latency
-
Success Rate

IP address to location API Documentation

IP address to location mapping service. Free & paid API for a secure, fast & reliable IP lookup (city, country, latitude, longitude & timezone)

View API Details
GET
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Code Snippet
unirest.("https://ipapi-ip-address-to-location-v1.p.rapidapi.com")
.header("X-RapidAPI-Host", "ipapi-ip-address-to-location-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response
General
Request URL: https://ipapi-ip-address-to-location-v1.p.rapidapi.com
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.("https://ipapi-ip-address-to-location-v1.p.rapidapi.com")
.header("X-RapidAPI-Host", "ipapi-ip-address-to-location-v1.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication