Free IP Lookup Geolocation API

Pro Package
25/month, unlimited requests
Setup!
By subscribing you agree to our Terms & Privacy Policy.
We will only use your data to enable our service.
Cancel anytime!
Loved by!
eXTReMe-IP-Lookup.com loved by Bank Of America
eXTReMe-IP-Lookup.com loved by Siemens eXTReMe-IP-Lookup.com loved by eBay eXTReMe-IP-Lookup.com loved by Adobe eXTReMe-IP-Lookup.com loved by DPG Media eXTReMe-IP-Lookup.com loved by NASA eXTReMe-IP-Lookup.com loved by PayPal eXTReMe-IP-Lookup.com loved by Wolters Kluwer eXTReMe-IP-Lookup.com loved by Canon eXTReMe-IP-Lookup.com loved by Coinbase eXTReMe-IP-Lookup.com loved by Clearhaus eXTReMe-IP-Lookup.com loved by JP Morgan Chase

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 20 requests per minute for backend requests. For use on a website the limit is 50,000 requests per month. Free usage includes HTTP and secure HTTPS requests!

Need more requests? Sign-up for the Pro Package.

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
timezonePro Feature! Samples: America/Chicago, Europe/London, see all on Wikipedia
utcOffsetPro Feature! Samples: -10:00, +02:00
statusSuccess or fail
messageExtra status message if fail

IP 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 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 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
";
?>

IP 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 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'}
";

IP 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"