Use SQL to query IP geolocation, threat intelligence, ASN details, and abuse contacts from IPGeolocation.io.
select
ip,
country_name,
city,
isp,
timezone_name
from
ipgeolocation_ip
where
ip = '8.8.8.8';Install the plugin:
steampipe plugin install ipgeolocation/ipgeolocationConfigure your API key in ~/.steampipe/config/ipgeolocation.spc:
connection "ipgeolocation" {
plugin = "ipgeolocation/ipgeolocation"
# Get your free API key at https://app.ipgeolocation.io/dashboard
# Can also be set with the IPGEOLOCATION_API_KEY environment variable.
# api_key = "a1b2c3d4e5f6..."
}Run a query:
steampipe query "select ip, country_name, city from ipgeolocation_ip where ip = '8.8.8.8'"Prerequisites:
Clone the repo, build, and install:
git clone https://github.com/IPGeolocation/steampipe-plugin-ipgeolocation
cd steampipe-plugin-ipgeolocation
make setupmake setup runs go mod tidy, builds the plugin binary, and installs both the binary and the sample config file.
To rebuild after making changes:
make installRun tests:
make testFull table documentation is available on Steampipe Hub and in the docs/ directory.
| Table | Endpoint | Description | Credits |
|---|---|---|---|
| ipgeolocation_ip | /v3/ipgeo |
Geolocation, network, timezone, security, company, abuse, hostname | 1–4 |
| ipgeolocation_security | /v3/security |
VPN, proxy, Tor, relay, bot, spam, and threat score | 2 |
| ipgeolocation_abuse | /v3/abuse |
Abuse contact emails, phone numbers, org, and CIDR route | 1 |
| ipgeolocation_asn | /v3/asn |
ASN details, routes, peers, upstreams, downstreams, WHOIS | 1 |
This plugin is licensed under the Apache 2.0 License.