ip.dance is now easy with curl.
You can cURL https://ip.dance/ with a curl user-agent and get your ip address returned as the only content
curl https://ip.dance
3.22.241.139
You can cURL https://ip.dance/ with a curl user-agent and get your ip address returned as the only content
curl https://ip.dance
3.22.241.139