JSON endpoint

Send a GET request to the endpoint below. The response includes the public IP and, when supplied by the hosting network, a two-letter country code and edge location.

GET https://globaliplookup.com/api/network
{
  "ip": "203.0.113.42",
  "country": "IN",
  "colo": "BOM"
}

Command-line example

curl https://globaliplookup.com/api/network

The endpoint allows cross-origin GET requests and returns Cache-Control: no-store. Treat the result as connection information, not a stable user identifier.

Embeddable IP badge

The badge is an SVG image generated for the visitor loading it. Use the image alone or wrap it in a normal link to the checker.

Live public IP address badge
<a href="https://globaliplookup.com/">
  <img src="https://globaliplookup.com/api/badge" alt="Check my public IP">
</a>

Usage and reliability

This free endpoint is intended for lightweight diagnostics, demos and personal tools. It has no uptime guarantee or bulk-use SLA. Do not use IP data alone for authentication, identity, precise location or high-stakes decisions.

Agents and API clients can read the OpenAPI 3.1 description. The agent-readable site index links the checker, documentation and technical guides.

For interactive lookup of another public address, use the IP address lookup.