Log-in

IP Lookup Geolocation API

•••
Click for sample Business IPClick for sample Education IP
** How to Exclude and Block ISP and Bots in Google Analytics **
Setup!
By subscribing you agree to our Terms & Privacy Policy.
We will only use your data to enable our service.
Cancel anytime!
Loved by!

IP Location API Usage

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!

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:

  • Geolocating
    • Serve different content to different geo regions
    • Show regional languages and currencies
    • Personalize with extra local info, eg. 'Available in Los Angeles'
    • Geofencing
    • Add Geolocation data to Matomo and other analytics software
    • Extend traffic and server logs with Geolocation data
    • Use our IP API in Google Optimize, Optimizely, VWO and many others
  • Business
    • Show extra or different content to Business Visitors
    • Auto-fill or add assists to contact forms with:
      • Company Name
      • Company Website
      • Company Email address
    • Add hidden input fields with company details to:
      • Newsletter Signup Forms
      • MailChimp Signup Forms
      • Download Forms
      • Lead Generation Forms
    • Extend traffic and server logs
    • Analyze server logs, filter out just the companies using your website or service
    • Email yourself when a Business is visiting your website
    • Add Business visitor data to Google Analytics and other analytics software
    • Extend traffic and server logs with Business data
  • How to Exclude and Block ISP and Bots in Google Analytics
  • How to get Service Provider back in Google Analytics 4
  • How to get Business Leads Reported in Google Analytics 4

Want assistance implementing this? Send us an email.

JSON URL:

extreme-ip-lookup.com/json/?key=demo
Returns JSON data about the IP of the client.

Replace key=demo with your API key: Get your API key.
extreme-ip-lookup.com/json/63.70.164.200?key=demo
Returns JSON data about the 63.70.164.200 IP.

Replace key=demo with your API key: Get your API key.
We block IPs and websites going over the limits, get the Pro Package if your requests are important!

JSONP URL:

getIP = Javascript function to call when loaded.

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

Replace key=demo with your API key: Get your API key.
extreme-ip-lookup.com/json/63.70.164.200?callback=getIP&key=demo
Returns JSONP data about the 63.70.164.200 IP.

Replace key=demo with your API key: Get your API key.

CSV URL:

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

Replace key=demo with your API key: Get your API key.
extreme-ip-lookup.com/csv/63.70.164.200?key=demo
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

Replace key=demo with your API key: Get your API key.

Output Schema:

queryClient IP address or IP address specified
ipTypeBusiness, Education or Residential
(Residential is an IP address from an Internet, Hosting or Cloud provider)
businessNameName of Business / Education Organization
businessWebsiteWebsite domain of Business / Education Organization
asnPro & Ultra Feature! Autonomous System Number (ASN)
asnNamePro & Ultra Feature! ASN Name
asnOrgPro & Ultra Feature! ASN 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 & Ultra Feature! Samples: America/Chicago, Europe/London, see all on Wikipedia
utcOffsetPro & Ultra Feature! Samples: -10:00, +02:00
statusSuccess or fail
messageExtra status message if fail

Businesses in the following countries are recognized:

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 AmericaEuropeOceania
United States
Canada
Austria
Belgium
Denmark
Finland
France
Germany
Greece
Ireland
Italy
Luxembourg
Netherlands
Portugal
Spain
Sweden
United Kingdom
Australia
New Zealand

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="https://extreme-ip-lookup.com/json/?callback=getIP&key=demo" async defer></script>
Replace key=demo with your API key: Get your API key.

IP Lookup with JQuery using JSON:

<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>
Replace key=demo with your API key: Get your API key.
We block IPs and websites going over the limits, get the Pro Package if your requests are important!

IP Lookup with PHP using JSON:

<?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";
?>
Replace key=demo with your API key: Get your API key.

IP Lookup with Python 3 using JSON:

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"])
Replace key=demo with your API key: Get your API key.

IP Lookup with Python < 3 using JSON:

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"]
Replace key=demo with your API key: Get your API key.

IP Lookup with Perl using JSON:

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";
Replace key=demo with your API key: Get your API key.

IP Lookup with Curl using CSV:

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"
Replace key=demo with your API key: Get your API key.
Geelvinckssteeg 32, 1017 BE Amsterdam, Netherlands
© 1998- eXTReMe digital.
Terms & Privacy Policy
Log-in
Questions? Email us!