curl http://checkip.amazonaws.com

because:

- it returns just the plaintext IP, nothing else
- it is from a well known provider which is unlikely to go offline anytime soon