The previously featured checkip.mypapit.net has been upgrade to JSON. You just need to add /json parameter to get ip address and country code in json format.
http://checkip.mypapit.net/json/
Check http://checkip.mypapit.net/json/ now
As always you can also access the website using ‘cURL’, ‘wget’ or any programming language which supports .json.