https://github.com/simatwa/ip-api
Get to know IP information
https://github.com/simatwa/ip-api
Last synced: 8 months ago
JSON representation
Get to know IP information
- Host: GitHub
- URL: https://github.com/simatwa/ip-api
- Owner: Simatwa
- License: gpl-3.0
- Created: 2023-12-06T18:17:07.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-29T14:46:28.000Z (over 2 years ago)
- Last Synced: 2024-12-25T11:42:03.286Z (over 1 year ago)
- Language: Python
- Size: 24.4 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ip-api
Get to know IP information
## Installation
```
git clone https://github.com/Simatwa/ip-api.git
cd ip-api
pip install -r requirements.txt
```
## Usage
Ensure you have [python>=3.9](https://python.org) in your system
- Trace your own IP : `python main.py me`
```
----------- -------------------------------
status success
country Kenya
countryCode KE
region 20
regionName Nairobi
city Nairobi
zip 09831
lat -8.2841
lon 32.8155
timezone Africa/Nairobi
isp Truth Wireless Limited
org Truth Wireless Limited
as AS329254 TRUTH WIRELESS LIMITED
query 102.212.11.xx
----------- -------------------------------
```
- Trace any other IP : `python main.py ip -q 172.217.170.174`
```
----------- ------------------
status success
country United States
countryCode US
region NY
regionName New York
city New York
zip 10065
lat 40.7652
lon -73.9588
timezone America/New_York
isp Google LLC
org Google LLC
as AS15169 Google LLC
query 172.217.170.174
----------- ------------------
```
For more info run `python main.py --help`