5 Free IP Geolocation API to Get Location details of an IP Address

0 Comments
Editor Ratings:
User Ratings:
[Total: 0 Average: 0]




In this post, I have compiled a list of 5 Free IP geolocation API to get location details of an IP address. Using these APIs, you can lookup a single or multiple IP addresses to query their location right from your applications or websites. Or, you can use these API to make calls from the command line or from browser and get the result. These APIs mainly return JSON, XML, CSV response in which you can see a lot of details about the location of IP address that you have queried. In the response, you can see location details like country, city, ZIP code, time zones, flag image URL, latitude, longitude, country code, region code, and many more.

In the following list of geolocation APIs, most of them are free and you can use them without any sign up. Also, in some of these APIs, you will have to create an account to get an API key that will be used to make API calls. After getting the API key and API endpoint, you just have to construct the API call URL and use it. You can use your browser, cURL from command line or a code snippet to make API calls. You will immediately get the API response that you can save or parse it in other form.

Free IP Geolocation API to Get Location details of an IP Address

5 Free IP Geolocation API to Get Location details of an IP Address:

IPStack

IPStack free geolocation API in action

IPStack provides one of the best free IP geolocation API for you to use. In the free version, it lets you make 10,000 calls per month for IP location lookup. You just have to construct the API URL and then you can use that in the browser. It supports IPv4 as well IPv6 addresses to show you the location data. It can return the JSON or XML response as per specified in the API call. In the response, you can see a lot of location details about an IP address like country, country code, capital, city, zip code, time zone, country flag, longitude, latitude, continent name, language, and some others. You can copy the response and then use it wherever you want.

It is very simple to use this API. You will just have to register on the websites and get the API key. And when you have the API key, you can construct the API call URL like this.

http://api.ipstack.com/”IPtoLookup“?access_key=”YourAPIKey

Example: http://api.ipstack.com/49.207.96.46?access_key=3af2cxxxxxxxxxxx5e641a700

You can run the above URL in the browser and then see the corresponding response. Apart from the API key and the IP address, you can also specify other parameters as well. For example, to get the response in XML format, you can add “?output=xml” in the URL. To see the list of other supported parameters, you can see the documentation page of this website using the above URL.

IP-API

Ip-API free ip geolocation Api

IP-API is a free IP geolocation API that you can use to query an IP address. This API doesn’t require a key to work. You can use this API for free from your browser or terminal. However, the only limitation is that you are allowed to make maximum 150 requests per minute. If you abuse the API, then the server will ban your IP. It can return the API response in JSON, XML, and even in CSV format. And in the response, you can see the location details like status, country, country code, region, region name, ZIP, longitude, latitude, and some others. You can get these details in any of the specified formats and use them wherever you like.

As I have mentioned that this is a free API and you don’t have to sign up. So, you can start making the API call URL right away. Use the following syntax to construct the API call and then you can use this in the browser to see the corresponding response.

Format: http://ip-api.com/”ResponseFormat“/”IP

Example: http://ip-api.com/json/208.80.152.201

You can see the screenshot above to see how this API produces the response to an API request call. You can see the different location detail parameters that this API produces.

Free GeoIp API by Nekudo

Geoip api by Nekudo free

Free GeoIp API by Nekudo is an open source IP geolocation API that you can use for free without creating an account. But if you abuse the API, then your IP will get blocked. There is no limit on maximum or minimum requests. It can only return the response in JSON format and it supports IPv4 and IPv6 addresses too. In the API response, you can see the details like country, country code, city, ISP, latitude, longitude, timezone, ZIP, and some others. You can use this API in your web applications as well as it supports JSONP responses as well. If you have knowledge of JavaScript, then you can use that.

As this API is free, you can start using it right away. Just from the API call URL and then use it anywhere you want. Below is the example and syntax to see how to use this API.

API Request Format: http://geoip.nekudo.com/api/”IP

Example: http://geoip.nekudo.com/api/87.79.99.25/

The above API call will return a JSON response with essential information only. If you want to see a very detailed information, then just add “/full” at the end of the above URL. You will see the details of the JSON response about the location, details of the specified IP address.

One good thing about this API is that it is open source. So, even if the main website goes down, you can set up your own instance of this service. The source code of this service is available on GitHub.

eXTReMe-IP-Lookup

eXTReMe-IP-Lookup Free API

eXTReMe-IP-Lookup is another free service that provides a free IP geolocation API that you can use in your applications and website. It can return the response in JSON and CSV formats and you can see the location details like city, continent, country, country code, ip type, status, ISP, region, and many others. The API that it offers doesn’t require an API key and you can easily use it to see the location of IP address. However, to prevent server from abuse, it limits the API requests to 200(max) per minute. It gives pre ready code snippets for some programming languages as well like Python, Node.js, PHP, etc.

As I have already mentioned there is no need for an API key to start using this API. Use the below syntax to create the API call URL and use it in your browser to see the response immediately.

Syntax: extreme-ip-lookup.com/json/”IP

Example: extreme-ip-lookup.com/json/63.70.164.200

Paste the above URL in the browser and you will see a JSON response with location data like I have shown in the screenshot above. And if you want to get the response in CSV, then simply change “json” parameters in the URL to “csv”.

Neutrino API

Neutrino API Free in action

Neutrino API is the last free geolocation API in my list that you can try out. However, it is very limited than the other APIs that I have already mentioned above. In the free plan, you can make 25 requests per day to query the location of any IP address. It supports both IPv4 and IPv6 addresses and it returns the JSON or XML response. In the API response, you can see the details like country name, country code, continent code, hostname, longitude, latitude, region, city, and some others. You can see all these details and save them if you want.

To make this API work, you will need to sign up for this service and get your API key. After getting the API key, you can start using this API as I have mentioned below. You can use the above URL to sign up and get the API key.

API URL: https://neutrinoapi.com/ip-info?user-id=”UserID“&api-key=”YourAPIKey“&ip=”IP

Example: https://neutrinoapi.com/ip-info?user-id=Test11&api-key=Senjxxxxxxxxxd1&ip=49.207.96.46

Use this API like this and then you can use the API call URL in the browser and see the response. And if you want to get the XML data in the output, then you can do that. Also apart from geolocation API, you can use other services that this service offers.

Similar posts:

Final words

These are the best free IP geolocation APIs that you can try to easily get the location information about any IP. And some of these APIs even support IPv4 and IPv6 address to get the response. Also, some of these APIs work through an API key and some work without it. So, if you are looking for some free geolocation APIs, then you can try any service that I have mentioned above.

Editor Ratings:
User Ratings:
[Total: 0 Average: 0]
Free/Paid: Free

Leave A Reply

 

Get 100 GB FREE

Provide details to get this offer