IP优 ipyou.net

CLI Tools / API

Check any IP from your terminal with curl — no browser needed. CLI/script requests to this site get plain text automatically (browsers still get the web page).

curl quickref

curl ipyou.netyour IP details (plain text)
curl ipyou.net/ipjust the IP — ideal for scripts
curl ipyou.net/1.1.1.1look up a specific IP
curl ipyou.net/myipsame as curl to the site root

JSON API (for scripts / apps)

curl ipyou.net/api/v1/details/1.1.1.1full JSON for a given IP
curl ipyou.net/api/v1/myip/detailsfull JSON for your own IP

Script examples

# store your public IP in a variable
MYIP=$(curl -s ipyou.net/ip)

# refresh your IP every 5s (watch egress changes)
watch -n5 "curl -s ipyou.net/ip"

Note: Plain-text / bare-IP endpoints are never cached, so switching network / proxy returns fresh results instantly; JSON details are cached per IP for speed.

Browser shortcuts

BookmarkletLookup IP

Drag to your bookmarks bar. Select an IP on any page, then click it to look it up.

Userscript (Tampermonkey)

Install Tampermonkey, create a new script and paste this. Select an IP → menu → “Lookup selected IP”.

// ==UserScript==
// @name         IP优 快捷查询
// @namespace    https://ipyou.net/
// @version      1.0
// @match        *://*/*
// @grant        GM_registerMenuCommand
// ==/UserScript==
GM_registerMenuCommand('查选中的 IP', function () {
  var s = (window.getSelection() + '').trim();
  window.open('https://ipyou.net/' + encodeURIComponent(s), '_blank');
});

More tools

IP geolocation · risk · blocklist