I prefer ipinfo.io
You can even lookup info for other up addresses. E.g. https://ipinfo.io/1.1.1.1
replies(2):
You can even lookup info for other up addresses. E.g. https://ipinfo.io/1.1.1.1
And JSON: https://ifconfig.co/json?ip=1.2.3.4
PS C:\> irm ipinfo.io
PS C:\> $x = irm ipinfo.io
PS C:\> $x.timezone
Europe/London
Personally, I use http://checkip.dyndns.org/ by habit, with its one-line return.Your example doesn't work. It needs to be:
irm ipinfo.io/json
Your other example can be get like this: irm http://checkip.dyndns.org | % HTML | % body