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

Uploaded Python 3

File details

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

File metadata

  • Download URL: iplooker-0.5.3.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.3.tar.gz
Algorithm Hash digest
SHA256 4820776ae3833ab969f34f35c27d239b1db9e7ef2e41a4cb49e89ead45a22a0d
MD5 35d7a9c3631726ae84fd9d637683748c
BLAKE2b-256 d6947764798331d67f3008131142813366b854f0335f06ce9639003cae59b305

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: iplooker-0.5.3-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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 6e3b9235de36b35ce84ff698d904cdf052a80e3e662cf8b52d55b5808762f3f6
MD5 71359830f0623b327aca972dcf0bb04a
BLAKE2b-256 663c9f2ba3e990cfca6d430722fc828de6326ee907c04f3f1fc3906578bfc4fb

See more details on using hashes here.

Provenance

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