freegeoip.app

Your IP: {{ ip }}
Country: {{ country_name }}
Latitude: {{ latitude }}
Longitude: {{ longitude }}

freegeoip.app 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 15,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 HTTP API takes GET requests in the following schema:

https://freegeoip.app/{format}/{IP_or_hostname}

Supported formats are: csv, xml, json and jsonp. If no IP or hostname is provided, then your own IP is looked up.


Examples

JSON: https://freegeoip.app/json/

JSON w/ Callback: https://freegeoip.app/json/8.8.8.8?callback=test

CSV: https://freegeoip.app/csv

XML: https://freegeoip.app/xml/

Code Sample for JSON