BYTETOOLS

ipify API

ipify is a free, unlimited API that returns your public IP address as text, JSON or JSONP. No key, no rate limit, IPv4 and IPv6 endpoints. Live curl example.

No API key requiredCORS enabledHTTPSFree tier

Endpoint tested and returned HTTP 200 on 19 Aug 2026

What is the ipify API?

ipify is a free API that returns the public IP address of whoever calls it. It requires no API key, imposes no rate limit, and can respond in plain text, JSON or JSONP depending on the format parameter.

ipify does exactly one thing and does it without conditions: it tells you the public IP address the request came from. There is no key, no quota and no signup, and the service has run reliably for over a decade, which is why it appears in so many deployment scripts and health checks.

Because it reflects the address the server actually saw, it is the standard way to discover the outbound IP of a machine sitting behind NAT, a container network or a cloud load balancer — something the machine itself cannot determine locally.

Quick facts

Base URL
https://api.ipify.org
Authentication
No key and no registration.
Rate limit
None published. The service explicitly advertises no rate limiting.
Pricing
Free and unlimited, including commercial use.
CORS
Enabled — callable directly from browser JavaScript
Official docs
Read the docs

How to use the ipify API

Every request below was executed against the live API on 19 Aug 2026, and the response shown is the real body it returned — not an illustration.

1. Get the caller's public IP as JSON

GET https://api.ipify.org?format=json

curl
curl 'https://api.ipify.org?format=json'
JavaScript (fetch)
const res = await fetch("https://api.ipify.org?format=json");
if (!res.ok) throw new Error(`Request failed: ${res.status}`);
const data = await res.json();
console.log(data);
Python (requests)
import requests

res = requests.get("https://api.ipify.org?format=json", timeout=20)
res.raise_for_status()
print(res.json())
Response — HTTP 200
{
  "ip": "119.155.18.184"
}

Parameters

ParameterTypeRequiredDescription
formatstringOptional`json` or `jsonp`. Omit entirely for plain text. json
callbackstringOptionalCallback function name, used only with `format=jsonp`. getIP

Response fields

ipstring
The public IP address of the caller. Plain text mode returns this bare, with no JSON wrapper.

What you can build with the ipify API

  • Discover a server's outbound IP from inside a container or behind NAT
  • Add the current IP to a firewall or database allowlist from a deploy script
  • Show users their own IP on a network diagnostics page
  • Detect whether a VPN or proxy is active by comparing expected and actual IPs

Common errors and how to fix them

Empty or truncated body

Almost always a client-side timeout rather than an API fault.

Fix: Set a sensible timeout and retry once; the endpoint itself is extremely stable.

ipify API — frequently asked questions

How do I get my public IP address with curl?

Run `curl 'https://api.ipify.org?format=json'` for JSON, or `curl https://api.ipify.org` for the bare address as plain text with no wrapper.

Does ipify have a rate limit?

No. ipify advertises no rate limiting and no key requirement, which is unusual among public APIs and makes it safe to call from automated scripts.

Can ipify return an IPv6 address?

Yes. Use `api64.ipify.org` to get IPv6 when available and fall back to IPv4 otherwise. The main `api.ipify.org` host returns IPv4.

Does ipify tell me the location of an IP?

No. It only reflects the caller's address. For city, country and ISP data, use an IP geolocation API such as ip-api or ipwhois.

Tools that pair with this API

Alternatives to ipify API

If ipify does not fit, these geolocation & ip apis cover similar ground. Every one was called before publishing, and each links to its own reference page with a working curl command and the response it returned.

APIWhat it doesAuthCORSLast verified
ip-api.comFree IP geolocation API returning country, city, coordinates, timezone and ISP for any IP. No key on the free tier, 45 requests per minute. Tested curl example.No keyYes19 Aug 2026
ipwho.isFree IP geolocation API with HTTPS and no API key. Returns country, city, coordinates, timezone, currency and connection data. 10,000 requests/month free.No keyYes19 Aug 2026
Nominatim (OpenStreetMap)Free OpenStreetMap geocoding API: convert addresses to coordinates and back. No API key, open data, 1 request per second. Tested curl example and usage policy.No keyNo19 Aug 2026
Zippopotam.usFree zip and postal code API for 60+ countries. Convert a postal code to city, state and coordinates with no API key. Tested curl example and live JSON response.No keyYes19 Aug 2026
ipquery.ioFree IP intelligence API with no key: geolocation, ISP, ASN plus VPN, proxy, Tor and datacentre detection in one request over HTTPS. Tested example.No keyYes19 Aug 2026
Is On WaterFree land-versus-water API with no key: tell whether any latitude and longitude falls on water or land, in milliseconds. Tested curl example and live response included.No keyYes21 Aug 2026
All Geolocation & IP APIs

ipify is an independent third-party service and is not affiliated with ByteTools or ByteVancer. Details on this page were verified on 19 Aug 2026; always check the official documentation before relying on this API in production, as terms and limits can change.