API

Public IP address. JSON. No bullshit.

Endpoints

GET https://ipv4.whats-my-ip.net/
GET https://ipv6.whats-my-ip.net/

Response

{
  "ip": "203.0.113.42",
  "version": 4
}

Use it

const response = await fetch("https://ipv4.whats-my-ip.net/");
const data = await response.json();

console.log(data.ip);

Rules

No key required. Use it from your app, script, browser, or terminal.

No ads, no analytics, no tracking. Be reasonable with request volume.

IPv4 endpoint has only an A record. IPv6 endpoint has only an AAAA record.

Back to IP check