Free IP Geolocation API

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

freegeoip.app provides a free IP gelocation API for software developers. 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.


If you enjoy using this site, please consider donating to keep this site free:
BTC bc1qymgp5855yaxtqa3w4d60393chmfwa809j9u9ns

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