Skip to main content

Look up location, ISP, and more about an IP address from multiple sources

Project description

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!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iplooker-0.5.2.tar.gz (13.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

iplooker-0.5.2-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

Details for the file iplooker-0.5.2.tar.gz.

File metadata

  • Download URL: iplooker-0.5.2.tar.gz
  • Upload date:
  • Size: 13.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for iplooker-0.5.2.tar.gz
Algorithm Hash digest
SHA256 ed769ddfaced22bca3cd7c173644cc7f5e3240908d021b7cdd72a41334a42976
MD5 cb7101fa042707694bed584570d0dccd
BLAKE2b-256 c863d562d016d636444646b4687f8f67f88fb62174e2cb55e7a82f96d22df0a5

See more details on using hashes here.

Provenance

The following attestation bundles were made for iplooker-0.5.2.tar.gz:

Publisher: python-publish.yml on dannystewart/iplooker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file iplooker-0.5.2-py3-none-any.whl.

File metadata

  • Download URL: iplooker-0.5.2-py3-none-any.whl
  • Upload date:
  • Size: 20.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for iplooker-0.5.2-py3-none-any.whl
Algorithm Hash digest
SHA256 235d880b899520d2f377874bbd0a8a8c6f5c1319df3ce7b07e1fa76e64f3d963
MD5 b127cd50899df9fc991b71fbc2d998d9
BLAKE2b-256 589401f290765790109656f2845246ab2fc834bc9f928a62a5c07ca072126ac6

See more details on using hashes here.

Provenance

The following attestation bundles were made for iplooker-0.5.2-py3-none-any.whl:

Publisher: python-publish.yml on dannystewart/iplooker

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page