turbot/ipinfo

GitHub
steampipe plugin install ipinfosteampipe plugin install ipinfo

ipinfo.io + Steampipe

ipinfo.io is an API for IP address information (e.g. location).

Steampipe is an open source CLI to instantly query cloud APIs using SQL.

Query your own IP:

select
ip,
city,
country_name
from
ipinfo_ip;
+---------+---------+---------------+
| ip | city | country_name |
+---------+---------+---------------+
| 1.2.3.4 | Chicago | United States |
+---------+---------+---------------+

Or query any IP:

select
ip,
city,
country_name
from
ipinfo_ip
where
ip = '8.8.8.8';
+---------+---------------+---------------+
| ip | city | country_name |
+---------+---------------+---------------+
| 8.8.8.8 | Mountain View | United States |
+---------+---------------+---------------+

Documentation

Get started

Install

Download and install the latest ipinfo.io plugin:

steampipe plugin install ipinfo

Configuration

Installing the latest ipinfo plugin will create a config file (~/.steampipe/config/ipinfo.spc) with a single connection named ipinfo:

connection "ipinfo" {
plugin = "ipinfo"
# Optional: Set your access token
# No token is needed for basic info requests. For
# higher limits and more data a token is required.
# token = "4692efda8b2b56"
}
  • token - Optional access token from ipinfo.io.

Environment variables are also available as an alternate configuration method:

  • IPINFO_TOKEN

Get involved