A simple Python-based command-line tool to fetch detailed information about any IP address using an external API.
- Lookup any IPv4 address
- Get location details (city, region, country)
- Latitude & Longitude with Google Maps link
- Timezone and postal code info
- ISP and ASN details
- Input validation for IP addresses
- Clean CLI interface with banner
.
├── main.py
├── requirements.txt
└── README.md
git clone https://github.com/AK-ALiEN/ip-tracker.git
cd ip-tracker
pip install -r requirements.txtpython main.pyEnter an IP address:
Enter Target IP (or 'q' to quit): 8.8.8.8
==================================================
IP Address : 8.8.8.8
City : Mountain View
Region : California
Country : United States
Latitude : 37.386
Longitude : -122.0838
Time Zone : America/Los_Angeles
Postal Code : 94035
ISP : Google LLC
ASN : AS15169
Country Code : US
Google Maps : https://www.google.com/maps?q=37.386,-122.0838
==================================================
- Sends a POST request to an IP lookup API
- Parses JSON response
- Displays formatted results in terminal
Handles: - Timeout errors - Connection issues - Invalid responses - Incorrect IP formats
- Python 3.x
- Internet connection
This tool is for educational and informational purposes only.
Feel free to fork the repo and submit pull requests!