Raw JSON
Dev Format
Matched
Docs
Base URL:
GET /whoami
- Default: matched format (your pasted style)
GET /whoami?json=1
- Full JSON (all requester info + geo/asn from local DB)
GET /whoami?dev=1
- Developer-friendly grouped JSON
GET /whoami?txt=1
- Plain text output
GET /whoami?ip=8.8.8.8&json=1
- Lookup specific IPv4/IPv6 using local DB (no external API)
GET /whoami?dev=1&get=geo.city
- Return one field only (dot-path)
GET /whoami?json=1&get=headers.user-agent
- Return single header from JSON output
Realtime (Socket.IO):
- Connect: /socket.io/
- Server emits: whoami:loading, whoami:data, whoami:error
Socket query for IP lookup:
io({ query: { ip: "8.8.8.8" } })
Security: if ?ip= is public, add rate limits / API key.