216.73.216.46
Multiple command line HTTP clients are supported, including curl, httpie, wget, and fetch.
$ curl ipv4.encryption.io 216.73.216.46 $ http -b ipv4.encryption.io 216.73.216.46 $ wget -qO- ipv4.encryption.io 216.73.216.46 $ fetch -qo- https://ipv4.encryption.io 216.73.216.46 $ bat -print=b ipv4.encryption.io/ip 216.73.216.46
$ http ipv4.encryption.io/country United States $ http ipv4.encryption.io/country-iso US
$ http ipv4.encryption.io/city Palmdale
$ http ipv4.encryption.io/json { "ip": "216.73.216.46", "ip_decimal": 3628718126, "country": "United States", "country_eu": false, "country_iso": "US", "city": "Palmdale", "latitude": 34.5705, "longitude": -118.029, "asn": "AS20001", "asn_org": "TWC-20001-PACWEST", "user_agent": { "product": "Mozilla", "version": "5.0", "comment": "AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)", "raw_value": "Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)" } }
Setting the Accept: application/json
header also works as
expected.
Always returns the IP address including a trailing newline, regardless of user agent.
$ http ipv4.encryption.io/ip 216.73.216.46
$ http ipv4.encryption.io/port/8080 { "ip": "216.73.216.46", "port": 8080, "reachable": false }