getmyip-pro (Python)
Tiny, dependency-free Python 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 tech@getmyip.pro and we'll raise it for you.
CLI
pip install 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.
Library
from getmyip_pro import Client
c = Client() # Client(api_key="...") to raise limits
me = c.me() # your own IP
r = c.lookup("8.8.8.8") # any IPv4/IPv6
rs = c.batch(["8.8.8.8", "1.1.1.1"])
print(r.country, r.org, r.asn) # United States Google LLC 15169
Errors raise getmyip_pro.APIError with .status and .error (e.g. rate_limited — see limits).
No dependencies: stdlib urllib only. Python 3.9+.
Related
- Go client/CLI: soos-labs/getmyip-go
- Node.js client/CLI: soos-labs/getmyip-js
- API docs: docs.getmyip.pro
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file getmyip_pro-0.1.2.tar.gz.
File metadata
- Download URL: getmyip_pro-0.1.2.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7bbf3ca18e123a52cec68b0273faf1b7e003a9d0edb91c2ef8b73b203d7a6181
|
|
| MD5 |
5760244cf3b194894722bc845481919f
|
|
| BLAKE2b-256 |
9a824e6b2db4630f720f85cc0fa79118502febe8854e8a5afc6625f87577509d
|
File details
Details for the file getmyip_pro-0.1.2-py3-none-any.whl.
File metadata
- Download URL: getmyip_pro-0.1.2-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.12.13
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ac068abe31ce70ac556b5da2c414f0e2b6edc789fc97da37b3bd27319ad364e6
|
|
| MD5 |
9c1389b3427bf97adc072c0145415654
|
|
| BLAKE2b-256 |
b92d0e88a706bc4d7128be1a3dd067ae1c7f9cd853afec205a51dd66fbfe03d7
|