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.
1
pip install ipdata
Copied!

Basic Usage

You need a valid API key from ipdata to use the cli. You can get a free key by signing up here.
1
# Initialize the CLI
2
ipdata init <API Key>
3
4
# Look up your own IP address
5
ipdata
6
7
# or
8
ipdata me
9
10
# Look up an arbitrary IP address
11
ipdata 8.8.8.8
12
13
# Get specific fields with jq
14
ipdata 8.8.8.8 | jq .country_name
Copied!

What's next?

Last modified 1yr ago