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.0.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.0-py3-none-any.whl (20.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: iplooker-0.5.0.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.0.tar.gz
Algorithm Hash digest
SHA256 2e68ae77ce63674a6657c57ff85cb5daf6da800d8f7619b50034240895bb6840
MD5 c79e6e841b4c8a6b0d499e253042a9ac
BLAKE2b-256 354fa6dfeebf253a9f2b29955af5ef32065a6614473ade892ef4780269e2acb8

See more details on using hashes here.

Provenance

The following attestation bundles were made for iplooker-0.5.0.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.0-py3-none-any.whl.

File metadata

  • Download URL: iplooker-0.5.0-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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5a7be957fbd3c57ce1a58ecea6d3ecccb75ec75d5bfcfeb456f48ed1e9da5eb3
MD5 698c234c80f2f705e9159d9a945e207e
BLAKE2b-256 254d715cd63f3bf82a0a4b9a46aa0d691e3d32781b8de75344d6c92fdebd85fa

See more details on using hashes here.

Provenance

The following attestation bundles were made for iplooker-0.5.0-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