How to hit the IPinfo API

IPinfo at https://ipinfo.io returns location, ASN, and hostname data for an IP address. Basic lookups work without a token at low volume.

Authentication

None for light use. A free token raises the limit; send it as Authorization: Bearer <token>.

Full reference: https://ipinfo.io/developers

Look up an IP

curl https://ipinfo.io/8.8.8.8/json
Run in PostTaco
Example response (trimmed)
{
  "ip": "8.8.8.8",
  "hostname": "dns.google",
  "city": "Mountain View",
  "region": "California",
  "country": "US",
  "loc": "38.0088,-122.1175",
  "org": "AS15169 Google LLC",
  "postal": "94043",
  "timezone": "America/Los_Angeles",
  "readme": "https://ipinfo.io/missingauth",
  "anycast": true
}

One field

Returns plain text.

curl https://ipinfo.io/1.1.1.1/org
Run in PostTaco