{"id":7782,"date":"2020-11-03T17:14:12","date_gmt":"2020-11-03T12:14:12","guid":{"rendered":"https:\/\/thedevcouple.com\/?p=7782"},"modified":"2020-11-03T17:46:37","modified_gmt":"2020-11-03T12:46:37","slug":"ipwhois-get-user-location-data-in-an-instant","status":"publish","type":"post","link":"https:\/\/thedevcouple.com\/ipwhois-get-user-location-data-in-an-instant\/","title":{"rendered":"IPWhoIs.io Review \u2013\u00a0Get User Location Data In An Instant"},"content":{"rendered":"<p><span style=\"font-weight: 400;\">It is extremely important for some developers to know from which part of the world people are accessing their products. The products might be a course platform that provides discount depending upon the visitor\u2019s location. It can also be a region-restricted website.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">There are a lot of products in the market that provides you the location data of your visitor. One of them is the <\/span><a href=\"https:\/\/ipwhois.io\/\" rel=\"nofollow noopener\" target=\"_blank\"><span style=\"font-weight: 400;\">ipwhois.io<\/span><\/a><span style=\"font-weight: 400;\"> that not only provides you the geolocation information but also the timezone, currency information, and then some.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Today, I am also going to show you how you can use the <\/span><a href=\"https:\/\/ipwhois.io\/\" rel=\"nofollow noopener\" target=\"_blank\"><span style=\"font-weight: 400;\">ipwhois.io<\/span><\/a><span style=\"font-weight: 400;\"> to get the information you require. Also, I am going to test its performance and discuss its features along with a couple of other things. So without any further ado, let\u2019s jump in!<\/span><\/p>\n<div class=\"eckosc eckosc_full_width_block\">\n<p><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-7784\" src=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-cover-thedevcouple-scaled.jpg\" alt=\"Ipwhois.io Cover Thedevcouple\" width=\"2560\" height=\"1708\" srcset=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-cover-thedevcouple-scaled.jpg 2560w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-cover-thedevcouple-300x200.jpg 300w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-cover-thedevcouple-1024x683.jpg 1024w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-cover-thedevcouple-768x512.jpg 768w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-cover-thedevcouple-1536x1025.jpg 1536w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-cover-thedevcouple-2048x1366.jpg 2048w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-cover-thedevcouple-1920x1281.jpg 1920w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-cover-thedevcouple-1680x1121.jpg 1680w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-cover-thedevcouple-1240x827.jpg 1240w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-cover-thedevcouple-860x574.jpg 860w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-cover-thedevcouple-680x454.jpg 680w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-cover-thedevcouple-500x334.jpg 500w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-cover-thedevcouple-400x267.jpg 400w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-cover-thedevcouple-250x167.jpg 250w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-cover-thedevcouple-200x133.jpg 200w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-cover-thedevcouple-100x67.jpg 100w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-cover-thedevcouple-76x51.jpg 76w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-cover-thedevcouple-50x33.jpg 50w\" sizes=\"(max-width: 2560px) 100vw, 2560px\" \/><\/p>\n<\/div>\n<h2><span style=\"font-weight: 400;\">IPWhoIs.io<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">As I said earlier, it is a geolocation API. It provides you the location data of your website\u2019s visitor. You can also get information about a particular IP address with this API.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">When you make the API call to <a href=\"https:\/\/ipwhois.io\/\" rel=\"nofollow noopener\" target=\"_blank\">ipwhois.io<\/a>, you have the option to get receive information in one of the three formats. These formats include JSON, XML, and Newline. You need to specify your format of choice in the API URL.<\/span><\/p>\n<div class=\"eckosc eckosc_full_width_block\">\n<p><a href=\"https:\/\/ipwhois.io\/\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-7785\" src=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-landing-page-thedevcouple.jpg\" alt=\"Ipwhois.io Landing Page Thedevcouple\" width=\"1440\" height=\"811\" srcset=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-landing-page-thedevcouple.jpg 1440w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-landing-page-thedevcouple-300x169.jpg 300w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-landing-page-thedevcouple-1024x577.jpg 1024w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-landing-page-thedevcouple-768x433.jpg 768w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-landing-page-thedevcouple-1240x698.jpg 1240w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-landing-page-thedevcouple-860x484.jpg 860w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-landing-page-thedevcouple-680x383.jpg 680w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-landing-page-thedevcouple-500x282.jpg 500w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-landing-page-thedevcouple-400x225.jpg 400w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-landing-page-thedevcouple-250x141.jpg 250w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-landing-page-thedevcouple-200x113.jpg 200w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-landing-page-thedevcouple-100x56.jpg 100w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-landing-page-thedevcouple-76x43.jpg 76w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-landing-page-thedevcouple-50x28.jpg 50w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/a><\/p>\n<\/div>\n<h2><span style=\"font-weight: 400;\">Experimenting With The API<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Now I am going to show you how this API works and how you can use it to get the geolocation data. Just follow the steps below and you will be alright.<\/span><\/p>\n<h3><span style=\"font-weight: 400;\">\u2192 Step #1<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">We need the API first. So for that, head over to the <\/span><a href=\"https:\/\/ipwhois.io\/\" rel=\"nofollow noopener\" target=\"_blank\"><span style=\"font-weight: 400;\">ipwhois.io<\/span><\/a><span style=\"font-weight: 400;\"> website, and then from there, the documentation page. Now scroll down and in the example section, you will see an API endpoint. Go ahead and copy it. <\/span><\/p>\n<div class=\"eckosc eckosc_full_width_block\">\n<p><a href=\"https:\/\/ipwhois.io\/documentation\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-7787\" src=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-api-thedevcouple.jpg\" alt=\"Ipwhois.io Api Thedevcouple\" width=\"1440\" height=\"811\" srcset=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-api-thedevcouple.jpg 1440w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-api-thedevcouple-300x169.jpg 300w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-api-thedevcouple-1024x577.jpg 1024w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-api-thedevcouple-768x433.jpg 768w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-api-thedevcouple-1240x698.jpg 1240w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-api-thedevcouple-860x484.jpg 860w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-api-thedevcouple-680x383.jpg 680w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-api-thedevcouple-500x282.jpg 500w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-api-thedevcouple-400x225.jpg 400w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-api-thedevcouple-250x141.jpg 250w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-api-thedevcouple-200x113.jpg 200w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-api-thedevcouple-100x56.jpg 100w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-api-thedevcouple-76x43.jpg 76w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-api-thedevcouple-50x28.jpg 50w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/a><\/p>\n<\/div>\n<h3><span style=\"font-weight: 400;\">\u2192 Step #2<\/span><\/h3>\n<p><span style=\"font-weight: 400;\">I am going to use JavaScript specifically Node.js to make the API call. I am going to write a simple program that will hit the API and log the results on the console. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">I am not going to provide the API any IP address so it can detect where I am coming from automatically. Just copy-paste the following code inside a JavaScript file and run it using <\/span><b><i>node yourfile.js<\/i><\/b><span style=\"font-weight: 400;\">. I have also added the response I received in the gist below.<\/span><\/p>\n<pre class=\"eckosc_syntax eckosc_syntax_theme_dark\"><code data-language=\"javascript\">\nconst axios = require('axios');\n\n\/\/ Fetch IP Who Is data.\naxios\n  .get('http:\/\/ipwhois.app\/json\/')\n  .then(({ data }) =&gt; console.log(data))\n\n\n\/\/ Sample Response:\n{\n  \"ip\": \"8.8.4.4\",\n  \"success\": true,\n  \"type\": \"IPv4\",\n  \"continent\": \"North America\",\n  \"continent_code\": \"NA\",\n  \"country\": \"United States\",\n  \"country_code\": \"US\",\n  \"country_flag\": \"https:\/\/cdn.ipwhois.io\/flags\/us.svg\",\n  \"country_capital\": \"Washington\",\n  \"country_phone\": \"+1\",\n  \"country_neighbours\": \"CA,MX,CU\",\n  \"region\": \"New Jersey\",\n  \"city\": \"Newark\",\n  \"latitude\": 40.735657,\n  \"longitude\": -74.1723667,\n  \"asn\": \"AS15169\",\n  \"org\": \"Google LLC\",\n  \"isp\": \"Google LLC\",\n  \"timezone\": \"America\/New_York\",\n  \"timezone_name\": \"Eastern Standard Time\",\n  \"timezone_dstOffset\": 0,\n  \"timezone_gmtOffset\": -18000,\n  \"timezone_gmt\": \"GMT -5:00\",\n  \"currency\": \"US Dollar\",\n  \"currency_code\": \"USD\",\n  \"currency_symbol\": \"$\",\n  \"currency_rates\": 1,\n  \"currency_plural\": \"US dollars\",\n  \"completed_requests\": 0\n}\n<\/code><\/pre>\n<h2><span style=\"font-weight: 400;\">API Features<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">I get a lot of information back when I hit the API. Since I didn\u2019t provide any IP address, all of the information is related to where I am right now. Let\u2019s take a look at some of the information it provided us in detail:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><strong>\ud83c\udfaf IP:<\/strong> The first thing I received was my IP address. The <a href=\"https:\/\/ipwhois.io\/\" rel=\"nofollow noopener\" target=\"_blank\">ipwhois.io<\/a> API fetched my IP address while making the API call. P.S. I&#8217;ve changed the IP to something random.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\ud83d\udc4d <strong>Success:<\/strong> It is the status of whether my API request is a success or not. Since I was able to hit the API, it gave me back true as its value. <\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\ud83d\udca5 <strong>Type:<\/strong> The API provided me the type of my IP address that is Internet Protocol Version 4 (IPv4). <\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\ud83c\udf0d <strong>Continent:<\/strong> It is the continent I am currently on while making the API call. Since I am in Pakistan, I got Asia in this field. If you are from Europe, you will see Europe here.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\ud83d\udca1 <strong>Continent Code:<\/strong> Every continent is assigned a two letter unique continent code. You get the code according to the continent you are living in at the moment.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\ud83c\udf10 <strong>Country:<\/strong> This is the country you are currently living in while making this API call. If you are living in Japan, you will see Japan here.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><strong>\ud83d\ude9d Country Code:<\/strong> This is the two-letter country that is assigned to every country in the world. <\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\ud83c\uddfa\ud83c\uddf8 <strong>Country Flag:<\/strong> This is a URL to an SVG of your country flag. You can place it directly inside an image tag and it will render the flag on your app.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\ud83d\ude80 Country Capital: This is self-explanatory. It is the capital of the country you are living in.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\ud83d\udcde Country Phone: This is the country phone code that you use while making international calls. <\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\">\ud83c\udf0d Country Neighbors: This field includes all the countries surrounding the country you are living in while making the API call. The countries are not mentioned by their names but with their country code.<\/span><\/li>\n<li style=\"font-weight: 400;\"><span style=\"font-weight: 400;\"><strong>\ud83c\udf10 <\/strong>Region: Now the API is narrowing down the search. In this field, you will see the country region you are in currently.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400;\">These are some of the features that this API provides.<\/span><\/p>\n<h2><span style=\"font-weight: 400;\">\ud83d\udcb0 Pricing<\/span><\/h2>\n<p><span style=\"font-weight: 400;\"><a href=\"https:\/\/ipwhois.io\/\" rel=\"nofollow noopener\" target=\"_blank\">ipwhois.io<\/a> currently provides three paid plans and one free plan. With a free plan, you get up to 10,000 requests per month. <\/span><\/p>\n<p><span style=\"font-weight: 400;\">The three paid plans are <\/span><b>Pro<\/b><span style=\"font-weight: 400;\">, <\/span><b>Business<\/b><span style=\"font-weight: 400;\">, and <\/span><b>Platinum<\/b><span style=\"font-weight: 400;\">. As you upgrade your plan, you get more and more API requests per month. For instance, with the Platinum plan, you get almost 10 million requests per month.<\/span><\/p>\n<div class=\"eckosc eckosc_full_width_block\">\n<p><a href=\"https:\/\/ipwhois.io\/pricing\" rel=\"nofollow noopener\" target=\"_blank\"><img decoding=\"async\" loading=\"lazy\" class=\"alignnone size-full wp-image-7786\" src=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-pricing.jpg\" alt=\"Ipwhois.io Pricing\" width=\"1440\" height=\"811\" srcset=\"https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-pricing.jpg 1440w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-pricing-300x169.jpg 300w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-pricing-1024x577.jpg 1024w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-pricing-768x433.jpg 768w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-pricing-1240x698.jpg 1240w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-pricing-860x484.jpg 860w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-pricing-680x383.jpg 680w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-pricing-500x282.jpg 500w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-pricing-400x225.jpg 400w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-pricing-250x141.jpg 250w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-pricing-200x113.jpg 200w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-pricing-100x56.jpg 100w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-pricing-76x43.jpg 76w, https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ipwhois.io-pricing-50x28.jpg 50w\" sizes=\"(max-width: 1440px) 100vw, 1440px\" \/><\/a><\/p>\n<\/div>\n<h2><span style=\"font-weight: 400;\">\ud83d\ude4c Wrapping Up<\/span><\/h2>\n<p><span style=\"font-weight: 400;\">If you are in the market for a geolocation API, I would recommend that you should give <a href=\"https:\/\/ipwhois.io\/\" rel=\"nofollow noopener\" target=\"_blank\">ipwhois.io<\/a> a shot. You can try it for free before buying any of its plans. And try it out and see if it is what you are looking for in your product.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">It provides you a detailed location data of any IP address. <\/span>You can use it to get all sorts of information about your visitor including the timezone and the city they are living in.<\/p>\n<p><i><span style=\"font-weight: 400;\">Have you used ipwhois.io or any similar service to get the user&#8217;s geolocation data? Which service did you use and how was your experience? Let us know your thoughts in the comments section below.<\/span><\/i><\/p>\n","protected":false},"excerpt":{"rendered":"<p>There are a lot of products in the market that provides you the location data of your visitor. One of them is the ipwhois.io that not only provides you the geolocation information but also the timezone, currency information, and then some.<\/p>\n","protected":false},"author":9,"featured_media":7789,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":""},"categories":[18],"tags":[224,246],"coauthors":[214],"jetpack_featured_media_url":"https:\/\/thedevcouple.com\/wp-content\/uploads\/2020\/11\/ayrus-hill-2fsDwu5Zza4-unsplash-scaled.jpg","amp_enabled":true,"_links":{"self":[{"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/posts\/7782"}],"collection":[{"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/comments?post=7782"}],"version-history":[{"count":5,"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/posts\/7782\/revisions"}],"predecessor-version":[{"id":7797,"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/posts\/7782\/revisions\/7797"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/media\/7789"}],"wp:attachment":[{"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/media?parent=7782"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/categories?post=7782"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/tags?post=7782"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/thedevcouple.com\/api\/wp\/v2\/coauthors?post=7782"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}