what-ip.heroku.com simple yet complete API will let your applications know everything about an IP address, from hostname to its geolocation. It is available through HTTP GET requests, free and unlimited.
- Caller (your) IP in JSON: /host.json
- Caller (your) IP in XML: /host.xml
- Caller (your) IP in plain text: /host.txt