Getting Started
ipwhoami is a command-line tool that looks up geolocation data for any IP address. It supports multiple providers, lets you compare results side-by-side, and outputs clean JSON for scripting. It also includes a self-hosted API powered by offline databases — no rate limits, no API keys.
Quick Install
Section titled “Quick Install”The fastest way to get started is via npm:
npm install -g ipwhoamiOr run it directly without installing:
npx ipwhoami 8.8.8.8For other install methods (Bash script, PowerShell), see the Installation page.
Your First Lookup
Section titled “Your First Lookup”Run ipwhoami with no arguments to look up your own public IP:
ipwhoamiFetching your public IP...Your IP: 203.0.113.42
[ipinfo] IP 203.0.113.42 City Sydney Region New South Wales Country AU Org AS12345 Example ISP Location -33.8688,151.2093 Timezone Australia/SydneyOr pass a specific IP:
ipwhoami 8.8.8.8Compare Providers
Section titled “Compare Providers”Use -c to see how different providers report the same IP:
ipwhoami -c 1.1.1.1This queries all three providers and shows results side-by-side — useful for verifying accuracy.
Self-Hosted API
Section titled “Self-Hosted API”Tired of rate limits? ipwhoami includes a self-hosted geolocation API that runs on your own machine using offline databases:
cd api && npm install && npm run download-db && npm startSee the Self-Hosted API guide for full details.
What’s Next?
Section titled “What’s Next?”- Installation — All install methods
- Basic Usage — Flags, providers, and examples
- CLI Options — Complete reference
- Self-Hosted API — Run your own geolocation API