Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can access very accurate geolocate info from Google Analytics, but is there any way to access the geolocate information of Google or otherwise for an IP address, from a computer program, like a web ervice or something? I know there is "whois" but I would like something a little less hassle.

share|improve this question
Obligatory XKCD link: xkcd.com/713 – Mark Henderson Jul 9 '10 at 0:56

One of the best options I have found for doing this is MaxMind city GeoIP data. They have an API and a free lite version you can get started with as well.

share|improve this answer

There's http://www.geobytes.com/IpLocator.htm which gives 20 IP lookups / hour. Generally IP lookups are not so accurate (they map to the ISP), and most HTML5-capable browsers can read the location.

share|improve this answer
When I used this service, if the site owner forgot to pay for more look-ups, it would interject a page of their choosing every so often. To me, that was much much worse than just not working. – MrChrister Jul 13 '10 at 1:00
Well a site-owner has to gauge how many requests will be needed, and pay for extra request as needed. However that is pretty bad. – adamcodes Jul 13 '10 at 13:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.