Developer API
IP Geolocation API
A free JSON endpoint that returns the caller's IP address, geolocation, ASN, and ISP. No signup, no API key, CORS enabled.
Endpoint
GET https://ipchu.com/api/ip Example request
curl https://ipchu.com/api/ip fetch('https://ipchu.com/api/ip')
.then((res) => res.json())
.then((data) => console.log(data.ip)); Example response
This is the live response for your current request:
{
"ip": "216.73.216.64",
"ipVersion": "IPv4",
"city": "Columbus",
"region": "Ohio",
"country": "US",
"postalCode": "43215",
"latitude": "39.96118",
"longitude": "-82.99879",
"timezone": "America/New_York",
"asn": "AS16509",
"isp": "Anthropic, PBC",
"userAgent": "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; [email protected])"
} Response fields
| Field | Type | Description |
|---|---|---|
ip | string | The caller's public IP address. |
ipVersion | string | "IPv4", "IPv6", or "Unknown". |
city | string? | Approximate city, if known. |
region | string? | State/province/region. |
country | string? | ISO 3166-1 alpha-2 country code, e.g. "US". |
postalCode | string? | Approximate postal/ZIP code. |
latitude | string? | Approximate latitude. |
longitude | string? | Approximate longitude. |
timezone | string? | IANA timezone, e.g. "America/Los_Angeles". |
asn | string? | Autonomous system number, e.g. "AS15169". |
isp | string? | Network operator / organization name. |
userAgent | string? | The User-Agent header sent by the caller. |
Usage notes
- No API key — just make a GET request.
- CORS enabled (
Access-Control-Allow-Origin: *) — call it directly from browser JavaScript. - Not cached (
Cache-Control: no-store) — every request reflects the current caller. - Fields marked
?may be omitted if geolocation data isn't available for that IP.
Free and best-effort. This API has no uptime SLA and no rate-limit guarantees.
It's provided as a convenience — please don't build production infrastructure that depends on
it without your own fallback.
See also your full IP overview, look up any IP, or check your ISP.