myip.addr.tools - get your external IP address
$ curl myip.addr.tools 2001:db8::1000
$ curl myipv4.addr.tools 192.0.2.10
$ curl myipv6.addr.tools 2001:db8::1000
$ curl myip.addr.tools/?format=json {"ip":"2001:db8::1000"}
Returns your IP address. That's it.
By default, your IP is returned with a trailing newline character. Change this by specifying a format:
format=plain | no trailing newline |
format=json | a JSON object |
format=json&key=foo | a JSON object with custom key |
format=pfsense | a pfSense IP Check Service |