IP to location APIs

Convert IP address to city and/or longitude+latitude

This is a free tool for finding IP address geo location. The database is very accurate and contains the following items: Country (code/name), Region (code/name), City, Zip Code, Latitude, Longitude
CSV, HTTP-GET, JSON, REST, XML
Find the latitude & longitude of any US address
CSV, HTTP-GET, REST, SOAP, XML-RPC
This is an easy HTTP oriented API to locate IP addresses and Geocode them. If you don't supply the "?ip=aa.bb.cc.dd" bit, then the ip address lookup of the calling machine will be located instead (here, the aa,bb,cc,dd are decimal digits). If you add &position=true to ...
HTTP-GET
The API returns the location of an IP address (country, region, city, zipcode, latitude, longitude) and the associated timezone in XML format. You can find below code samples with PHP, Javascript, Ruby, Python and ASP.
API, HTTP-GET, JSON, REST, XML
Takes IP address, gives Country
HTTP-GET, SOAP, XML