You can retrieve your public IP using the HTTP API exposed by this service like so:
curl https://whatsmyip.dev/api/ip
The response format is a JSON Object containing your IP Address, User Agent, and a milliseconds since epoch timestamp:
{
"addr": "1.2.3.4",
"ua": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36"
"ts": 1551659039521
}
This API and website is a casual side-project, so don't expect five nines of reliability! Uptime will be tied to Zeit's Now platform status.
These results are stored in your browser's cache - not on a server. This service doesn't store or collect any information 🕵️🕵♀️
Date | IP |
---|