RapidAPI logo

Sign Up

Log In

IP Info

FREE
By neutrinoapi
Updated 3 months ago
Location
8.9/10
Popularity Score
391ms
Latency
11%
Success Rate

IP Info API Documentation

Get location information about an IP address. Depending on the specific IP address you can determine the country, region, city, longitude and latitude of the address. Our high quality database for geolocation data is being constantly updated as the internet address allocation changes (the database is usually updated at least once per month). This API can also be used to do reverse DNS (PTR) lookups.

View API Details
POSTIP Info
POSTIP Info
Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
ipSTRING
REQUIREDIPv4 address
Optional Parameters
reverse-lookupBOOLEAN
OPTIONALDo reverse DNS (PTR) lookup. This option can add extra delay to the request so only use it if you need it
Request Snippet
unirest.post("https://community-neutrino-ip-info.p.rapidapi.com/ip-info")
.header("X-RapidAPI-Host", "community-neutrino-ip-info.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("reverse-lookup=false")
.send("ip=162.209.106.137")
.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.post("https://community-neutrino-ip-info.p.rapidapi.com/ip-info")
.header("X-RapidAPI-Host", "community-neutrino-ip-info.p.rapidapi.com")
.header("X-RapidAPI-Key", "SIGN-UP-FOR-KEY")
.header("Content-Type", "application/x-www-form-urlencoded")
.send("reverse-lookup=false")
.send("ip=162.209.106.137")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication