Project closed

API: data in JSON- and JSONP format

There was the possibility to insert JavaScript (which contained an object with different parameters based on user's IP address) into projects. Now you can get these data in JSON- and JSONP format.

Data returned from API, based on the client's IP address:

  • latitude - the latitude of the country
  • longitude - the length of the country
  • zoom — the degree of approximation for maps based on Google Maps
  • — the city (not available now)
  • — the country
  • address.country_code — the country code according to ISO 3166-1
  • address.region — the region (not available now)


The query format:
The answer looks like:


The query format:

YourFunctionHere - your name for the function

The answer looks like:

Example of use with JQuery:
 function(data) {
As for the JavaScript version, there are no restrictions on the number of queries.