hostip.info API

hostip.info
Hostip.info is a community-based project to geolocate IP addresses, making the database freely available but it needs you to put in your city to make it work. Available as a Firefox plug-in, or embeddable in your website.