IP to location APIs

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.
  • API
  • HTTP-GET
  • JSON
  • REST

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

Listed on Free Web Services

ipify.org
ipify

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.

Did it work for you?

Tell us what you found when you tried ipify.