getmyip-pro
v0.1.2
Published
Tiny, dependency-free Node.js client and CLI for the getmyip.pro IP geolocation API
Maintainers
Readme
getmyip-pro (Node.js)
Tiny, dependency-free Node.js client and CLI for the getmyip.pro IP geolocation API — privacy-first (no logs, no trackers), with ip-api-compatible JSON.
One plan: free. 60 requests/min, 10,000/day, batch up to 100 IPs — no signup, no key. Hit the ceiling? Email [email protected] and we'll raise it for you.
CLI
npm install -g getmyip-pro # или npx getmyip-pro$ getmyip
IP: 45.82.64.40
Location: Naaldwijk, Netherlands (NL)
Network: WorldStream B.V. (AS49981)
Timezone: Europe/Amsterdam
$ getmyip 8.8.8.8
IP: 8.8.8.8
Location: United States (US)
Network: Google LLC (AS15169)
$ getmyip --field org 8.8.8.8
Google LLC
$ getmyip --json 8.8.8.8
{"ip":"8.8.8.8","country":"United States",...}An API key is optional (the anonymous tier needs none); pass --key or set GETMYIP_API_KEY for higher limits. Point the CLI at a self-hosted instance with GETMYIP_BASE_URL.
Library
import { Client } from "getmyip-pro";
const c = new Client(); // new Client({ apiKey: "..." }) to raise limits
const me = await c.me(); // your own IP
const r = await c.lookup("8.8.8.8"); // any IPv4/IPv6
const rs = await c.batch(["8.8.8.8", "1.1.1.1"]);
console.log(r.country, r.org, r.asn); // United States Google LLC 15169Errors throw APIError with .status and .error (e.g. rate_limited — see limits).
No dependencies: built-in fetch only. Node 18+.
Related
- Go client/CLI: soos-labs/getmyip-go
- Python client/CLI: soos-labs/getmyip-python
- API docs: docs.getmyip.pro
