GET https://myip.muathye.com/ip - Plain IP address
GET https://myip.muathye.com/json - Full JSON response
GET https://myip.muathye.com/full - Detailed text response
# Get IP in terminal
curl https://myip.muathye.com/ip
# Get full JSON
curl https://myip.muathye.com/json | jq .
# Get only IP in bash script
MY_IP=$(curl -s https://myip.muathye.com/ip)
echo "My IP is: $MY_IP"