ipify
by ipify.org
IP to location APIs
Added on October 31st, 2026
Checked and working on November 15th, 2026
Visit ipify.org →
What it does
ipify returns the public IP address of whoever calls it, as plain text, JSON or JSONP, over IPv4 or IPv6. Handy for scripts, dynamic DNS clients and apps that need to know their own public address. Free and open source, no key and no usage limit.
At a glance
- API key
- Not needed · More APIs with no key
- Pricing
- Free and open source, no key and no usage limit.
- From the browser
- Yes (CORS)
- Formats
- JSON
- Interface
- REST, HTTP-GET
- Provider
- ipify.org
- Last checked
- Working on November 15th, 2026
More information: https://www.ipify.org/
Is this your service? Show that it is listed
Put this badge on your website or in your README; it links to this page. About the badge
Example request
curl
curl 'https://api.ipify.org?format=json'
JavaScript
const response = await fetch("https://api.ipify.org?format=json");
const data = await response.json();
console.log(data);
Python
import requests
response = requests.get(
"https://api.ipify.org?format=json",
timeout=30,
)
print(response.json())
The JavaScript works in a web page as well as in Node.js 18 or newer.