eXTReMe-IP-Lookup.com

Free IP Geolocation Lookup API

Click for sample Business IPClick for sample Education IP

IP Location API Usage

Very simple. Get all geolocation information about an IP address in JSON, JSONP and CSV format through our API. Free usage with max 200 requests per minute. Need more? Email us.

What sets us apart from the other IP location lookup API services?

We return back the IP Type which can be 'Business', 'Education' or 'Residential'. As well as the full resolved IP Name. If the IP is a business or education we also return the Business/Edu Name and Business/Edu Website when available.

Use it for:

Want assistance implementing this? Send us an email.

JSON URL:

extreme-ip-lookup.com/json/
Returns JSON data about the IP of the client
extreme-ip-lookup.com/json/63.70.164.200
Returns JSON data about the 63.70.164.200 IP

JSONP URL:

getIP = Javascript function to call when loaded.

extreme-ip-lookup.com/json/?callback=getIP
Returns JSONP data about the IP of the client
extreme-ip-lookup.com/json/63.70.164.200?callback=getIP
Returns JSONP data about the 63.70.164.200 IP

CSV URL:

extreme-ip-lookup.com/csv/
Returns CSV data about the IP of the client
status, query, ipName, ipType, businessName, businessWebsite, continent, countryCode, country, region, city, lat, lon, org, isp
extreme-ip-lookup.com/csv/63.70.164.200
Returns CSV data about the 63.70.164.200 IP
status, query, ipName, ipType, businessName, businessWebsite, continent, countryCode, country, region, city, lat, lon, org, isp

Output Schema:

queryClient IP address or IP address specified
ipTypeBusiness, Education or Residential
businessNameName of Business / Education Organization
businessWebsiteWebsite domain of Business / Education Organization
continentName of the Continent
countryCodeTwo-letter ISO 3166-1 alpha-2 country code
countryName of the country
regionName of the region
cityName of the city
latLatitude
lonLongitude
ipNameResolved IP Name
orgOrganization Name
ispISP Name
statusSuccess or fail
messageExtra status message if fail

IP geolocation lookup with Javascript using JSONP:

<div id="ipLookup"></div>
<script>
 function getIP(json) {
   if (json.country && json.city) {
    var div = document.getElementById('ipLookup');
    div.innerHTML='Location of '+json.query+': '+json.city+', '+json.country+'';
   }
  }
</script>
<script src="//extreme-ip-lookup.com/json/?callback=getIP" async defer></script>

IP geolocation lookup with JQuery using JSON:

<div id="ipLookup"></div>
<script>
 $(function() {
 $.getJSON("//extreme-ip-lookup.com/json/",
  function(json) {
   if (json.country && json.city) {
    $('#ipLookup').html('Location of '+json.query+': '+json.city+', '+json.country+'');
   }
  }
 );
 });
</script>

IP geolocation lookup with PHP using JSON:

<?php
 $user_ip = getenv('REMOTE_ADDR');
 $geo = json_decode(file_get_contents("http://extreme-ip-lookup.com/json/$user_ip"));
 $country = $geo->country;
 $city = $geo->city;
 $ipType = $geo->ipType;
 $businessName = $geo->businessName;
 $businessWebsite = $geo->businessWebsite;

 echo "Location of $user_ip: $city, $country\n";
?>

IP geolocation lookup with Python using JSON:

import urllib2
import json

response = urllib2.urlopen("http://extreme-ip-lookup.com/json/63.70.164.200")
geo = json.load(response)
print geo["country"]
print geo["ipType"]
print geo["city"]
print geo["businessName"]

IP geolocation lookup with Perl using JSON:

use LWP::UserAgent;
use JSON;

$ua = new LWP::UserAgent();
$get = $ua->get('http://extreme-ip-lookup.com/json/63.70.164.200')->content;
$geo = decode_json $get;
print "Location of $geo->{'query'}: $geo->{'city'}, $geo->{'country'}\n";

IP geolocation lookup with Curl using CSV:

curl 'extreme-ip-lookup.com/csv/63.70.164.200'
success,63.70.164.200,proxy.sandhills.com,Business,"Sandhills Publishing Company",www.sandhills.com,"North America",US,"United States",Nebraska,Lincoln,40.8615,-96.7119,"Sandhills Publishing Company","Sandhills Publishing"