Great news! To offer you an even better free service, freegeoip.tech has added support for IPv6 at no extra cost.

About

freegeoip.tech provides a public HTTP API for software developers to search the geolocation of IP addresses. It uses a database of IP addresses that are associated to cities along with other relevant information like time zone, latitude and longitude.

You're allowed up to 80,000 queries per hour by default. Once this limit is reached, all of your requests will result in HTTP 403, forbidden, until your quota is cleared.

The freegeoip web server is free and open source.


Example

IP 161.185.160.93
Country United States
Region New York
City New York
Zip/Postal code 10036
Lat/Long 40.7142, -74.0119
Metro code
Time zone Eastern Time

API

The HTTP API takes GET requests in the following schema:

freegeoip.tech/{format}/{IP_or_hostname}

Supported formats are: csv, xml, json and jsonp.


Examples
CSV
freegeoip.tech/csv/8.8.8.8
XML
freegeoip.tech/xml/4.2.2.2
JSON
freegeoip.tech/json/github.com
Make it JSONP by adding the callback argument to the request.