Skip to content

pry0cc/ipi

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
lib
 
 
 
 
 
 

ipi

I wrote this utility to help me more efficiently utilize the ipinfo.io API - especially the premium aspects.

Installation

Sign in with Google or Github to obtain a free API key with 50k requests! https://ipinfo.io/account

wget -O /tmp/install https://raw.githubusercontent.com/pry0cc/ipi/master/bin/iptools-install && chmod +x /tmp/install
/tmp/install <your token>

Example

Basic Usage

Look up a single IP

ipi 8.8.8.8

Parse an item from the results

ipi 8.8.8.8 .city

Make a CSV of a single IP

ipi 104.238.184.224 '[.city, .region, .hostname] | @csv'

Or you can read from stdin

cat ips.txt | ipi '.asn.asn'

You can do the exact same with ipr too, which is for ranges:

ipr AS7922

# Get all IP ranges for a given ASN
ipr AS7922 '.prefixes[].netblock'

About

A tiny set of helper scripts for ipinfo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages