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.

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

2 Answers

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.

link|improve this answer
feedback

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.

link|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
feedback

Your Answer

 
or
required, but never shown