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

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?