API

Your IP from the command line

No key, no sign-up. Plain text by default, JSON when you ask for it. Please keep it to about a request a minute per machine; heavy use gets slowed down (HTTP 429 with Retry-After).

GET /Your IP as plain text (for curl, wget and scripts). Browsers get the web page.
GET /ip4Your IPv4 address, or 404 if you came over IPv6. Use https://ipv4.upopip.com/ip4 to force IPv4.
GET /ip6Your IPv6 address, or 404 if you came over IPv4. Use https://ipv6.upopip.com/ip6 to force IPv6.
GET /asnYour network number and provider, e.g. “AS22773 Cox Communications Inc.”.
GET /jsonEverything about your address as JSON: ip, version, asn, org, city, region, country, connection type, reverse DNS.
$ curl upopip.com
203.0.113.7

$ curl -4 upopip.com/ip4      # force IPv4
$ curl -6 upopip.com/ip6      # force IPv6

$ curl -s upopip.com/json | jq .org
"Example Broadband"

Machine-readable

An OpenAPI 3.1 description is at /openapi.json. CORS is open on /ip4, /ip6 and /json, so you can call them from a web page. Responses are never cached and we don’t log the address.