Free IP Address API

Get your public IP address and the same IP context shown on the homepage (IPv4/IPv6, approximate location, ISP or ASN string, time zone, inferred network class, browser and OS hints) as JSON. Responses are not cached by the service for your session lookup (Cache-Control: private, no-store).

Endpoint

GET https://ipcontext.info/json

Optional query: ?ip=ADDRESS to look up another public IP (geo fields reflect that address; the connection still comes from you).

Example

curl -sS https://ipcontext.info/json

Response shape

JSON keys include ip, type, os, browser, city, region, country, loc, org, postal, timezone, and optionally original when forwarded-client headers differ from the resolved client. See How it works for accuracy and limits.

Human-friendly entry points

Home · Documentation · Privacy