Powerful IP intelligence at your fingertips โ straight from the terminal.
| Feature | Details |
|---|---|
| ๐ Single & Batch Lookups | Look up one IP or hundreds at once |
| ๐ Own-IP Detection | Run with no arguments to discover your own public IP |
| ๐ Rich Coloured Tables | Beautiful terminal output powered by Rich |
| ๐ Multiple Output Formats | table (default), json, or csv |
| ๐พ Save to File | Write results to any file with --output |
| ๐ก๏ธ Proxy / VPN / Hosting Flags | Instantly know if an IP belongs to a VPN, proxy, or data-centre |
| ๐ก Reverse DNS | PTR record lookup for every IP |
| โ Input Validation | Invalid IPs are skipped gracefully with a clear error |
| ๐ Input File Support | Read IPs from a file via --input-file |
| ๐ Retry + Timeout Controls | Tune network behavior with --retries and --timeout |
| โฑ๏ธ Timeout Handling | Never hangs โ all requests have a configurable timeout |
python --version # Python 3.8+
pip --versionpip install -r requirements.txtchmod +x ip_info_extractor.pyusage: ip_info_extractor.py [-h] [--input-file FILE] [--format {table,json,csv}] [--output FILE] [--timeout TIMEOUT] [--retries RETRIES] [--no-color] [IP ...]
๐ IP Info Extractor โ Powerful IP intelligence at your fingertips
positional arguments:
IP IP address(es) to look up (omit to detect your own public IP)
options:
-h, --help show this help message and exit
--input-file/-i FILE Read IP address(es) from FILE (one per line or comma-separated)
--format/-f {table,json,csv}
Output format (default: table)
--output, -o FILE Save output to FILE instead of printing to stdout
--timeout TIMEOUT Request timeout in seconds (default: 10.0)
--retries RETRIES Request retries on failure (default: 2)
--no-color Disable coloured output
python3 ip_info_extractor.pypython3 ip_info_extractor.py 8.8.8.8โญโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฎ
โ IP Intelligence Report โข 8.8.8.8 โ
โโโโโโโโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ Field โ Value โ
โโโโโโโโโโโโโโโโโโโโโโผโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโค
โ IP Address โ 8.8.8.8 โ
โ Country โ United States โ
โ Country Code โ US โ
โ Region โ California โ
โ City โ Mountain View โ
โ ZIP โ 94043 โ
โ Latitude โ 37.422 โ
โ Longitude โ -122.0841 โ
โ ISP โ Google LLC โ
โ Organization โ Google LLC โ
โ AS Number โ AS15169 Google LLC โ
โ Timezone โ America/Los_Angeles โ
โ Mobile Network โ No โ
โ Proxy / VPN โ No โ
โ Hosting / DC โ Yes โ
โ Reverse DNS โ dns.google โ
โฐโโโโโโโโโโโโโโโโโโโโโดโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฏ
python3 ip_info_extractor.py 8.8.8.8 1.1.1.1 9.9.9.9python3 ip_info_extractor.py --input-file ips.txtips.txt can contain one IP per line or comma-separated values.
python3 ip_info_extractor.py 8.8.8.8 --format json{
"query": "8.8.8.8",
"country": "United States",
"countryCode": "US",
"regionName": "California",
"city": "Mountain View",
"zip": "94043",
"lat": 37.422,
"lon": -122.0841,
"isp": "Google LLC",
"org": "Google LLC",
"as": "AS15169 Google LLC",
"timezone": "America/Los_Angeles",
"mobile": "No",
"proxy": "No",
"hosting": "Yes",
"rdns": "dns.google"
}python3 ip_info_extractor.py 8.8.8.8 1.1.1.1 --format csvpython3 ip_info_extractor.py 8.8.8.8 --format json --output result.json
python3 ip_info_extractor.py 8.8.8.8 1.1.1.1 --format csv --output results.csvpython3 ip_info_extractor.py 8.8.8.8 --format json --no-color | jq .python3 ip_info_extractor.py 8.8.8.8 --timeout 5 --retries 3ip-tool/
โโโ ip_info_extractor.py # Main tool
โโโ requirements.txt # Python dependencies
โโโ README.md # This file
This tool uses the free tier of ip-api.com.
Note: The free tier is limited to 45 requests/minute. For higher throughput, see the ip-api.com Pro plan.
| Package | Purpose |
|---|---|
| requests | HTTP client |
| rich | Coloured terminal output |
This project is released under the MIT License โ do whatever you like with it.