iplooker
This script will perform a lookup for an IP address (IPv4 or IPv6) using multiple sources. It can be used to get more information about an IP address, including the country, region, city, ISP, and any organization that may be associated to it.
Usage
The script's primary purpose is looking up another IP address, but it can also tell you your current public IP address. You can combine the two to get a lookup for your public IP to see what other people might see if they were to look you up.
The script can also provide additional information from some services, including security-related information about an IP including whether it's a known VPN, proxy, Tor exit node, or datacenter. It can also provide ASN and IP ranges if available.
Here are the commands you can use:
# Running with no arguments will prompt for an IP
iplooker
# You can specify an IP as part of the command
iplooker 12.34.56.78
# You can use `-m` or `--me` to check your public IP
iplooker -m
iplooker --me
# You can do both with `-l` or `--lookup`
iplooker -l
iplooker --lookup
# Look up the ASN
iplooker -a
iplooker --asn
# Get the IP range the address is part of
iplooker -r
iplooker --range
Installation
Install from pip with:
pip install iplooker
Sources
It retrieves information from the following sources:
- ip-api.com
- ipapi.co
- ipapi.is
- ipdata.co
- ipgeolocation.io
- ipinfo.io
- iplocate.io
NOTE: The script currently uses my own API keys (obfuscated) for the lookups so that anyone can just download and go, but obviously this has potential for abuse. In the event that the script sees a lot of downloads or usage, I'll have to update it to default to free sources only with a bring-your-own-key approach, so please use responsibly!
Metadata
Release files for iplooker 0.5.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| iplooker-0.5.3.tar.gz | 13.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| iplooker-0.5.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 33.6 kB
Release files / iplooker-0.5.3.tar.gz
| Download URL | iplooker-0.5.3.tar.gz |
|---|---|
| Size | 13.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4820776ae3833ab969f34f35c27d239b1db9e7ef2e41a4cb49e89ead45a22a0d
|
|
BLAKE2b-256 checksum How to use checksums |
d6947764798331d67f3008131142813366b854f0335f06ce9639003cae59b305
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 14, 2026.
Transparency logRelease files / iplooker-0.5.3-py3-none-any.whl
| Download URL | iplooker-0.5.3-py3-none-any.whl |
|---|---|
| Size | 20.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
6e3b9235de36b35ce84ff698d904cdf052a80e3e662cf8b52d55b5808762f3f6
|
|
BLAKE2b-256 checksum How to use checksums |
663c9f2ba3e990cfca6d430722fc828de6326ee907c04f3f1fc3906578bfc4fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 14, 2026.
Transparency log