- a simple shell script that shows user's IP address info
- ipapi-shell uses the API from https://ipapi.com to request a json object of user's IP info and returns a minimal output of the user's country of origin, city, continent and ip address.
- An API access key from https://ipapi.com (Free)
- cURL
- jq
- clone this repo with:
git clone https://github.com/cameracluster/ipapi-shell.git
- Paste API access key into ipapi.sh under
?access_key=...&
- Envoke ipapi-shell by running in your CLI of choice:
./ipapi.sh