The API returns the location of an IP address (country, region, city, zipcode, latitude, longitude) and the associated timezone in XML, JSON or plain text format. You can find the sample codes below with PHP, Javascript, Ruby, Python and ASP. If you use our API to track your website visitors geolocation, we highly recommend that you put the geolocation data in a cookie or in a database.