Lightweight endpoints that return your connection details as raw text or JSON — no HTML, no rendering, no account. Built for scripts, terminals, and CI pipelines.
The classic one-liner — get your public IP with nothing else around it:
Capture it straight into a variable, because the response is the bare address plus a single newline:
Or pull the full picture as JSON and parse it with jq:
All respond to plain GET requests over HTTPS. CORS is open, so they work from browser scripts too. Each reports the data for whoever makes the request.
Geolocation is approximate. City, region, and postal are estimated at the ISP level, not precise to a household. Country is reliable; city is a best guess.
IPv6. If your request arrives over IPv6, that's the address you'll get; /ip returns whichever protocol carried the request.
No logging. These endpoints read your request and respond — nothing about your call is stored on our side.
Fair use. They're free and unauthenticated. Please don't hammer them in tight loops; cache the result if you're polling.
Want a live IP box on your own site? Grab a free, self-contained IP widget — it shows each visitor their own IP, city, and ISP, with no tracking. Customise and copy the embed code.