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.145.44.22
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.145.44.22