IP Geolocation

FREE
By moocher.io
Updated 5 months ago
Location
9.6/10
Popularity Score
329ms
Latency
-
Success Rate

IP Geolocation API Documentation

This API endpoint returns the geo location of any IP, with relevant information like Continent, Country, Region, City, Postal code, Latitude and Longitude, Autonomous System and Reverse Hostname.

Moocher.io is a set of lists like IP, domains, emails, passwords, creditcard BIN/IIN. Some of them marked as 'abusers' by several groups and initiatives of users and communities, and others used to filter out potential abusers.

Moocher.io can be defined as a Look up as a Service for developers and product companies that want to know in realtime if their existing or potential users have been classified as 'abusers' by one or more of these lists.

View API Details
GETGet geo location information
GETGet geo location information

The endpoint returns full geo location information of the IP passed as argument: Continent, Country, Region, City, Postal code, Latitude and Longitude, Autonomous System and Reverse Hostname.

Header Parameters
X-RapidAPI-HostSTRING
REQUIRED
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
ipSTRING
REQUIRED
Code Snippet
unirest.get("https://moocher-io-ip-geolocation-v1.p.rapidapi.com/{ip}")
.header("X-RapidAPI-Host", "moocher-io-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://moocher-io-ip-geolocation-v1.p.rapidapi.com/{ip}
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://moocher-io-ip-geolocation-v1.p.rapidapi.com/{ip}")
.header("X-RapidAPI-Host", "moocher-io-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