Very simple. Get all geolocation information about an IP address in JSON, JSONP and CSV format through our API.
You need an API key to make requests.
Sign-up for a Package to get your API Key.
We block IPs and websites going over the limits, get the Pro/Ultra Package if your requests are important!
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.
Want assistance implementing this? Send us an email.
extreme-ip-lookup.com/json/?key=demo
extreme-ip-lookup.com/json/63.70.164.200?key=demo
getIP = Javascript function to call when loaded.
extreme-ip-lookup.com/json/?callback=getIP&key=demo
extreme-ip-lookup.com/json/63.70.164.200?callback=getIP&key=demo
extreme-ip-lookup.com/csv/?key=demo
extreme-ip-lookup.com/csv/63.70.164.200?key=demo
query | Client IP address or IP address specified |
ipType | Business, Education or Residential (Residential is an IP address from an Internet, Hosting or Cloud provider) |
businessName | Name of Business / Education Organization |
businessWebsite | Website domain of Business / Education Organization |
asn | Pro & Ultra Feature! Autonomous System Number (ASN) |
asnName | Pro & Ultra Feature! ASN Name |
asnOrg | Pro & Ultra Feature! ASN Organization |
continent | Name of the Continent |
countryCode | Two-letter ISO 3166-1 alpha-2 country code |
country | Name of the country |
region | Name of the region |
city | Name of the city |
lat | Latitude |
lon | Longitude |
ipName | Resolved IP Name |
org | Organization Name |
isp | ISP Name |
timezone | Pro & Ultra Feature! Samples: America/Chicago, Europe/London, see all on Wikipedia |
utcOffset | Pro & Ultra Feature! Samples: -10:00, +02:00 |
status | Success or fail |
message | Extra status message if fail |
Our IP API returns geo information from every country in the world. The ipType will return Business or Education only for the following countries:
North America | Europe | Oceania | |
---|---|---|---|
|
|
|
|
<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="https://extreme-ip-lookup.com/json/?callback=getIP&key=demo" async defer></script>
<div id="ipLookup"></div>
<script>
$(function() {
$.getJSON("https//extreme-ip-lookup.com/json/?key=demo",
function(json) {
if (json.country && json.city) {
$('#ipLookup').html('Location of '+json.query+': '+json.city+', '+json.country+'');
}
}
);
});
</script>
<?php
$user_ip = getenv('REMOTE_ADDR');
$geo = json_decode(file_get_contents("https://extreme-ip-lookup.com/json/$user_ip?key=demo"));
$country = $geo->country;
$city = $geo->city;
$ipType = $geo->ipType;
$businessName = $geo->businessName;
$businessWebsite = $geo->businessWebsite;
echo "Location of $user_ip: $city, $country\n";
?>
import json
from urllib.request import urlopen
response = urlopen("https://extreme-ip-lookup.com/json/63.70.164.200?key=demo")
geo = json.load(response)
print(geo["country"])
print(geo["ipType"])
print(geo["city"])
print(geo["businessName"])
import urllib2
import json
response = urllib2.urlopen("https://extreme-ip-lookup.com/json/63.70.164.200?key=demo")
geo = json.load(response)
print geo["country"]
print geo["ipType"]
print geo["city"]
print geo["businessName"]
use LWP::UserAgent;
use JSON;
$ua = new LWP::UserAgent();
$get = $ua->get('https://extreme-ip-lookup.com/json/63.70.164.200?key=demo')->content;
$geo = decode_json $get;
print "Location of $geo->{'query'}: $geo->{'city'}, $geo->{'country'}\n";
curl 'https://extreme-ip-lookup.com/csv/63.70.164.200?key=demo'
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"