About

freegeoip.live provides a public HTTP(S) 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 10,000 queries per hour for one IP address. Once this limit is reached, all of your requests will result in HTTP 403, forbidden, until your quota is cleared.



Searching, please wait...

Server returned {{error}}

{{rateLimit.remaining}} calls remaining, resets in {{rateLimit.expires}}
IP database date: {{lastUpdated}}
IP {{record.ip}}
Country {{record.country_name}}
Region {{record.region_name}}
City {{record.city}}
Zip/Postal code {{record.zip_code}}
Lat/Long {{record.latitude}}, {{record.longitude}}
Metro code {{record.metro_code||''}}
Time zone {{record.time_zone}}

Is it really free?

Yes. It's totally free. We believe that digital businesses need to get such kind of service for free. Many services are selling Geoip API as a service, but we think that it should be totally free. Feel free to use our API as much as you want without any limit other than 10,000 queries per hour for one IP address. Contact us at [email protected] for any kind of inquiry or feedback.


API

The HTTP API takes GET requests in the following schema:

freegeoip.live/{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
CSV
freegeoip.live/csv/8.8.8.8
XML
freegeoip.live/xml/4.2.2.2
JSON
freegeoip.live/json/github.com
Make it JSONP by adding the callback argument to the request.