Simple cURL API! $ curl ifconfig.io 192.0.2.100 $ curl ifconfig.io/ip 192.0.2.100 $ curl ifconfig.io/host www.example.com. $ curl ifconfig.io/country_code JP $ curl ifconfig.io/ua Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:38.0) Gecko/20100101 Firefox/38.0 $ curl ifconfig.io/port 37038 $ curl ifconfig.io/lang en-US,en;q=0.5 $ curl ifconfig.io/encoding gzip $ curl ifconfig.io/mime text/html,ap