Skip to content
Y
YAS.SH
Network

My IP (plain)

Just your public IP address — nothing else. curl-friendly. — free, private, client-side. API: POST /api/v1/tools/ip

All tools →
Your public IP — plain text, curl-friendly
100% free / open-source — no API key. Client IP is resolved securely: proxy headers are only trusted when behind a configured reverse proxy (TRUST_PROXY).
curl (plain)
curl -s https://yas.sh/ip
curl (JSON)
curl -s https://yas.sh/ip?format=json
# {"ip":"1.2.3.4"}

curl -s https://yas.sh/api/v1/tools/ip
# 1.2.3.4

curl -X POST https://yas.sh/api/v1/tools/what-is-my-ip \
  -H "Content-Type: application/json" -d '{}'
# full geo + VPN/Tor
Why this is free & open-source
  • No paid feed — uses ipapi.co (1k/day) → ipwho.is → ip-api.com (45/min) fallback chain.
  • Tor detection via public bulk exit list https://check.torproject.org/torbulkexitlist (cached 1h).
  • VPN/proxy/hosting from free security flags (ipapi.co vpn/proxy/tor, ipwho.is security.*, ip-api.com proxy/hosting).
  • Client-IP headers (X-Real-IP / XFF / CF-Connecting-IP) are trusted only behind a configured proxy (TRUST_PROXY) — no spoofable echoes.
  • Self-hostable: no secret, no DB write, 15-min memory cache.
Runs 100% in your browser — no data leaves your device. For programmatic use: curl -X POST /api/v1/tools/ip -d '{ "input": "hello" }' → JSON. See /docs/api.
🍪 Cookies & privacy. yas.sh uses only essential cookies to keep you signed in and remember your preferences. We do not run third-party trackers. See our cookie policy and privacy policy.
Settings