ipify
Your public IP as JSON. One job, done perfectly.
ipify returns the caller’s public IP address. That is the entire API — which is exactly why it appears in half the networking tutorials ever written. Unlimited, CORS-open, commercial-friendly, and in five years of community memory it has effectively never been down.
GET https://api.ipify.org/?format=json
{
"ip": "154.160.1.24"
}curl "https://api.ipify.org/?format=json"const res = await fetch("https://api.ipify.org/?format=json");
const data = await res.json();
console.log(data);import requests
res = requests.get("https://api.ipify.org/?format=json")
print(res.json())/?format=jsonPROBEDYour public IPv4 or IPv6 address as JSON.
/?format=json&callback=getIPJSONP variant for legacy browser scripts.
We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.
Stable. No schema drift observed since monitoring began — the response shape has not changed under our checks.
ipify: common questions
Is ipify free to use?
Yes — ipify is a free developer tools API. Free tier: Unlimited. Commercial use is allowed on the free tier.
Does ipify need an API key?
No — ipify needs no API key or signup. You can call it straight away; rate limits still apply (None).
Can I call ipify from the browser?
Yes — ipify returns CORS headers over HTTPS, so front-end code can fetch it directly with no backend proxy. Use the fetch snippet on this page, or hit "Run live" to try it now.
Is ipify up right now?
As of our last scheduled check, ipify is healthy. We re-probe it every sweep — the status badge and uptime chart above always show the latest.