LinuxCommandLibrary

ipinfo

official command-line client for the IPinfo

TLDR

Get information about your own IP address

$ ipinfo
copy
Look up details for a specific IP address
$ ipinfo [8.8.8.8]
copy
Get IP information in JSON format
$ ipinfo [1.1.1.1] --json
copy
Look up information for multiple IPs
$ ipinfo [8.8.8.8] [1.1.1.1]
copy
Look up ASN information
$ ipinfo [AS15169]
copy
Get specific field (city, country, org, etc.)
$ ipinfo [8.8.8.8] --field [city]
copy
Use an API token for higher rate limits
$ ipinfo [8.8.8.8] --token [your_token]
copy

SYNOPSIS

ipinfo [IP|ASN] [options]

DESCRIPTION

ipinfo is the official command-line client for the IPinfo.io geolocation API. It provides IP address information including geographic location, ISP, organization, and ASN data.
The tool can look up any public IP address or ASN, returning details such as city, region, country, coordinates, timezone, and hosting provider. It supports both individual lookups and bulk queries, with output in plain text, JSON, or CSV formats.

PARAMETERS

--json

Output in JSON format
--field FIELD
Return only the specified field (ip, city, region, country, org, etc.)
--token TOKEN
API token for authentication and higher rate limits
--csv
Output in CSV format
--no-color
Disable colored output
--version
Display version information
--help
Display help information

CAVEATS

Requires internet connectivity to reach the IPinfo.io API. Free tier has rate limits; register for an API token for higher quotas. Private/internal IP addresses cannot be geolocated. Geolocation accuracy varies by region and IP type.

HISTORY

Developed by IPinfo.io, a geolocation data provider founded in 2013. The CLI tool provides command-line access to the same data available through their web API, which serves billions of requests daily for IP intelligence data.

SEE ALSO

curl(1), whois(1), dig(1), geoiplookup(1)

> TERMINAL_GEAR

Curated for the Linux community

Copied to clipboard

> TERMINAL_GEAR

Curated for the Linux community