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 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

Learn how to use the CLI in more advanced ways including looking up and parsing data on millions of IP addresses.

Did this page help you?