CINXE.COM
IP2Location IP Geolocation Web Service | IP2Location
<!DOCTYPE html> <!--[if IE 8]> <html lang="en" class="ie8 no-js"> <![endif]--> <!--[if IE 9]> <html lang="en" class="ie9 no-js"> <![endif]--> <!--[if !IE]><!--> <html lang="en"> <!--<![endif]--> <head> <!-- Google Tag Manager --> <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= 'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); })(window,document,'script','dataLayer','GTM-PMZ8KTN');</script> <!-- End Google Tag Manager --> <meta charset="utf-8"/> <meta name="msvalidate.01" content="B34A845FC8D9EDD02097289CC012240A" /> <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> <meta name="author" content="IP2Location"> <meta name="description" content="IP2Location IP geolocation web service (REST API) provides reverse geolocation lookup of an IP address and returns location information."> <meta name="keywords" content="REST API, web service, geolocation lookup, ip location lookup, location lookup,ip country, web service, ISO3166, country code, geolocation, ip address, ip address search"> <link rel="apple-touch-icon" sizes="180x180" href="https://cdn.ip2location.com/assets/img/apple-touch-icon.png"> <link rel="icon" type="image/png" sizes="16x16" href="https://cdn.ip2location.com/assets/img/favicon-16x16.png"> <link rel="icon" type="image/png" sizes="32x32" href="https://cdn.ip2location.com/assets/img/favicon-32x32.png"> <link href="/favicon.ico" type="image/x-icon" rel="icon"> <link href="/favicon.ico" type="image/x-icon" rel="shortcut icon"> <link rel="manifest" href="/site.webmanifest"> <link rel="mask-icon" href="https://cdn.ip2location.com/assets/img/safari-tab.svg" color="#5bbad5"> <meta name="msapplication-TileColor" content="#da532c"> <!-- Experiment on establish early connections to required origins --> <link rel="preconnect" href="https://cdn.ip2location.com"> <link rel="dns-prefetch" href="https://cdn.ip2location.com"> <link rel="preconnect" href="https://cdnjs.cloudflare.com"> <link rel="dns-prefetch" href="https://cdnjs.cloudflare.com"> <link rel="preconnect" href="https://fonts.googleapis.com"> <link rel="dns-prefetch" href="https://fonts.googleapis.com"> <meta property="og:title" content="IP2Location IP Geolocation Web Service | IP2Location"> <meta property="og:type" content="website"> <meta property="og:url" content="https://www.ip2location.com/web-service/ip2location"> <meta property="og:site_name" content="IP2Location"> <meta property="og:description" content="IP2Location IP geolocation web service (REST API) provides reverse geolocation lookup of an IP address and returns location information."> <meta property="og:image" content="https://cdn.ip2location.com/assets/img/og-ip2location.png"> <meta property="og:image:secure_url" content="https://cdn.ip2location.com/assets/img/icon.png"> <meta property="og:image:type" content="image/png"> <meta property="og:image:width" content="192"> <meta property="og:image:height" content="192"> <meta name="twitter:card" content="summary_large_image"> <meta name="twitter:site" content="@ip2location"> <meta name="twitter:title" content="IP2Location IP Geolocation Web Service | IP2Location"> <meta name="twitter:description" content="IP2Location IP geolocation web service (REST API) provides reverse geolocation lookup of an IP address and returns location information."> <meta name="twitter:creator" content="@ip2location"> <meta name="twitter:image" content="https://cdn.ip2location.com/assets/img/og-ip2location.png"> <link rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/5.3.0/cosmo/bootstrap.min.css" as="style"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootswatch/5.3.0/cosmo/bootstrap.min.css" rel="stylesheet" type="text/css" /> <link rel="preload" href="https://cdn.ip2location.com/assets/css/style.min.css" as="style"> <link href="https://cdn.ip2location.com/assets/css/style.min.css" rel="stylesheet" type="text/css" /> <link rel="preload" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" as="style"> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.2/css/all.min.css" rel="stylesheet" type="text/css" /> <link rel="canonical" href="https://www.ip2location.com/web-service/ip2location" /> <style> .nav-pills>.nav-item>.nav-link{padding:15px 22px ! important;} .nav-item{text-align:center;} .nav-pills>.nav-item.active>.nav-link, .nav-pills>.nav-item.active>.nav-link:focus, .nav-pills>.nav-item.active>.nav-link:hover, .nav-pills.nav-link.active {color: #ffffff!important;background-color: transparent;} .nav-pills>.nav-item>.nav-link{color: #b5b5b5;background-color: transparent;} .nav-pills>.nav-item>.nav-link:focus, .nav-pills>.nav-item>.nav-link:hover {color: #ffffff;background-color: transparent;} </style> <title>IP2Location IP Geolocation Web Service | IP2Location</title> </head> <body> <script> var _0x291603=_0x2bc5;function _0x2bc5(_0x566d96,_0x59dafd){var _0x38e1a3=_0x38e1();return _0x2bc5=function(_0x2bc519,_0x519617){_0x2bc519=_0x2bc519-0x18c;var _0x5eb920=_0x38e1a3[_0x2bc519];return _0x5eb920;},_0x2bc5(_0x566d96,_0x59dafd);}function _0x38e1(){var _0x5e954c=['313995zpaZFk','Access\x20denied.','4sFRQfr','5060mcVnQK','2108631ZVQiIz','30640eoRzfd','6317739RKUqMi','2994632KkEdMg','2151140YDjoNT','body','6BfsXzE','4aTfEFf','1854375hQPcrt','location'];_0x38e1=function(){return _0x5e954c;};return _0x38e1();}(function(_0x3762ac,_0x2114cb){var _0x335525=_0x2bc5,_0x1c2f82=_0x3762ac();while(!![]){try{var _0x5c394c=parseInt(_0x335525(0x18d))/0x1*(-parseInt(_0x335525(0x18f))/0x2)+parseInt(_0x335525(0x199))/0x3*(-parseInt(_0x335525(0x198))/0x4)+-parseInt(_0x335525(0x195))/0x5+parseInt(_0x335525(0x197))/0x6*(parseInt(_0x335525(0x191))/0x7)+-parseInt(_0x335525(0x194))/0x8+parseInt(_0x335525(0x193))/0x9+parseInt(_0x335525(0x192))/0xa*(parseInt(_0x335525(0x190))/0xb);if(_0x5c394c===_0x2114cb)break;else _0x1c2f82['push'](_0x1c2f82['shift']());}catch(_0x4e4729){_0x1c2f82['push'](_0x1c2f82['shift']());}}}(_0x38e1,0x585f4));top['location']!=self[_0x291603(0x18c)]&&(document[_0x291603(0x196)]['innerHTML']=_0x291603(0x18e)); </script> <!-- Google Tag Manager (noscript) --> <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-PMZ8KTN" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> <nav class="navbar navbar-expand-lg navbar-light bg-light shadow-sm fixed-top py-3"> <div class="container"> <a class="navbar-brand" href="/"><img class="img-fluid" src="https://cdn.ip2location.com/assets/img/logo.png" width="256" height="32" alt="IP2Location Logo" /></a> <button class="navbar-toggler collapsed" type="button" data-bs-toggle="collapse" data-bs-target="#navbarColor03" aria-controls="navbarColor03" aria-expanded="false" aria-label="Toggle navigation"> <span class="navbar-toggler-icon"></span> </button> <div class="navbar-collapse collapse" id="navbarColor03" style="font-size:1rem;"> <ul class="navbar-nav navbar-header ms-auto"> <li class="nav-item"> <a class="nav-link " href="/">Home </a> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle " href="/solutions">Solutions</a> <ul class="dropdown-menu"> <li><a class="dropdown-item" href="/solutions/cybersecurity"> Cybersecurity</a></li> <li><a class="dropdown-item" href="/solutions/ecommerce"> E-commerce</a></li> <li><a class="dropdown-item" href="/solutions/fraud-prevention"> Fraud Prevention</a></li> <li><a class="dropdown-item" href="/solutions/advertising"> Advertising</a></li> </ul> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="javascript:;" data-bs-toggle="dropdown" aria-expanded="false">Products</a> <ul class="dropdown-menu"> <li><a class="dropdown-item" href="/database"> Database <i class="fa-solid fa-angle-right float-end nav-arrow-icon"/></i> </a> <ul class="submenu dropdown-menu"> <li><a class="dropdown-item" href="/database/ip2location">IP2Location™ Database</a></li> <li><a class="dropdown-item" href="/database/ip2proxy">IP2Proxy™ Database</a></li> </ul> </li> <li><a class="dropdown-item" href="/web-service"> Web Service <i class="fa-solid fa-angle-right float-end nav-arrow-icon"/></i> </a> <ul class="submenu dropdown-menu"> <li><a class="dropdown-item" href="https://www.ip2location.io/#ipl" target="_blank">IP2Location.io Web Service</a></li> <li><hr></li> <li><a class="dropdown-item" href="/web-service/ip2location-batch">IP2Location™ Batch Service</a></li> <li><a class="dropdown-item" href="/web-service/ip2proxy-batch">IP2Proxy™ Batch Service</a></li> </ul> </li> </ul> </li> <li class="nav-item"> <a class="nav-link " href="/buy-online">Pricing </a> </li> <li class="nav-item dropdown"> <a class="nav-link dropdown-toggle" href="javascript:;" data-bs-toggle="dropdown" aria-expanded="false"> Resources </a> <ul class="dropdown-menu menu-main"> <li><a class="dropdown-item" href="/demo"> Online Demo </a></li> <li><a class="dropdown-item" href="javascript:;"> Free Database <i class="fa-solid fa-angle-right float-end nav-arrow-icon"/></i> </a> <ul class="submenu dropdown-menu"> <li><a class="dropdown-item" href="https://lite.ip2location.com/database/ip-country" target="_blank" rel="noopener">IP2Location™ LITE</a></li> <li><a class="dropdown-item" href="https://lite.ip2location.com/database/px1-ip-country" target="_blank" rel="noopener">IP2Proxy™ LITE</a></li> <li><a class="dropdown-item" href="/free/continent-multilingual">Continent Multilingual</a></li> <li><a class="dropdown-item" href="/free/country-multilingual">Country Multilingual</a></li> <li><a class="dropdown-item" href="/free/region-multilingual">Region Multilingual</a></li> <li><a class="dropdown-item" href="/free/city-multilingual">City Multilingual</a></li> <li><a class="dropdown-item" href="/free/zipcode-metro">ZIP Code to Metro</a></li> <li><a class="dropdown-item" href="/free/weather-station-code">Weather Station Code</a></li> <li><a class="dropdown-item" href="/free/country-flags">Country Flags</a></li> <li><a class="dropdown-item" href="/free/world-svg-map">World SVG Map</a></li> <li><a class="dropdown-item" href="/free/olson-timezone">Olson Time Zone</a></li> <li><a class="dropdown-item" href="/free/iso3166-2">ISO3166-2 Subdivision Code</a></li> <li><a class="dropdown-item" href="/free/country-information">Country Information</a></li> <li><a class="dropdown-item" href="/free/geoname-id">GeoNameID</a></li> <li><a class="dropdown-item" href="https://github.com/ip2location/ip2location-iata-icao" target="_blank" rel="nofollow noopener noreferrer">IATA/ICAO List</a></li> <li><a class="dropdown-item" href="/free/iab-categories" >IAB Tech Lab Content Taxonomy</a></li> </ul> </li> <li><a class="dropdown-item" href="javascript:;"> Tools <i class="fa-solid fa-angle-right float-end nav-arrow-icon"/></i> </a> <ul class="submenu dropdown-menu"> <li><a class="dropdown-item" href="/free/applications">Applications</a></li> <li><a class="dropdown-item" href="/free/visitor-blocker">Firewall List by Country</a></li> <li><a class="dropdown-item" href="/free/visitor-blocker-asn">Firewall List by ASN</a></li> <li><a class="dropdown-item" href="/free/robot-whitelist">Firewall List by Search Engine</a></li> <li><a class="dropdown-item" href="/free/visitor-redirection">Redirect Visitor by Country</a></li> <li><a class="dropdown-item" href="/free/traceroute-application">Traceroute Application</a></li> <li><a class="dropdown-item" href="/free/traceroute">Traceroute Web</a></li> <li><a class="dropdown-item" href="/free/email-tracer">Email Tracer</a></li> <li><a class="dropdown-item" href="https://map.ip2location.com" target="_blank" rel="noopener">IP Address Map</a></li> <li><a class="dropdown-item" href="/free/downloader">Downloader Script</a></li> <li><a class="dropdown-item" href="/free/widgets">Widgets</a></li> </ul> </li> <li><a class="dropdown-item" href="/faqs"> FAQs </a></li> <li><a class="dropdown-item" href="https://blog.ip2location.com/" target="_blank"> Blog </a></li> <li><a class="dropdown-item" href="/development-libraries"> Libraries <i class="fa-solid fa-angle-right float-end nav-arrow-icon"/></i> </a> <ul class="submenu dropdown-menu"> <li><a class="dropdown-item" href="/development-libraries">IP2Location</a></li> <li><a class="dropdown-item" href="/development-libraries?tab=ip2proxy">IP2Proxy</a></li> </ul> </li> <li><a class="dropdown-item" href="/free/plugins"> Extensions/Plugins <i class="fa-solid fa-angle-right float-end nav-arrow-icon"/></i> </a> <ul class="submenu dropdown-menu"> <li><a class="dropdown-item" href="/free/plugins/blog">Blog</a></li> <li><a class="dropdown-item" href="/free/plugins/forum">Forum</a></li> <li><a class="dropdown-item" href="/free/plugins/cms">CMS</a></li> <li><a class="dropdown-item" href="/free/plugins/analytics">Analytics</a></li> <li><a class="dropdown-item" href="/free/plugins/advertisement">Advertisement</a></li> <li><a class="dropdown-item" href="/free/plugins/framework">Framework</a></li> <li><a class="dropdown-item" href="/free/plugins/e-commerce">E-Commerce</a></li> <li><a class="dropdown-item" href="/free/plugins/others">Others</a></li> </ul> </li> </ul> </li> <li class="nav-item dropdown log-in"> <button type="button" onclick="$(this).next().toggle();" class="nav-link dropdown-toggle text-dark " href="/log-in" data-bs-toggle="dropdown" aria-expanded="false"> <i class="fa fa-sign-in" style="font-size:.84rem;"></i> Log In </button> <form id="form-header-log-in" action="/log-in" method="post" class="dropdown-menu dropdown-menu-right p-4 menu-form"> <div class="mb-3"> <label for="headerEmailAddress" class="form-label">Email address</label> <input type="email" class="form-control" name="emailAddress" id="headerEmailAddress" tabindex="1" placeholder="email@example.com" style="font-size:.96rem;" > </div> <div class="mb-3"> <label for="headerPassword" class="form-label">Password</label> <input type="password" name="password" class="form-control" id="headerPassword" tabindex="2" placeholder="Password" style="font-size:.96rem;" autocomplete="new-password" onfocus="this.removeAttribute('readonly');" readonly> </div> <div class="mb-3"> <div class="form-check" style="font-size:.85rem;"> <input type="checkbox" class="form-check-input" name="rememberMe" id="headerRememberMe" tabindex="3"> <label class="form-check-label" for="headerRememberMe">Remember me</label> </div> </div> <div class="d-grid gap-2 mb-2"> <button id="btn-header-log-in" class="btn btn-primary" type="submit">Log In</button> </div> <div class="mb-2 text-center"> <a href="/forgot-password" tabindex="5" class="forgot-password" style="font-size:.85rem;">Forgot Password?</a> </div> <input type="hidden" name="_NoCSRF_RTCYJzsdgx" value="fd6208290a409af2503e3864fdbb5ec4552ecac61f4053ad7bad378d14b7f936f1c72bf9739bc9750c895e34a3532bf2a134a3803708c813c20425ecb1826e16" > </form> </li> </ul> <div class="d-flex"> <div class="top-cart-block ms-lg-3 mt-lg-auto mt-2 mb-auto"> <div class="border rounded-pill lh-sm py-2 ps-3" style="padding-right:2.5rem;"> <a href="/cart" class="text-black text-opacity-75 top-cart-info-count">0 item</a> <a href="/cart" class="text-black text-opacity-75 top-cart-info-value">US$0.00</a> </div> <i class="fa fa-shopping-cart"></i> <div class="top-cart-content-wrapper"> <div class="top-cart-content"> <ul class="scroller" style="height: 250px;"> <li> <div class="alert alert-danger"> Your shopping cart is empty! </div> </li> </ul> <div class="text-end me-1"> <a href="/cart" class="btn btn-danger">View Cart</a> <a href="/checkout" class="btn btn-primary">Checkout</a> </div> </div> </div> </div> </div> </div> </div> </nav> <div class="pt-5"></div> <div class="main pt-4 mt-5"> <div class=""> <div class="alert alert-warning" style="padding:15px;margin-top:-21px;margin-bottom:35px;"> <div class="container"> <div class="row"> <div class="col-md-10"> <h5 style="font-weight:550;font-size:14px;margin-top:1%;">We are no longer accepting new registration for IP2Location Web Service. For new registration, please visit <a href="https://www.ip2location.io/pricing#ipl" target="_blank">ip2location.io</a>.</h5> </div> <div class="col-md-2"> <a href="https://www.ip2location.io/pricing#ipl" class="btn btn-warning" style="margin-top:1%;font-size:13px;background-color: #e67e22;border-color: #e67e22;" target="_blank">Sign Up for Free</a> </div> </div> </div> </div> <div class="container"> <div class="row margin-bottom-40"> <div class="col-sm-12"> <div class="row margin-bottom-40"> <div class="col-sm-3" style="text-align: center;"> <img class="img-responsive" src="https://cdn.ip2location.com/assets/img/package-ws-small.png" width="200" height="200" alt="IP2Location IP Geolocation Web Service"> </div> <div class="col-sm-9"> <div class="row"> <div class="col-sm-12"> <span class="label label-purple label-product">WS</span> <h1 class="pagecontent" style="display:inline">IP2Location™ IP Geolocation Web Service</h1> </div> </div> <div class="row"> <div class="col-sm-3"> <div class="multi-price-block"> <div class="package-name label-purple"> WS-TRIAL </div> <div class="price"> <span>$</span><span>0</span> </div> <div class="desc"> <span>5,000 credits</span> <span> </span> </div> <div class="action"> <a style="border:1px solid #e4e5e4;background:#e4e5e4;color:#7a7a7a;" class="btn" id="link-click" disabled>Request Trial</a> </div> </div> </div> <div class="col-sm-3"> <div class="multi-price-block"> <div class="package-name label-purple"> WS </div> <div class="price"> <span>$</span><span>49</span> </div> <div class="desc"> <span>100,000 credits</span> <span>(for 1 year)</span> </div> <div class="action"> <button style="border:1px solid #e4e5e4;background:#e4e5e4;color:#7a7a7a;" class="btn add-to-cart" data-id="12" disabled><i class="fa fa-shopping-cart"></i> Add to cart</button> </div> </div> </div> <div class="col-sm-3"> <div class="multi-price-block"> <div class="package-name label-purple"> WS10X </div> <div class="price"> <span>$</span><span>441</span> </div> <div class="desc"> <span>1,000,000 credits</span> <span>(for 1 year)</span> </div> <div class="action"> <button style="border:1px solid #e4e5e4;background:#e4e5e4;color:#7a7a7a;" class="btn add-to-cart" data-id="1012" disabled><i class="fa fa-shopping-cart"></i> Add to cart</button> </div> </div> </div> <div class="col-sm-3"> <div class="multi-price-block"> <div class="package-name label-purple"> WS50X </div> <div class="price"> <span>$</span><span>1960</span> </div> <div class="desc"> <span>5,000,000 credits</span> <span>(for 1 year)</span> </div> <div class="action"> <button style="border:1px solid #e4e5e4;background:#e4e5e4;color:#7a7a7a;" class="btn add-to-cart" data-id="1013" disabled><i class="fa fa-shopping-cart"></i> Add to cart</button> </div> </div> </div> </div> <div class="description"> <p> IP2Location™ IP Geolocation web service is a REST API providing a service to do a reverse IP location lookup for ISO3166 country code, region or state, city, latitude and longitude, ZIP/Postal code, time zone, Internet Service Provider (ISP) or company name, domain name, net speed, area code, weather station code, weather station name, mobile country code (MCC), mobile network code (MNC) and carrier brand, elevation, usage type, address type and IAB category. To search, submit a query string and a set of parameters to the IP2Location™ REST API service and you will get the IP location lookup within seconds. Search results are derived from the IP2Location™ index of over 4 billion unique IP addresses. </p> <p> IPv4 and IPv6 supported. </p> <ul class="list-inline"> <li><i class="fa-solid fa-file-pdf"></i><a href="/docs/ws1-user-manual.pdf">User Manual</a></li> </ul> </div> </div> </div> <div class="row margin-bottom-40"> <div class="portlet gren"> <div class="portlet-title"> <div class="caption"><i class="fa fa-commenting"></i> Overview</div> </div> <div class="portlet-body"> <p> All successful HTTP or HTTPS requests will return a response code of 200, together with the lookup information. Error code will be returned if an error occurred. </p> <p> Each unit of package purchase entitles you to <strong>100,000</strong> query credits. If you need more credits, please add multiple units during checkout. Total credits will be the number of units purchased multiplied by 100,000. However, please note that only one unique API key will be given for each user account, even if multiple units are purchased. If you need a different API key, you should sign up using a different email account. </p> <p> IP2Location™ web service is a RESTful API call for geolocation lookup. The REST API supports both <strong>HTTP GET</strong> or <strong>HTTPS GET</strong>. </p> </div> </div> </div> <div class="row margin-bottom-40"> <div class="portlet gren"> <div class="portlet-title"> <div class="caption"><i class="fa fa-list-ul"></i> Features</div> </div> <div class="portlet-body"> <ul> <li>No database to download, to install or to upgrade in the server-side</li> <li>Supports 25 different types of package queries with a different granularity of data.</li> <li>Supports additional information (optional), such as Olson time zone, translations and so on.</li> <li>Supports HTTP or HTTPS queries up to 100,000 times or 1 year (whichever comes first)</li> </ul> </div> </div> </div> <div class="row margin-bottom-40"> <div class="portlet gren"> <div class="portlet-title"> <div class="caption"><i class="fa-solid fa-circle-play"></i> Examples</div> </div> <div class="portlet-body"> <p> Example for querying an IPv4 address:<br> </p> <div style="position:relative;margin-top:15px;"> <pre id="code" style="margin-top:0;border:0;padding:1em 3.5em 1em 1em;font-size:13px;"><code style="border:0;" class="language-markup">https://api.ip2location.com/v2/?ip=142.113.220.31&addon=continent&lang=zh-cn&key={Your API Key}</code><span style="cursor:pointer; position: absolute; top:7px; right: 0;background:#2d2d2d;padding: 7px 15px;" class="btn-copy float-end" data-clipboard-target="#code" data-bs-toggle="tooltip" data-bs-title="Copy to clipboard" aria-hidden="true"><i class="fa fa-copy" ></i></span></pre> </div> <p> Example for querying an IPv6 address:<br> </p> <div style="position:relative;margin-top:15px;"> <pre id="code2" style="margin-top:0;border:0;padding:1em 3.5em 1em 1em;font-size:13px;"><code style="border:0;" class="language-markup">https://api.ip2location.com/v2/?ip=2607:f8b0:4001:c02::93&addon=continent&lang=zh-cn&key={Your API Key}</code><span style="cursor:pointer; position: absolute; top:7px; right: 0;background:#2d2d2d;padding: 7px 15px;" class="btn-copy float-end" data-clipboard-target="#code2" data-bs-toggle="tooltip" data-bs-title="Copy to clipboard" aria-hidden="true"><i class="fa fa-copy" ></i></span></pre> </div> <p> Example to check remaining credits:<br> </p> <div style="position:relative;margin-top:15px;"> <pre id="code3" style="margin-top:0;border:0;padding:1em 3.5em 1em 1em;font-size:13px;"><code style="border:0;" class="language-markup">https://api.ip2location.com/v2/?key={Your API Key}&check=1</code><span style="cursor:pointer; position: absolute; top:7px; right: 0;background:#2d2d2d;padding: 7px 15px;" class="btn-copy float-end" data-clipboard-target="#code3" data-bs-toggle="tooltip" data-bs-title="Copy to clipboard" aria-hidden="true"><i class="fa fa-copy" ></i></span></pre> </div> <div class="alert alert-info py-4 mt-4 lh-base"> <p class="mb-3" style="padding-left: 2.6rem;font-size:0.9rem;"> <i style="text-indent: -2.2rem;" class="fa-solid fa-circle-info fa-xl align-middle"></i>New registrations for the IP2Location web service are no longer available. <br> We recommend switching to our new service, <a class="alert-link" href="https://www.ip2location.io/pricing#ipl" target="_blank">IP2Location.io</a>, which is a fast and accurate IP Geolocation API tool to determine a user's location. <br> Sign up for your free API key at IP2Location.io now! </p> <p style="padding-left:40px" class="mb-0"> <a href="https://www.ip2location.io/sign-up#ipl" target="_blank" class="btn btn-primary btn-lg px-4">Sign Up For Free</a> </p> </div> </div> </div> </div> <div class="row margin-bottom-40"> <div class="portlet gren"> <div class="portlet-title"> <div class="caption"><i class="fa fa-hashtag"></i> Parameters</div> </div> <div class="portlet-body"> <p> The REST API calling syntax. Please see the table below for description of each parameter. </p> <div style="position:relative;margin-top:15px;"> <pre id="code4" style="margin-top:0;border:0;padding:1em 3.5em 1em 1em;font-size:13px;"><code style="border:0;" class="language-markup">https://api.ip2location.com/v2/?ip={IP_ADDRESS}&key={YOUR_API_KEY}&package={WS1|WS2|WS3|...|WS25}&addon={continent,country,region,city,geotargeting,country_groupings,time_zone_info}</code><span style="cursor:pointer; position: absolute; top:7px; right: 0;background:#2d2d2d;padding: 7px 15px;" class="btn-copy float-end" data-clipboard-target="#code4" data-bs-toggle="tooltip" data-bs-title="Copy to clipboard" aria-hidden="true"><i class="fa fa-copy" ></i></span></pre> </div> <div style="margin-top:20px;"> <table class="table table-hover"> <thead> <tr> <th class="col-sm-2">Name</th> <th class="col-sm-10">Description</th> </tr> </thead> <tbody> <tr> <td>key</td> <td>(required) API key.</td> </tr> <tr> <td>ip</td> <td>(required) IP address (IPv4 or IPv6) for reverse IP location lookup purposes. If not present, the server IP address will be used for the location lookup.</td> </tr> <tr> <td>package</td> <td> (required) Web service package of different granularity of return information.<br/> Valid value: WS1 | WS2 | WS3 | WS4 | WS5 | WS6 | WS7 | WS8 | WS9 | WS10 | WS11 | WS12 | WS13 | WS14 | WS15 | WS16 | WS17 | WS18 | WS19 | WS20 | WS21 | WS22 | WS23 | WS24 | WS25<br/><br/> Please refer to the below pricing table for the information returned. </td> </tr> <tr> <td>format</td> <td> (optional) Format of the response message.<br/> Valid value: json | xml <br/><br/> If unspecified, json format will be used for the response message. </td> </tr> <tr> <td>addon</td> <td> (optional) Extra information in addition to the above-selected package.<br/> Valid value: continent, country, region, city, geotargeting, country_groupings, time_zone_info<br/><br/> Please refer to the below pricing table for the information returned. </td> </tr> <tr> <td>lang</td> <td> (optional) Translation information. The translation is only applicable for continent, country, region and city name for the <strong>addon</strong> package.<br/> Valid value: ar | cs | da | de | en | es | et | fi | fr | ga | it | ja | ko | ms | nl | pt | ru | sv | tr | vi | zh-cn | zh-tw <br/><br/> You can only specify one language value for the returns. </td> </tr> </tbody> </table> </div> </div> </div> </div> <div class="row margin-bottom-40"> <div class="portlet gren"> <div class="portlet-title"> <div class="caption"><i class="fa fa-table"></i> Response</div> </div> <h4>Package Response Fields</h4> <div class="portlet-body"> <div> <table class="table table-hover"> <thead> <tr> <th class="col-sm-2">Field</th> <th class="col-sm-10">Description</th> </tr> </thead> <tbody> <tr> <td>country_code</td> <td>Two-character country code based on ISO 3166.</td> </tr> <tr> <td>country_name</td> <td>Country name based on ISO 3166.</td> </tr> <tr> <td>region_name</td> <td>Region or state name.</td> </tr> <tr> <td>city_name</td> <td>City name.</td> </tr> <tr> <td>latitude<sup>†</sup></td> <td>City latitude. Defaults to capital city latitude if city is unknown.</td> </tr> <tr> <td>longitude<sup>†</sup></td> <td>City longitude. Defaults to capital city longitude if city is unknown.</td> </tr> <tr> <td>zip_code</td> <td>ZIP/Postal code (<a href="/zip-code-coverage">173 countries supported</a>).</td> </tr> <tr> <td>time_zone</td> <td>UTC time zone (with DST supported).</td> </tr> <tr> <td>isp</td> <td>Internet Service Provider or company's name.</td> </tr> <tr> <td>domain</td> <td>Internet domain name associated with IP address range.</td> </tr> <tr> <td>net_speed</td> <td>Internet connection type.<br />DIAL = dial-up, DSL = broadband/cable/fiber/mobile, COMP = corporate, T1 = data center/transit, SAT = satellite</td> </tr> <tr> <td>idd_code</td> <td>The IDD prefix to call the city from another country.</td> </tr> <tr> <td>area_code</td> <td>A varying length number assigned to geographic areas for calls between cities (<a href="/area-code-coverage">224 countries supported</a>).</td> </tr> <tr> <td>weather_station_code</td> <td>The special code to identify the nearest weather observation station.</td> </tr> <tr> <td>weather_station_name</td> <td>The name of the nearest weather observation station.</td> </tr> <tr> <td>mcc</td> <td>Mobile Country Codes (MCC) as defined in ITU E.212 for use in identifying mobile stations in wireless telephone networks, particularly GSM and UMTS networks.</td> </tr> <tr> <td>mnc</td> <td>Mobile Network Code (MNC) is used in combination with a Mobile Country Code (MCC) to uniquely identify a mobile phone operator or carrier.</td> </tr> <tr> <td>mobile_brand</td> <td>Commercial brand associated with the mobile carrier. <a href="/mobile-carrier-coverage">View the coverage report</a>.</td> </tr> <tr> <td>elevation</td> <td>Average height of city above sea level in meters (m).</td> </tr> <tr> <td>usage_type</td> <td>Usage type classification of ISP or company<br /> (COM) Commercial<br /> (ORG) Organization<br /> (GOV) Government<br /> (MIL) Military<br /> (EDU) University/College/School<br /> (LIB) Library<br /> (CDN) Content Delivery Network<br /> (ISP) Fixed Line ISP<br /> (MOB) Mobile ISP<br /> (DCH) Data Center/Web Hosting/Transit<br /> (SES) Search Engine Spider<br /> (RSV) Reserved</td> </tr> <tr> <td>address_type</td> <td>IP address types as defined in Internet Protocol version 4 (IPv4) and Internet Protocol version 6 (IPv6).<br> (A) Anycast - One to the closest<br> (U) Unicast - One to one<br> (M) Multicast - One to multiple<br> (B) Broadcast - One to all</td> </tr> <tr> <td>category</td> <td>The domain category code based on <a href="/free/iab-categories">IAB Tech Lab Content Taxonomy</a>.</td> </tr> <tr> <td>category_name</td> <td>The domain category based on <a href="/free/iab-categories">IAB Tech Lab Content Taxonomy</a>. These categories are comprised of Tier-1 and Tier-2 (if available) level categories widely used in services like advertising, Internet security and filtering appliances.</td> </tr> <tr> <td>credits_consumed</td> <td>Credits needed to perform geolocation lookup.</td> </tr> </tbody> </table> </div> <p><sup>†</sup> Latitude and Longitude are often near the center of population. These values are not precise and should not be used to identify a particular address or household.</p><br> <h4>Add-On Response Fields</h4> <h4><a href="#add-on-continent" data-bs-toggle="collapse"><span class="glyphicon glyphicon-chevron-right"></span> Continent</a></h4> <div class="collapse" id="add-on-continent"> <table class="table table-hover"> <thead> <tr> <th class="col-sm-2">Field</th> <th class="col-sm-10">Description</th> </tr> </thead> <tbody> <tr> <td><strong>(addon: continent)<br/>code</strong></td> <td>Two-character continent code.</td> </tr> <tr> <td><strong>(addon: continent)<br/>name</strong></td> <td>Continent name.</td> </tr> <tr> <td><strong>(addon: continent)<br/>hemisphere</strong></td> <td>The hemisphere of where the country located. The data in array format with first item indicates (north/south) hemisphere and second item indicates (east/west) hemisphere information.</td> </tr> <tr> <td><strong>(addon: continent)<br/>translations</strong></td> <td>Translation data based on the given <strong>lang</strong> code.</td> </tr> </tbody> </table> </div> <h4><a href="#add-on-country" data-bs-toggle="collapse"><span class="glyphicon glyphicon-chevron-right"></span> Country</a></h4> <div class="collapse" id="add-on-country"> <table class="table table-hover"> <thead> <tr> <th class="col-sm-2">Field</th> <th class="col-sm-10">Description</th> </tr> </thead> <tbody> <tr> <td><strong>(addon: country)<br/>name</strong></td> <td>Country name based on ISO 3166.</td> </tr> <tr> <td><strong>(addon: country)<br/>alpha3_code</strong></td> <td>Three-character country code based on ISO 3166.</td> </tr> <tr> <td><strong>(addon: country)<br/>numeric_code</strong></td> <td>Three-character country numeric code based on ISO 3166.</td> </tr> <tr> <td><strong>(addon: country)<br/>flag</strong></td> <td>URL of the country flag image.</td> </tr> <tr> <td><strong>(addon: country)<br/>capital</strong></td> <td>Capital of the country.</td> </tr> <tr> <td><strong>(addon: country)<br/>total_area</strong></td> <td>Total area in km<sup>2</sup>.</td> </tr> <tr> <td><strong>(addon: country)<br/>population</strong></td> <td>Population of the country.</td> </tr> <tr> <td><strong>(addon: country)<br/>currency -> code</strong></td> <td>Currency code based on ISO 4217.</td> </tr> <tr> <td><strong>(addon: country)<br/>currency -> name</strong></td> <td>Currency name.</td> </tr> <tr> <td><strong>(addon: country)<br/>currency -> symbol</strong></td> <td>Currency symbol.</td> </tr> <tr> <td><strong>(addon: country)<br/>language -> code</strong></td> <td>Language code based on ISO 639.</td> </tr> <tr> <td><strong>(addon: country)<br/>language -> name</strong></td> <td>Language name.</td> </tr> <tr> <td><strong>(addon: country)<br/>idd_code</strong></td> <td>The IDD prefix to call the city from another country.</td> </tr> <tr> <td><strong>(addon: country)<br/>tld</strong></td> <td>Country-Code Top-Level Domain.</td> </tr> <tr> <td><strong>(addon: country)<br/>is_eu</strong></td> <td>Identify if a country is a member of the <strong>EU (European Union)</strong>.</td> </tr> <tr> <td><strong>(addon: country)<br/>translations</strong></td> <td>Translation data based on the given <strong>lang</strong> code.</td> </tr> </tbody> </table> </div> <h4><a href="#add-on-region" data-bs-toggle="collapse"><span class="glyphicon glyphicon-chevron-right"></span> Region</a></h4> <div class="collapse" id="add-on-region"> <table class="table table-hover"> <thead> <tr> <th class="col-sm-2">Field</th> <th class="col-sm-10">Description</th> </tr> </thead> <tbody> <tr> <td><strong>(addon: region)<br/>name</strong></td> <td>Region or state name.</td> </tr> <tr> <td><strong>(addon: region)<br/>code</strong></td> <td>ISO3166-2 code.</td> </tr> <tr> <td><strong>(addon: region)<br/>translations</strong></td> <td>Translation data based on the given <strong>lang</strong> code.</td> </tr> </tbody> </table> </div> <h4><a href="#add-on-city" data-bs-toggle="collapse"><span class="glyphicon glyphicon-chevron-right"></span> City</a></h4> <div class="collapse" id="add-on-city"> <table class="table table-hover"> <thead> <tr> <th class="col-sm-2">Field</th> <th class="col-sm-10">Description</th> </tr> </thead> <tbody> <tr> <td><strong>(addon: city)<br/>name</strong></td> <td>City name.</td> </tr> <tr> <td><strong>(addon: city)<br/>translations</strong></td> <td>Translation data based on the given <strong>lang</strong> code.</td> </tr> </tbody> </table> </div> <h4><a href="#add-on-geotargeting" data-bs-toggle="collapse"><span class="glyphicon glyphicon-chevron-right"></span> Geotargeting</a></h4> <div class="collapse" id="add-on-geotargeting"> <table class="table table-hover"> <thead> <tr> <th class="col-sm-2">Field</th> <th class="col-sm-10">Description</th> </tr> </thead> <tbody> <tr> <td><strong>(addon: geotargeting)<br/>metro</strong></td> <td>Metro code based on zip/postal code.</td> </tr> </tbody> </table> </div> <h4><a href="#add-on-country-grouping" data-bs-toggle="collapse"><span class="glyphicon glyphicon-chevron-right"></span> Country Grouping</a></h4> <div class="collapse" id="add-on-country-grouping"> <table class="table table-hover"> <thead> <tr> <th class="col-sm-2">Field</th> <th class="col-sm-10">Description</th> </tr> </thead> <tbody> <tr> <td><strong>(addon: country_groupings)<br/>acronym</strong></td> <td>Acronym of the country grouping.</td> </tr> <tr> <td><strong>(addon: country_groupings)<br/>name</strong></td> <td>Name of the country grouping.</td> </tr> </tbody> </table> </div> <h4><a href="#add-on-time-zone" data-bs-toggle="collapse"><span class="glyphicon glyphicon-chevron-right"></span> Time Zone</a></h4> <div class="collapse" id="add-on-time-zone"> <table class="table table-hover"> <thead> <tr> <th class="col-sm-2">Field</th> <th class="col-sm-10">Description</th> </tr> </thead> <tbody> <tr> <td><strong>(addon: time_zone_info)<br/>olson</strong></td> <td>Time zone in olson format.</td> </tr> <tr> <td><strong>(addon: time_zone_info)<br/>current_time</strong></td> <td>Current time in ISO 8601 format.</td> </tr> <tr> <td><strong>(addon: time_zone_info)<br/>gmt_offset</strong></td> <td>GMT offset value in seconds.</td> </tr> <tr> <td><strong>(addon: time_zone_info)<br/>is_dst</strong></td> <td>Indicate if the time zone value is in DST.</td> </tr> <tr> <td><strong>(addon: time_zone_info)<br/>sunrise</strong></td> <td>Time of sunrise. (hh:mm format in local time, i.e, 07:47)</td> </tr> <tr> <td><strong>(addon: time_zone_info)<br/>sunset</strong></td> <td>Time of sunset. (hh:mm format in local time, i.e 19:50)</td> </tr> </tbody> </table> </div> </div> </div> </div> <div class="row margin-bottom-40"> <div class="portlet gren"> <div class="portlet-title"> <div class="caption"><i class="fa-solid fa-money-bill"></i> Pricing</div> </div> <div class="portlet-body"> <p> You can pick an appropriate package from the 25 packages below to start adding IP location lookup web service to your solution. Each package returns a different set of IP address information with different amounts of credits deducted for each query. </p> <div> <table class="table table-striped table-hover"> <thead> <tr> <th class="col-sm-2">Package</th> <th class="col-sm-8">Information Returned</th> <th class="col-sm-2 text-end">Credit</th> </tr> </thead> <tbody> <tr> <td><div class="col-sm-1" style="text-align:center"></div><div class="col-sm-1" style="text-align:center"><span class="label label-purple label-product">WS1</span></div></td> <td>Country Code</td> <td class="text-end">1 credit</td> </tr> <tr> <td><div class="col-sm-1" style="text-align:center"></div><div class="col-sm-1" style="text-align:center"><span class="label label-purple label-product">WS2</span></div></td> <td>Country, ISP</td> <td class="text-end">2 credits</td> </tr> <tr> <td><div class="col-sm-1" style="text-align:center"></div><div class="col-sm-1" style="text-align:center"><span class="label label-purple label-product">WS3</span></div></td> <td>Country, Region, City</td> <td class="text-end">2 credits</td> </tr> <tr> <td><div class="col-sm-1" style="text-align:center"></div><div class="col-sm-1" style="text-align:center"><span class="label label-purple label-product">WS4</span></div></td> <td>Country, Region, City, ISP</td> <td class="text-end">3 credits</td> </tr> <tr> <td><div class="col-sm-1" style="text-align:center"></div><div class="col-sm-1" style="text-align:center"><span class="label label-purple label-product">WS5</span></div></td> <td>Country, Region, City, Latitude, Longitude</td> <td class="text-end">3 credits</td> </tr> <tr> <td><div class="col-sm-1" style="text-align:center"></div><div class="col-sm-1" style="text-align:center"><span class="label label-purple label-product">WS6</span></div></td> <td>Country, Region, City, Latitude, Longitude, ISP</td> <td class="text-end">4 credits</td> </tr> <tr> <td><div class="col-sm-1" style="text-align:center"></div><div class="col-sm-1" style="text-align:center"><span class="label label-purple label-product">WS7</span></div></td> <td>Country, Region, City, ISP, Domain</td> <td class="text-end">4 credits</td> </tr> <tr> <td><div class="col-sm-1" style="text-align:center"></div><div class="col-sm-1" style="text-align:center"><span class="label label-purple label-product">WS8</span></div></td> <td>Country, Region, City, Latitude, Longitude, ISP, Domain</td> <td class="text-end">5 credits</td> </tr> <tr> <td><div class="col-sm-1" style="text-align:center"></div><div class="col-sm-1" style="text-align:center"><span class="label label-purple label-product">WS9</span></div></td> <td>Country, Region, City, Latitude, Longitude, ZIP Code</td> <td class="text-end">4 credits</td> </tr> <tr> <td><div class="col-sm-1" style="text-align:center"></div><div class="col-sm-1" style="text-align:center"><span class="label label-purple label-product">WS10</span></div></td> <td>Country, Region, City, Latitude, Longitude, ZIP Code, ISP, Domain </td> <td class="text-end">6 credits</td> </tr> <tr> <td><div class="col-sm-1" style="text-align:center"></div><div class="col-sm-1" style="text-align:center"><span class="label label-purple label-product">WS11</span></div></td> <td>Country, Region, City, Latitude, Longitude, ZIP Code, Time Zone</td> <td class="text-end">5 credits</td> </tr> <tr> <td><div class="col-sm-1" style="text-align:center"></div><div class="col-sm-1" style="text-align:center"><span class="label label-purple label-product">WS12</span></div></td> <td>Country, Region, City, Latitude, Longitude, ZIP Code, Time Zone, ISP, Domain</td> <td class="text-end">7 credits</td> </tr> <tr> <td><div class="col-sm-1" style="text-align:center"></div><div class="col-sm-1" style="text-align:center"><span class="label label-purple label-product">WS13</span></div></td> <td>Country, Region, City, Latitude, Longitude, Time Zone, Net Speed</td> <td class="text-end">5 credits</td> </tr> <tr> <td><div class="col-sm-1" style="text-align:center"></div><div class="col-sm-1" style="text-align:center"><span class="label label-purple label-product">WS14</span></div></td> <td>Country, Region, City, Latitude, Longitude, ZIP Code, Time Zone, ISP, Domain, Net Speed</td> <td class="text-end">8 credits</td> </tr> <tr> <td><div class="col-sm-1" style="text-align:center"></div><div class="col-sm-1" style="text-align:center"><span class="label label-purple label-product">WS15</span></div></td> <td>Country, Region, City, Latitude, Longitude, ZIP Code, Time Zone, Area Code</td> <td class="text-end">7 credits</td> </tr> <tr> <td><div class="col-sm-1" style="text-align:center"></div><div class="col-sm-1" style="text-align:center"><span class="label label-purple label-product">WS16</span></div></td> <td>Country, Region, City, Latitude, Longitude, ZIP Code, Time Zone, ISP, Domain, Net Speed, Area Code</td> <td class="text-end">10 credits</td> </tr> <tr> <td><div class="col-sm-1" style="text-align:center"></div><div class="col-sm-1" style="text-align:center"><span class="label label-purple label-product">WS17</span></div></td> <td>Country, Region, City, Latitude, Longitude, Time Zone, Net Speed, Weather</td> <td class="text-end">6 credits</td> </tr> <tr> <td><div class="col-sm-1" style="text-align:center"></div><div class="col-sm-1" style="text-align:center"><span class="label label-purple label-product">WS18</span></div></td> <td>Country, Region, City, Latitude, Longitude, ZIP Code, Time Zone, ISP, Domain, Net Speed, Area Code, Weather</td> <td class="text-end">11 credits</td> </tr> <tr> <td><div class="col-sm-1" style="text-align:center"></div><div class="col-sm-1" style="text-align:center"><span class="label label-purple label-product">WS19</span></div></td> <td>Country, Region, City, Latitude, Longitude, ISP, Domain, Mobile</td> <td class="text-end">8 credits</td> </tr> <tr> <td><div class="col-sm-1" style="text-align:center"></div><div class="col-sm-1" style="text-align:center"><span class="label label-purple label-product">WS20</span></div></td> <td>Country, Region, City, Latitude, Longitude, ZIP Code, Time Zone, ISP, Domain, Net Speed, Area Code, Weather, Mobile</td> <td class="text-end">14 credits</td> </tr> <tr> <td><div class="col-sm-1" style="text-align:center"></div><div class="col-sm-1" style="text-align:center"><span class="label label-purple label-product">WS21</span></div></td> <td>Country, Region, City, Latitude, Longitude, ZIP Code, Time Zone, Area Code, Elevation</td> <td class="text-end">8 credits</td> </tr> <tr> <td><div class="col-sm-1" style="text-align:center"></div><div class="col-sm-1" style="text-align:center"><span class="label label-purple label-product">WS22</span></div></td> <td>Country, Region, City, Latitude, Longitude, ZIP Code, Time Zone, ISP, Domain, Net Speed, Area Code, Weather, Mobile, Elevation</td> <td class="text-end">15 credits</td> </tr> <tr> <td><div class="col-sm-1" style="text-align:center"></div><div class="col-sm-1" style="text-align:center"><span class="label label-purple label-product">WS23</span></div></td> <td>Country, Region, City, Latitude, Longitude, ISP, Domain, Mobile, UsageType</td> <td class="text-end">11 credits</td> </tr> <tr> <td> <div class="col-sm-1" style="text-align:center"> <img style="margin-right: 2px;" src="https://cdn.ip2location.com/assets/img/mostfav.png" width="15" height="15" alt="most popular product" data-toggle="tooltip" data-placement="top" title="Most Popular Product"> </div> <div class="col-sm-1" style="text-align:center"> <span class="label label-purple label-product"> WS24</span> </div> </td> <td>Country, Region, City, Latitude, Longitude, ZIP Code, Time Zone, ISP, Domain, Net Speed, Area Code, Weather, Mobile, Elevation, UsageType</td> <td class="text-end">18 credits</td> </tr> <tr> <td><div class="col-sm-1" style="text-align:center"></div><div class="col-sm-1" style="text-align:center"><span class="label label-purple label-product">WS25</span></div></td> <td>Country, Region, City, Latitude, Longitude, ZIP Code, Time Zone, ISP, Domain, Net Speed, Area Code, Weather, Mobile, Elevation, UsageType, AddressType, Category</td> <td class="text-end">20 credits</td> </tr> </tbody> </table> </div> <div> <table class="table table-striped table-hover"> <thead> <tr> <th class="col-sm-1">Add On</th> <th class="col-sm-9">Information Returned</th> <th class="col-sm-1 text-end">Credit</th> </tr> </thead> <tbody> <tr> <td><span class="label label-purple label-product" style="width:120px;">continent</span></td> <td>Continent details with multilingual supports.</td> <td class="text-end">1 credit</td> </tr> <tr> <td><span class="label label-purple label-product" style="width:120px;">country</span></td> <td>Country information with multilingual supports.</td> <td class="text-end">2 credits</td> </tr> <tr> <td><span class="label label-purple label-product" style="width:120px;">region</span></td> <td>Region names with multilingual supports. Required WS3 and above.</td> <td class="text-end">2 credits</td> </tr> <tr> <td><span class="label label-purple label-product" style="width:120px;">city</span></td> <td>City names with multilingual supports. Required WS3 and above.</td> <td class="text-end">2 credits</td> </tr> <tr> <td><span class="label label-purple label-product" style="width:120px;">geotargeting</span></td> <td>Metro code for supported area. Required the package that has zip code data, such as WS9.</td> <td class="text-end">2 credits</td> </tr> <tr> <td><span class="label label-purple label-product" style="width:120px;">country_groupings</span></td> <td>Country Grouping Terminology.</td> <td class="text-end">2 credits</td> </tr> <tr> <td><span class="label label-purple label-product" style="width:120px;">time_zone_info</span></td> <td>Local time in real time. Required the package that has time zone data, such as DB11.</td> <td class="text-end">4 credits</td> </tr> </tbody> </table> <div class="alert alert-info">You can query for multiple add-ons by joining the values with comma. For example: addon=country,region,city</div> </div> </div> </div> </div> <div class="row margin-bottom-40"> <div class="portlet gren"> <div class="portlet-title"> <div id="sample-code" class="caption"><i class="fa-solid fa-file-code"></i> Sample Code</div> </div> <div class="portlet-body"> <div class="panel" style="margin-top:20px;"> <div class="panel-heading" style="padding:0;background-color:#202020;"> <div class="row px-1"> <ul class="nav nav-pills flex-column flex-sm-row col-lg-10" id="pills-tab" role="tablist" style="color:#b5b5b5;"> <li class="nav-item" role="presentation"> <a class="nav-link active" id="php-tab" data-bs-toggle="pill" data-bs-target="#php" type="button" role="tab" aria-controls="php" aria-selected="true">PHP</a> </li> <li class="nav-item" role="presentation"> <a class="nav-link" id="java-tab" data-bs-toggle="pill" data-bs-target="#java" type="button" role="tab" aria-controls="java" aria-selected="false">Java</a> </li> <li class="nav-item" role="presentation"> <a class="nav-link" id="vb-dot-net-tab" data-bs-toggle="pill" data-bs-target="#vb-dot-net" type="button" role="tab" aria-controls="vb-dot-net" aria-selected="false">VB .NET</a> </li> <li class="nav-item" role="presentation"> <a class="nav-link" id="c-sharp-tab" data-bs-toggle="pill" data-bs-target="#c-sharp" type="button" role="tab" aria-controls="c-sharp" aria-selected="false">C#</a> </li> <li class="nav-item" role="presentation"> <a class="nav-link" id="python-tab" data-bs-toggle="pill" data-bs-target="#python" type="button" role="tab" aria-controls="python" aria-selected="false">Python</a> </li> <li class="nav-item" role="presentation"> <a class="nav-link" id="curl-tab" data-bs-toggle="pill" data-bs-target="#curl" type="button" role="tab" aria-controls="curl" aria-selected="false">cURL</a> </li> <li class="nav-item" role="presentation"> <a class="nav-link" id="ruby-tab" data-bs-toggle="pill" data-bs-target="#ruby" type="button" role="tab" aria-controls="ruby" aria-selected="false">Ruby</a> </li> </ul> <div class="col-lg-2 my-auto pr-0"> <span class="btn btn-codes btn-copy float-end text-secondary" data-bs-toggle="tooltip" ><i class="fa fa-copy" style="color:#b5b5b5;"></i></span> </div> </div> </div> <div id="tab-codes" class="tab-content" style="padding:0;border:0;"> <div class="tab-pane fade show active" id="php" role="tabpanel" aria-labelledby="php-tab" tabindex="0"> <pre style="margin:0;border:0;padding:1.5em;font-size:13px;"><code style="border:0;" class="language-php">$ch = curl_init(); curl_setopt($ch, CURLOPT_URL, 'https://api.ip2location.com/v2/?' . http_build_query([ 'ip' => '8.8.8.8', 'key' => 'YOUR_API_KEY', 'package' => 'WS25', 'format' => 'json', 'addon' => 'continent,country,region,city,geotargeting,country_groupings,time_zone_info', 'lang' => 'en', ])); curl_setopt($ch, CURLOPT_FAILONERROR, 1); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0); curl_setopt($ch, CURLOPT_TIMEOUT, 10); $response = curl_exec($ch); var_dump($response);</code></pre> </div> <div class="tab-pane fade" id="java" role="tabpanel" aria-labelledby="java-tab" tabindex="0"> <pre style="margin:0;border:0;padding:1.5em;font-size:13px;"><code style="border:0;" class="language-java">try (java.util.Scanner s = new java.util.Scanner(new java.net.URL("https://api.ip2location.com/v2/?key={YOUR_API_KEY}&ip=8.8.8.8&package=WS24&format=json&addon=continent,country,region,city,geotargeting,country_groupings,time_zone_info&lang=en").openStream(), "UTF-8").useDelimiter("\\A")) { System.out.println(s.next()); } catch (java.io.IOException e) { e.printStackTrace(); }</code></pre> </div> <div class="tab-pane fade" id="vb-dot-net" role="tabpanel" aria-labelledby="vb-dot-net-tab" tabindex="0"> <pre style="margin:0;border:0;padding:1.5em;font-size:13px;"><code style="border:0;" class="language-vbnet">Dim httpClient As New System.Net.Http.HttpClient Dim response As String = Await httpClient.GetStringAsync("https://api.ip2location.com/v2/?key={YOUR_API_KEY}&ip=8.8.8.8&package=WS25&format=json&addon=continent,country,region,city,geotargeting,country_groupings,time_zone_info&lang=en") Console.WriteLine($"{response}")</code></pre> </div> <div class="tab-pane fade" id="c-sharp" role="tabpanel" aria-labelledby="c-sharp-tab" tabindex="0"> <pre style="margin:0;border:0;padding:1.5em;font-size:13px;"><code style="border:0;" class="language-csharp">var httpClient = new HttpClient(); var response = await httpClient.GetStringAsync("https://api.ip2location.com/v2/?key={YOUR_API_KEY}&ip=8.8.8.8&package=WS25&format=json&addon=continent,country,region,city,geotargeting,country_groupings,time_zone_info&lang=en"); Console.WriteLine($"{response}");</code></pre> </div> <div class="tab-pane fade" id="python" role="tabpanel" aria-labelledby="python-tab" tabindex="0"> <pre style="margin:0;border:0;padding:1.5em;font-size:13px;"><code style="border:0;" class="language-python">from requests import get response = get('https://api.ip2location.com/v2/?key={YOUR_API_KEY}&ip=8.8.8.8&package=WS25&format=json&addon=continent,country,region,city,geotargeting,country_groupings,time_zone_info&lang=en').text print(format(response))</code></pre> </div> <div class="tab-pane fade" id="curl" role="tabpanel" aria-labelledby="curl-tab" tabindex="0"> <pre style="margin:0;border:0;padding:1.5em;font-size:13px;"><code style="border:0;" class="language-js">curl -s "https://api.ip2location.com/v2/?key={YOUR_API_KEY}&ip=8.8.8.8&package=WS25&format=json&addon=continent,country,region,city,geotargeting,country_groupings,time_zone_info&lang=en"</code></pre> </div> <div class="tab-pane fade" id="ruby" role="tabpanel" aria-labelledby="ruby-tab" tabindex="0"> <pre style="margin:0;border:0;padding:1.5em;font-size:13px;"><code style="border:0;" class="language-ruby">require "net/http" response = Net::HTTP.get(URI("https://api.ip2location.com/v2/?key={YOUR_API_KEY}&ip=8.8.8.8&package=WS25&format=json&addon=continent,country,region,city,geotargeting,country_groupings,time_zone_info&lang=en")) puts response</code></pre> </div> </div> </div> </div> </div> </div> <div class="row margin-bottom-40"> <div class="portlet gren"> <div class="portlet-title"> <div class="caption"><i class="fa fa-reply-all"></i> Web Service Response Format</div> </div> <div class="portlet-body"> <p> The IP Geolocation web service supports json and xml response format. Below please find the details: </p> <ul class="nav nav-tabs"> <li class="nav-item" role="presentation"> <a class="nav-link active" id="json-tab" data-bs-toggle="pill" data-bs-target="#json" type="button" role="tab" aria-controls="json" aria-selected="false">JSON</a> </li> <li class="nav-item" role="presentation"> <a class="nav-link" id="xml-tab" data-bs-toggle="pill" data-bs-target="#xml" type="button" role="tab" aria-controls="xml" aria-selected="false">XML</a> </li> </ul> <div class="tab-content"> <div class="tab-pane fade show active" id="json" role="tabpanel" aria-labelledby="json-tab" tabindex="0"> <div class="panel" style="margin-top:15px;"> <div class="panel-heading" style="background-color:#202020;"> <h5 class="float-start" style="color:#b5b5b5;margin-top:8px;font-weight:550;">Query String</h5> <span data-clipboard-target="#code5" data-bs-toggle="tooltip" data-bs-title="Copy to clipboard" class="btn btn-copy float-end"><i class="fa fa-copy" style="color:#b5b5b5;"></i></span> <div class="clearfix"></div> </div> <div> <pre id="code5" style="margin-top:0;border:0;padding:1.5em;font-size:13px;"><code style="border:0;" class="language-markup">https://api.ip2location.com/v2/?ip={IP_ADDRESS}&key={YOUR_API_KEY}&package=WS25&format=json&addon=continent,country,region,city,geotargeting,country_groupings,time_zone_info&lang=zh-cn</code></pre> </div> </div> <div class="panel" style="margin-top:15px;"> <div class="panel-heading" style="background-color:#202020;"> <h5 class="float-start" style="color:#b5b5b5;margin-top:8px;font-weight:550;">Response</h5> <div class="clearfix"></div> </div> <div> <pre id="code6" style="margin-top:0;border:0;padding:1.5em;font-size:13px;"><code style="border:0;" class="language-json">{ "country_code": "US", "country_name": "United States", "region_name": "California", "city_name": "Mountain View", "latitude": "37.405992", "longitude": "-122.078515", "zip_code": "94043", "time_zone": "-07:00", "isp": "Google LLC", "domain": "google.com", "net_speed": "T1", "idd_code": "1", "area_code": "650", "weather_station_code": "USCA0746", "weather_station_name": "Mountain View", "mcc": "-", "mnc": "-", "mobile_brand": "-", "elevation": "32", "usage_type": "DCH", "address_type": "A", "category": "IAB19", "category_name": "Technology & Computing", "continent": { "name": "North america", "code": "NA", "hemisphere": [ "north", "east" ], "translations": { "zh-cn": "北美洲" } }, "country": { "name": "United States", "alpha3_code": "USA", "numeric_code": "840", "demonym": "Americans", "flag": "https://cdn.ip2location.com/assets/img/flags/us.png", "capital": "Washington, D.C.", "total_area": "9826675", "population": "326766748", "currency": { "code": "USD", "name": "United States Dollar", "symbol": "$" }, "language": { "code": "EN", "name": "English" }, "idd_code": "1", "tld": "us", "translations": { "zh-cn": "美国" } }, "region": { "name": "California", "code": "06", "translations": { "zh-cn": "加利福尼亚" } }, "city": { "name": "Mountain View", "translations": [] }, "geotargeting": { "metro": "807" }, "country_groupings": [ { "acronym": "Americas", "name": "Americas" }, { "acronym": "APEC", "name": "Asia-Pacific Economic Cooperation" }, { "acronym": "DAC", "name": "Development Assistance Committee" }, { "acronym": "G2", "name": "Group of Two" }, { "acronym": "G20", "name": "Group of Twenty" }, { "acronym": "G7", "name": "Group of Seven" }, { "acronym": "G8+5", "name": "G8+5" }, { "acronym": "NAFTA", "name": "North American Free Trade Agreement" }, { "acronym": "NALA", "name": "NALA" }, { "acronym": "OAS", "name": "Organization of American States" }, { "acronym": "OECD", "name": "Organisation for Economic Co-operation and Development" }, { "acronym": "P5", "name": "P5" }, { "acronym": "UN", "name": "United Nations" } ], "time_zone_info": { "olson": "America\/Los_Angeles", "current_time": "2019-03-03T23:06:07-08:00", "gmt_offset": -28800, "is_dst": "no", "sunrise": "06:50", "sunset": "19:32" } }</code></pre> </div> </div> </div> <div class="tab-pane fade" id="xml" role="tabpanel" aria-labelledby="xml-tab" tabindex="0"> <div class="panel" style="margin-top:15px;"> <div class="panel-heading" style="background-color:#202020;"> <h5 class="float-start" style="color:#b5b5b5;margin-top:8px;font-weight:550;">Query String</h5> <span data-clipboard-target="#code7" data-bs-toggle="tooltip" data-bs-title="Copy to clipboard" class="btn btn-copy float-end"><i class="fa fa-copy" style="color:#b5b5b5;"></i></span> <div class="clearfix"></div> </div> <div> <pre id="code7" style="margin-top:0;border:0;padding:1.5em;font-size:13px;"><code style="border:0;" class="language-markup">https://api.ip2location.com/v2/?ip={IP_ADDRESS}&key={YOUR_API_KEY}&package=WS25&format=xml&addon=continent,country,region,city,geotargeting,country_groupings,time_zone_info&lang=zh-cn</code></pre> </div> </div> <div class="panel" style="margin-top:15px;"> <div class="panel-heading" style="background-color:#202020;"> <h5 class="float-start" style="color:#b5b5b5;margin-top:8px;font-weight:550;">Response</h5> <div class="clearfix"></div> </div> <div> <pre id="code8" style="margin-top:0;border:0;padding:1.5em;font-size:13px;"><code style="border:0;" class="language-xml"><?xml version="1.0" encoding="utf-8"?> <result> <country_code>US</country_code> <country_name>United States</country_name> <region_name>California</region_name> <city_name>Mountain View</city_name> <latitude>37.405992</latitude> <longitude>-122.078515</longitude> <zip_code>94043</zip_code> <time_zone>-07:00</time_zone> <isp>Google LLC</isp> <domain>google.com</domain> <net_speed>T1</net_speed> <idd_code>1</idd_code> <area_code>650</area_code> <weather_station_code>USCA0746</weather_station_code> <weather_station_name>Mountain View</weather_station_name> <mcc>-</mcc> <mnc>-</mnc> <mobile_brand>-</mobile_brand> <elevation>32</elevation> <usage_type>DCH</usage_type> <address_typee>A</address_type> <categorye>IAB19</category> <category_namee>Technology & Computing</category_name> <continent> <name>North america</name> <code>NA</code> <hemisphere> <item0>north</item0> <item1>east</item1> </hemisphere> <translations> <zh-cn>北美洲</zh-cn> </translations> </continent> <country> <name>United States</name> <alpha3_code>USA</alpha3_code> <numeric_code>840</numeric_code> <demonym>Americans</demonym> <flag>https://cdn.ip2location.com/assets/img/flags/us.png</flag> <capital>Washington, D.C.</capital> <total_area>9826675</total_area> <population>326766748</population> <currency> <code>USD</code> <name>United States Dollar</name> <symbol>$</symbol> </currency> <language> <code>EN</code> <name>English</name> </language> <idd_code>1</idd_code> <tld>us</tld> <translations> <zh-cn>美国</zh-cn> </translations> </country> <region> <name>California</name> <code>06</code> <translations> <zh-cn>加利福尼亚</zh-cn> </translations> </region> <city> <name>Mountain View</name> <translations/> </city> <geotargeting> <metro>807</metro> </geotargeting> <country_groupings> <item0> <acronym>Americas</acronym> <name>Americas</name> </item0> <item1> <acronym>APEC</acronym> <name>Asia-Pacific Economic Cooperation</name> </item1> <item2> <acronym>DAC</acronym> <name>Development Assistance Committee</name> </item2> <item3> <acronym>G2</acronym> <name>Group of Two</name> </item3> <item4> <acronym>G20</acronym> <name>Group of Twenty</name> </item4> <item5> <acronym>G7</acronym> <name>Group of Seven</name> </item5> <item6> <acronym>G8+5</acronym> <name>G8+5</name> </item6> <item7> <acronym>NAFTA</acronym> <name>North American Free Trade Agreement</name> </item7> <item8> <acronym>NALA</acronym> <name>NALA</name> </item8> <item9> <acronym>OAS</acronym> <name>Organization of American States</name> </item9> <item10> <acronym>OECD</acronym> <name>Organisation for Economic Co-operation and Development</name> </item10> <item11> <acronym>P5</acronym> <name>P5</name> </item11> <item12> <acronym>UN</acronym> <name>United Nations</name> </item12> </country_groupings> <time_zone_info> <olson>America/Los_Angeles</olson> <current_time>2019-03-03T23:31:01-08:00</current_time> <gmt_offset>-28800</gmt_offset> <is_dst>no</is_dst> <sunrise>06:50</sunrise> <sunset>19:32</sunset> </time_zone_info> </result></code></pre> </div> </div> </div> </div> <em>Note: The web service supports both HTTP and HTTPS queries.</em> </div> </div> </div> <div class="row mt-5"> <div class="col"> <hr> </div> </div> <div class="mx-0 mt-0 px-3 px-md-2" style="padding-top:5.5rem; padding-bottom:5.5rem;"> <div class="row"> <div class="col-md-9"> <h2 class="mb-3" style="font-size:2.5rem;font-weight: 400;">Try New IP2Location.io IP Geolocation API</h2> <p class="mb-4 mb-md-0" style="font-size:1.1rem;"> Ease your tasks and workflows by using this brand new and powerful IP geolocation API now. </p> </div> <div class="col-md-3 d-grid m-auto"> <a href="https://www.ip2location.io/sign-up#ipl" target="_blank" id="link-click" class="btn btn-primary shadow-sm" style="padding:0.7rem 1.5rem;font-size:1.1rem;">Try It For Free</a> </div> </div> </div> </div> </div> </div> </div> </div> <div class="pre-footer bg-dark pt-5 pb-4"> <div class="container"> <div class="row mb-5"> <div class="col-md-3 col-sm-6"> <div class="mb-2"><span style="font-size:1.31rem;font-weight:300;color:#c2c1c1">Our Site</span></div> <ul class="list-unstyled"> <li><a href="/log-in">Client Portal</a></li> <li><a href="/demo">Online Demo</a></li> <li><a href="/solutions">Solutions</a></li> <li><a href="/development-libraries">Developers</a></li> <li><a href="https://blog.ip2location.com">Blog</a></li> <li><a href="/media-kit">Media Kit</a></li> <li><a href="/newsletter">Newsletter</a></li> <li><a href="/careers">Careers</a></li> <li><a href="/feature-request">Feature Request</a></li> <li><a href="/do-not-sell">Do Not Sell My Info</a></li> <li><a href="/contact">Contact</a></li> </ul> </div> <div class="col-md-3 col-sm-6"> <div class="mb-2"><span style="font-size:1.31rem;font-weight:300;color:#c2c1c1">Database</span></div> <ul class="list-unstyled"> <li><a href="/database/ip2location">IP2Location™ Database</a></li> <li><a href="/database/ip2proxy">IP2Proxy™ Database</a></li> </ul> <br><br> <div class="mb-2"><span style="font-size:1.31rem;font-weight:300;color:#c2c1c1">Web Service</span></div> <ul class="list-unstyled"> <li><a href="https://www.ip2location.io/#ipl" target="_blank">IP2Locaton.io Web Service</a></li> <li><a href="/web-service/ip2location-batch">IP2Location™ Batch Service</a></li> <li><a href="/web-service/ip2proxy-batch">IP2Proxy™ Batch Service</a></li> </ul> </div> <div class="col-md-3 col-sm-6"> <div class="mb-2"><span style="font-size:1.31rem;font-weight:300;color:#c2c1c1">Free Tools</span></div> <ul class="list-unstyled"> <li><a href="/free/applications">Applications</a></li> <li><a href="/free/visitor-blocker">Firewall IP List</a></li> <li><a href="/free/robot-whitelist">Search Engine IP List</a></li> <li><a href="/free/visitor-redirection">Visitor Redirection</a></li> <li><a href="/free/traceroute">Traceroute</a></li> <li><a href="/free/email-tracer">Email Tracer</a></li> <li><a href="/free/downloader">Downloader Script</a></li> <li><a href="/free/plugins">Extensions / Plugins</a></li> <li><a href="/free/widgets">Widgets</a></li> <li><a href="/reports">IP Address Report</a></li> <li><a href="/country-list">World Country List</a></li> </ul> </div> <div class="col-md-3 col-sm-6"> <div class="pre-footer-subscribe-box pre-footer-subscribe-box-vertical"> <div class="mb-2"><span style="font-size:1.31rem;font-weight:300;color:#c2c1c1">Newsletter</span></div> <p class="lh-sm" style="font-size:0.9rem;color:#b0b0b0;">Subscribe to our newsletter and stay up to date with the latest news and deals!</p> <form action="/newsletter" method="post"> <div class="input-group mb-3"> <input type="text" name="emailAddress" placeholder="Email Address..." class="form-control text-light" aria-label="Enter Email Address"> <button class="btn btn-primary" type="submit" style="font-size:0.9rem;">Subscribe</button> </div> </form> </div> <a href="https://itunes.apple.com/us/app/ip2location-geolocation/id771597553?ls=1&mt=8" target="_blank" rel="nofollow noopener noreferrer"><img alt="ip2location apple app" src="https://cdn.ip2location.com/assets/img/placeholder-image.png" data-src="https://cdn.ip2location.com/assets/img/app-store.png" width="100" height="30" class="app lazy"></a> <a href="https://play.google.com/store/apps/details?id=com.ip2location.mobile" target="_blank" rel="nofollow noopener noreferrer"><img alt="ip2location android app" src="https://cdn.ip2location.com/assets/img/placeholder-image.png" data-src="https://cdn.ip2location.com/assets/img/google-play.png" width="100" height="30" class="app lazy"></a> </div> </div> <!-- TrustBox widget - Micro Review Count --> <div class="trustpilot-widget mb-2" data-locale="en-US" data-template-id="5419b6a8b0d04a076446a9ad" data-businessunit-id="585506bf0000ff0005994734" data-style-height="24px" data-style-width="100%" data-theme="dark"> <a href="https://www.trustpilot.com/review/ip2location.com" target="_blank" rel="noopener">Trustpilot</a> </div> <!-- End TrustBox widget --> </div> </div> <div class="footer bg-dark"> <div class="container"> <div class="row"> <div class="col-md-9 col-sm-9 my-auto" style="color: #b0b0b0;"> <span class="d-block mb-1" style="font-size:0.8rem;">© 2001 - 2024 <a style="color: #b0b0b0;" href="https://www.ip2location.com">IP2Location.com</a>. All Rights Reserved. <a style="color: #b0b0b0;" href="/terms">Terms of Service</a> | <a style="color: #b0b0b0;" href="/privacy-policy">Privacy Policy</a> | <a style="color: #b0b0b0;" href="/cookie-notice">Cookie Notice</a></span> </div> <div class="col-md-3 col-sm-3"> <ul class="list-unstyled list-inline d-flex align-items-end mt-3 mb-4"> <li class="me-2 me-md-auto"><a href="https://www.facebook.com/ip2location" target="_blank" rel="nofollow noopener noreferrer" aria-label="IP2Location Facebook"><i class="fa-brands fa-facebook" style="color: #b0b0b0;"></i></a></li> <li class="me-2 me-md-auto"><a href="https://x.com/ip2location" target="_blank" rel="nofollow noopener noreferrer" aria-label="IP2Location Twitter"><i class="fa-brands fa-x-twitter" style="color: #b0b0b0;"></i></a></li> <li class="me-2 me-md-auto"><a href="https://www.reddit.com/r/ip2location/" target="_blank" rel="nofollow noopener noreferrer" aria-label="IP2Location Reddit"><i class="fa-brands fa-reddit" style="color: #b0b0b0;"></i></a></li> <li class="me-2 me-md-auto"><a href="https://github.com/ip2location/" target="_blank" rel="nofollow noopener noreferrer" aria-label="IP2Location GitHub"><i class="fa-brands fa-github" style="color: #b0b0b0;"></i></a></li> <li class="me-2 me-md-auto"><a href="https://www.youtube.com/@ip2locationipgeolocation" target="_blank" rel="nofollow noopener noreferrer" aria-label="IP2Location YouTube"><i class="fa-brands fa-youtube" style="color: #b0b0b0;"></i></a></li> <li class="me-2 me-md-auto"><a href="https://www.instagram.com/ip2location.ip/" target="_blank" rel="nofollow noopener noreferrer" aria-label="IP2Location Instagram"><i class="fa-brands fa-instagram" style="color: #b0b0b0;"></i></a></li> <li><a href="https://www.linkedin.com/company/ip2location" target="_blank" rel="nofollow noopener noreferrer" aria-label="IP2Location LinkedIn"><i class="fa-brands fa-linkedin" style="color: #b0b0b0;"></i></a></li> </ul> </div> </div> </div> </div> <!-- JS File --> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.0/jquery.min.js" integrity="sha512-3gJwYpMe3QewGELv8k/BX9vcqhryRdzRMxVfq6ngyWXwo03GFEzjsUm8Q7RZcHPHksttq7/GFoxjCVUjkjvPdw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-migrate/3.4.1/jquery-migrate.min.js" integrity="sha512-KgffulL3mxrOsDicgQWA11O6q6oKeWcV00VxgfJw4TcM8XRQT8Df9EsrYxDf7tpVpfl3qcYD96BpyPvA4d1FDQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.0/js/bootstrap.bundle.min.js" integrity="sha512-VK2zcvntEufaimc+efOYi622VN5ZacdnufnmX7zIhCPmjhKnOi9ZDMtg1/ug5l183f19gG1/cBstPO4D8N/Img==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/jQuery-slimScroll/1.3.8/jquery.slimscroll.min.js" integrity="sha512-cJMgI2OtiquRH4L9u+WQW+mz828vmdp9ljOcm/vKTQ7+ydQUktrPVewlykMgozPP+NUBbHdeifE6iJ6UVjNw5Q==" crossorigin="anonymous" referrerpolicy="no-referrer"></script> <script defer src="https://cdn.ip2location.com/assets/js/metronic.min.js"></script> <script defer src="https://cdn.ip2location.com/assets/js/layout.min.js"></script> <script defer src="https://cdn.ip2location.com/assets/js/cart.min.js"></script> <script defer src="https://cdn.ip2location.com/assets/js/cookie-notice.js"></script> <script defer src="https://cdn.ip2location.com/assets/js/lazy.min.js"></script> <!-- TrustBox script --> <script src="//widget.trustpilot.com/bootstrap/v5/tp.widget.bootstrap.min.js" async></script> <!-- End TrustBox script --> <!-- Google Code for Remarketing Tag --> <script> /* <![CDATA[ */ var google_conversion_id = 1072307919; var google_custom_params = window.google_tag_params; var google_remarketing_only = true; /* ]]> */ </script> <script src="https://www.googleadservices.com/pagead/conversion.js" integrity="sha384-eFBz8H40Y97Ul06uoIYKlyZ0maEseJH/IrwbgcMVxFGtH0OoPOBKsshCQrCj6DWz" crossorigin="anonymous"></script> <noscript><div style="display:inline;"><img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/1072307919/?value=0&guid=ON&script=0"/></div></noscript> <script src="https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.11/clipboard.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/components/prism-core.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/plugins/autoloader/prism-autoloader.min.js"></script> <script src="https://www.google.com/recaptcha/api.js"></script> <script> <!-- $(function() { Layout.init(); $('[data-bs-toggle="tooltip"]').tooltip(); var clipboard = new ClipboardJS('.btn-copy'); clipboard.on('success', function(e) { var tooltip = bootstrap.Tooltip.getInstance(e.trigger); tooltip.setContent({'.tooltip-inner': 'Copied!' }); }); $('.btn-copy').on('mouseover', function() { var tooltip = bootstrap.Tooltip.getInstance(this); tooltip.dispose(); this.setAttribute('title', 'Copy to clipboard'); tooltip = bootstrap.Tooltip.getOrCreateInstance(this); tooltip.show(); }).tooltip(); //Copy Sample Codes $('.btn-codes').click(function(){ if (window.getSelection && document.createRange) { // IE 9 and non-IE var activeTabId = document.querySelector('#tab-codes .active pre'); var range = document.createRange(); range.selectNodeContents(activeTabId); var sel = window.getSelection(); sel.removeAllRanges(); sel.addRange(range); document.execCommand("copy"); if (document.execCommand('copy')){ var tooltip = bootstrap.Tooltip.getInstance(this); tooltip.dispose(); this.setAttribute('title', 'Copied!'); tooltip = bootstrap.Tooltip.getOrCreateInstance(this); tooltip.show(); } } else if (document.body.createTextRange) { // IE < 9 var textRange = document.body.createTextRange(); textRange.moveToElementText(); textRange.select(); document.execCommand("copy"); if (document.execCommand('copy')){ var tooltip = bootstrap.Tooltip.getInstance(this); tooltip.dispose(); this.setAttribute('title', 'Copied!'); tooltip = bootstrap.Tooltip.getOrCreateInstance(this); tooltip.show(); } } }); $('.collapse').on('show.bs.collapse', function() { $(this).prev().find('.glyphicon').addClass('glyphicon-chevron-down').removeClass('glyphicon-chevron-right'); }); $('.collapse').on('hidden.bs.collapse', function() { $(this).prev().find('.glyphicon').addClass('glyphicon-chevron-right').removeClass('glyphicon-chevron-down'); }); }); //--> </script> <link rel="preload" href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&display=swap" as="style"> <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700&display=swap" rel="stylesheet" type="text/css" /> <link rel="preload" href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;700&display=swap" as="style"> <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@300;400;700&display=swap" rel="stylesheet" type="text/css" /> <script type='application/ld+json'>{"@context":"https:\/\/schema.org","@type":"Organization","url":"https:\/\/www.ip2location.com\/","name":"IP2Location","logo":"https:\/\/www.ip2location.com\/assets\/img\/ip2location_logo.png"}</script> <script src="https://www.recaptcha.net/recaptcha/api.js?render=6LdjXpEUAAAAABG9zEnu_48EEQEdUx4hoqoaDio3" async defer></script> <link href="https://cdnjs.cloudflare.com/ajax/libs/prism/1.29.0/themes/prism-tomorrow.min.css" rel="stylesheet" type="text/css" media="screen" /> </body> </html> <!-- 9c1e499c-971d-5242-84e1-d7d9baa83c40 -->