Install the ipdata CLI

Easily make single and bulk IP lookups from your terminal with ipdata's Command Line Interface.


Install the latest version of the cli with pip.

pip install ipdata

Basic Usage

You need a valid API key from ipdata 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
# or
ipdata me
# Look up an arbitrary IP address
# Get specific fields with jq
ipdata | jq .country_name

What's next?