Skip to content
OSINTtools.io

IPinfo API

IP address data: geolocation, ASN, hosting provider, company, privacy/VPN detection and abuse contacts.

Base URL
https://api.ipinfo.io
Sign-in
Bearer token
Free tier
Free tier
Format
REST
Endpoints
2

Compiled by OSINTtools.io editors from ipinfo.io · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

The IPinfo Lite API returns country, continent and autonomous system (ASN, organization name and domain) for an IP address. IPinfo describes Lite as free with unlimited API access.

Requests go to https://api.ipinfo.io. Send the token as a Bearer header, as HTTP Basic (token as username) or as the token query parameter. Appending a field name, such as /lite/8.8.8.8/country_code, returns just that field as plain text.

This reference covers the Lite lookups only. The batch Lite endpoint (POST /batch/lite, up to 1,000 IPs per call) and the paid Core and Plus lookups are described in the docs and not included here.

Quick start

  1. Get a key

    Create an account with IPinfo and copy your bearer token (free tier). Where to get it

  2. Make your first request

    Country, continent and ASN for an IPv4 or IPv6 address.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://api.ipinfo.io/lite/203.0.113.7' \
      -H 'Authorization: Bearer YOUR_API_KEY'
  3. Read the response

    A 200 response looks like this.

    {
      "ip": "203.0.113.7",
      "asn": "AS64496",
      "as_name": "Example Networks",
      "as_domain": "example.net",
      "country_code": "NL",
      "country": "Netherlands",
      "continent_code": "EU",
      "continent": "Europe"
    }

Authentication

Send your token in the Authorization header as Bearer YOUR_TOKEN.

The token can also be sent as the token query parameter or as HTTP Basic.

Get a key from IPinfo

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

The Lite API has no daily or monthly limit per the docs.

Free tier.

  • LiteFree · Unlimited country-level API requests, ASN name/domain, 50 web lookups
  • Core$26/month · 150k requests/month, city geolocation, ASN, VPN/Tor/proxy detection
  • Plus$68/month · 150k requests/month, adds named privacy services, accuracy radius, carrier
  • Max$212/month · 250k requests/month, adds Wi-Fi data and residential proxy detection
  • EnterpriseContact sales · 1M+ requests/month, all data incl. company and IP WHOIS

Plans from ipinfo.io, checked Nov 25, 2026.

Errors

StatusMeaning
429A paid plan exceeded its monthly request limit

Lite lookups

Returns the Lite record for the address. The docs note an extra field for anycast or bogon addresses without naming it.

Path parameters

ipstringrequiredtakes your ip address

IPv4 or IPv6 address

Example: 203.0.113.7
Response fields · 8Show

ipstring

The address queried

asnstring

Autonomous System Number, e.g. AS64496

as_namestring

Organization name

as_domainstring

Organization's domain

country_codestring

ISO 3166-1 alpha-2 country code

countrystring

Country name

continent_codestring

Two-letter continent code

continentstring

Continent name

curl 'https://api.ipinfo.io/lite/203.0.113.7' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "ip": "203.0.113.7",
  "asn": "AS64496",
  "as_name": "Example Networks",
  "as_domain": "example.net",
  "country_code": "NL",
  "country": "Netherlands",
  "continent_code": "EU",
  "continent": "Europe"
}
  • Passive: the target is not contacted
  • Plan: Free (Lite)

Looks up the caller's own address, so no IP is needed.

Response fields · 8Show

ipstring

The caller's address

asnstring

Autonomous System Number

as_namestring

Organization name

as_domainstring

Organization's domain

country_codestring

ISO 3166-1 alpha-2 country code

countrystring

Country name

continent_codestring

Two-letter continent code

continentstring

Continent name

curl 'https://api.ipinfo.io/lite/me' \
  -H 'Authorization: Bearer YOUR_API_KEY'
Replace YOUR_API_KEY with your key
Response
{
  "ip": "198.51.100.23",
  "asn": "AS64497",
  "as_name": "Example Telecom",
  "as_domain": "example.org",
  "country_code": "DE",
  "country": "Germany",
  "continent_code": "EU",
  "continent": "Europe"
}