Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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
1  
Obligatory XKCD link: xkcd.com/713 –  Mark Henderson Jul 9 '10 at 0:56
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

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