About

DEFINITION GeoIP 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.


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}}

API

The HTTP API takes GET requests in the following schema:

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