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

Uploaded Python 3

File details

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

File metadata

  • Download URL: iplooker-0.5.1.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.1.tar.gz
Algorithm Hash digest
SHA256 fa619b041527a2ccd30ad020f1b0f517fc57a349b3a5d0b165237d89c18429ba
MD5 0496f51cd834d7aaa47355bc1a1ac0fb
BLAKE2b-256 b185d50923addf232bfe37764bd6095b1518d5a13f61c388b06a9308f90a9f91

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: iplooker-0.5.1-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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 ac61e50270f7837cd80737be8442eb110433af99f119f03d91a7fb8596738fb5
MD5 dcfbbeb2224c1b3d770d150cf45c9058
BLAKE2b-256 462cb1e39818433d7eedfab9b7bf6ac480592b8f7c555e6e04a59a27b14c658a

See more details on using hashes here.

Provenance

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