Install the ipdata CLI
Easily make single and bulk IP lookups from your terminal with ipdata's Command Line Interface.
Installation
Install the latest version of the cli with pip.
pip install ipdata
Basic Usage
You need a valid API key to use the cli. You can get a free key by signing up here.
Initialize the CLI
ipdata init <API Key>
Look up your own IP address
ipdata
# or
ipdata me
Look up an arbitrary IP address
ipdata 8.8.8.8
Get specific fields with jq
ipdata 8.8.8.8 | jq .country_name
Updated about 2 months ago
Did this page help you?