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

Available commands

1
ipdata --help
2
Usage: ipdata [OPTIONS] COMMAND [ARGS]...
3
4
CLI for ipdata API
5
6
Options:
7
--api-key TEXT ipdata API Key
8
--help Show this message and exit.
9
10
Commands:
11
batch
12
info
13
init
14
me
Copied!

Initialize the cli with your API Key

You need a valid API key from ipdata to use the cli. You can get a free key by signing up here.
1
ipdata init <API Key>
Copied!
You can also pass the --api-key <API Key> parameter to any command to specify a different API Key.
Last modified 11mo ago