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
18.97.9.169
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
18.97.9.169