API:
curl doapi.us/ip will return your ip.
curl doapi.us/ip
curl doapi.us/ip/myip will return the geolocation of your ip.
curl doapi.us/ip/myip
curl doapi.us/ip/1.2.3.4 will return the geolocation of ip 1.2.3.4.
curl doapi.us/ip/1.2.3.4
curl doapi.us/ip/1.2.3.4/json will return the geolocation info (JSON format) of ip 1.2.3.4.
curl doapi.us/ip/1.2.3.4/json