Updated Jul 15, 2026

Network

Attach geolocation and ASN data to IP lists

Official IPinfo CLI for IP geolocation and ASN lookups.

ipinfo-2.10.0 on Trickest · Go · Apache-2.0 license

Free plan: 1 user, 3 execution slots, no card.

overview

What ipinfo does

ipinfo is the official CLI for the IPinfo API. Pass one IP or a list and get geolocation, ASN, organization, and related ownership fields without a custom HTTP client.

Use --json or --csv for pipelines, --field to keep only columns such as country or org, and --nocache when a cached answer is not enough. A token file raises rate and field limits.

Run it after DNS or host discovery when you need to group assets by region or ASN. Trickest hosts ipinfo as a managed Network node over an IP file. Use asnmap to go the other way, from org to ranges.

source github.com/ipinfo/cli · ipinfo-2.10.0 on Trickest

image quay.io/trickest/ipinfo:v2.10.0-patch-1

use cases

ipinfo use cases

Enrich a list of IP addresses

Run ipinfo over a file of IPs to attach geolocation, organization, ASN, and hostname to each one in a single pass.

Tell apart cloud, CDN, and owned ranges

Use ownership and ASN data to classify which addresses belong to the target versus a provider, focusing the next stage.

Export structured network data

Choose --json to pipe into a downstream node or --csv to drop the enriched records straight into a spreadsheet.

Pull only the fields you need

Use --field to return the ASN and country alone, keeping the output lean for high-volume enrichment.

reference

ipinfo inputs and flags

6 inputs
NameTypeFlagDescription
csvBOOLEAN--csvoutput CSV format
jsonBOOLEAN--jsonoutput JSON format
fieldSTRING--fieldcomma-sneparated list of fields to look up in the output
no-cacheBOOLEAN--nocachedo not use the cache.
token-fileFILE·API token file
ip-addressesFILE·List of IP addresses

Showing key inputs. ipinfo exposes 6 inputs in total.

example

ipinfo command examples

ipinfo · command
# ipinfo: geolocate a list of IPs as JSON
ipinfo 198.51.100.10 203.0.113.5 --json --field ip,country,org
Illustrative
{"ip":"198.51.100.10","country":"US","org":"AS64500 Example Net"}
{"ip":"203.0.113.5","country":"US","org":"AS64501 Example Lab"}
{"ip":"192.0.2.8","country":"US","org":"AS64500 Example Net"}
{"ip":"198.51.100.44","country":"DE","org":"AS64502 Example EU"}
{"ip":"203.0.113.90","country":"GB","org":"AS64503 Example UK"}

guidance

ipinfo vs alternatives

Use ipinfo to enrich IP addresses with geolocation, ownership, and ASN data. To map an organization to its ASNs and ranges, use asnmap. Resolve hostnames to IPs with a DNS tool before enrichment.

ToolPick it when
asnmapMaps organizations and ASNs to IP ranges. Discovery side; ipinfo enriches individual addresses.
cdncheckClassifies whether an IP belongs to a CDN or cloud. Narrower than ipinfo full geolocation and ASN record.
dnsxResolves hostnames to IPs. Run it before ipinfo to produce the addresses to enrich.

faq

ipinfo FAQ

Geolocation, owning organization and ASN, hostname, and network classification for each IP, drawn from the IPinfo API.

A token file authenticates requests and lifts rate and field limits. Basic lookups work unauthenticated within the free quota.

--json for piping downstream and --csv for spreadsheets, with --field to return only the keys you care about.

When you need a fresh lookup instead of a cached answer, for example after an IP has changed ownership or you are validating live enrichment.

Use ipinfo to enrich known IPs with location and ASN. Use asnmap when you start from an organization name and need the ranges first.

Run ipinfo yourself

An IP list feeds ipinfo, which enriches each address with geolocation, ownership, and ASN data and writes the records as a queryable output.

Facts on this page come from the live Trickest tool library.