ipchu

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 -L 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": "2600:1f28:365:80b0:b645:5854:f9f7:4dfb",
  "ipVersion": "IPv6",
  "city": "Ashburn",
  "region": "Virginia",
  "country": "US",
  "postalCode": "20147",
  "latitude": "39.04372",
  "longitude": "-77.48749",
  "timezone": "America/New_York",
  "asn": "AS14618",
  "isp": "Amazon Data Services Northern Virginia",
  "userAgent": "CCBot/2.0 (https://commoncrawl.org/faq/)"
}

Response fields

FieldTypeDescription
ipstringThe caller's public IP address.
ipVersionstring"IPv4", "IPv6", or "Unknown".
citystring?Approximate city, if known.
regionstring?State/province/region.
countrystring?ISO 3166-1 alpha-2 country code, e.g. "US".
postalCodestring?Approximate postal/ZIP code.
latitudestring?Approximate latitude.
longitudestring?Approximate longitude.
timezonestring?IANA timezone, e.g. "America/Los_Angeles".
asnstring?Autonomous system number, e.g. "AS15169".
ispstring?Network operator / organization name.
userAgentstring?The User-Agent header sent by the caller.

Usage notes

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.