Next Phenomenal Microbrewery


    1.0.0 • Public • Published

    IP Geolcation API JQuery


    IP Geolocation API provides country, city, region, local currency, latitude and longitude, company detail, ISP lookup, country calling code, timezone, country neighbours, country flag, country capital and much more from any IPv4 and IPv6 address in Newline, JSON and XML format over HTTPS. This document provides important information to help you get up to speed with IP Location API using IP Geolocation API JQuery SDK.

    Quick Start Guide

    You can call the API by sending HTTP GET requests to{IP}

    {IP} can be an IPv4 or IPv6 address, or none to use the current IP address.

    Note: Complete documentation to use this API is also available at IP Geolocation API Documentation.

    System Requirements

    Internet connection is required to run this component.

    Basic Usage

    Call method request_ipwhois($ip, $lang) passing IP address or none to use the current IP address as parameters (rest of the parameters are optional) and it will return the Geolocation for the passed IP address. To customize the geolocation response, you can pass the other parameters to request_ipwhois() method as described below:

    • $lang

      Pass the language parameter to get the geolocation information in a language other than English. By default, it is set to English language.
      ipwhois provides response in the following languages:
      • en - English (default)
      • de - Deutsch (German)
      • es - Español (Spanish)
      • pt-BR - Español - Argentina (Spanish)
      • fr - Français (French)
      • ja - 日本語 (Japanese)
      • zh-CN - 中国 (Chinese)
      • ru - Русский (Russian)


    CDN Link

    Add the following script in your HTML page:

    <script src=""></script>


    Here is a sample code to use IP Geolocation API using JQuery SDK:

    <script src=""></script>
    <script src=""></script>
        $(document).ready(function() {
            var ipaddress = "";
            var ipwhois = request_ipwhois(ipaddress);
            alert("Country: " +;
            alert("City: " +;
            alert("Region: " + ipwhois.region);


    npm i ip-geolocation-api-jquery


    DownloadsWeekly Downloads






    Unpacked Size

    3.79 kB

    Total Files


    Last publish


    • ipwhoisio