Free IP Lookup API

Developers often need programmatic access to a user's or server's public IP. Here is how to fetch it with a single HTTP GET — no API key or signup required.

U-Star IP REST API Guide
curl https://www.u-star.org/api/ip

Live API Response Test Sandbox

Click the button above to see the JSON response from the API.

3-Line Summary

  • 1Lightweight API endpoint to fetch client public IP in your projects.
  • 2Live API sandbox to verify JSON response structure.
  • 3Sample code snippets for JavaScript, Python, Go, and more.

U-Star IP Free API Specification

U-Star IP exposes a fast REST interface for developers. - **Endpoint:** `/api/ip` - **Method:** `GET` - **Response format:** `application/json` - **Payload:** `{ "ip": "client IP address" }` No API key or registration is required, and rate limits are generous for small projects and personal monitoring scripts.

Full CORS Support

Frontend apps on other domains often hit CORS errors. U-Star IP responds with `Access-Control-Allow-Origin: *`, so JavaScript fetch from any origin can read client IP data without CORS blocks.

GOOGLE ADSENSE

Frequently Asked Questions (FAQ)

It suits personal and small services. Very high call rates may be throttled to protect other users. Enterprise deployments should host local GeoIP libraries (e.g., MaxMind) on their own servers.
`fetch('/api/ip').then(res => res.json()).then(data => console.log(data.ip))` prints your public IP in the browser console.