> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# IPinfo

> IP geolocation and ASN data: free country-level Lite lookups, and city-level geolocation with hosting, VPN/anonymous, mobile and anycast flags on paid plans.

![](https://mintcdn.com/webrouter/JBFYvcRI1PVnd4YX/logo/data-apis/ipinfo.webp?fit=max\&auto=format\&n=JBFYvcRI1PVnd4YX\&q=85\&s=fdb306b82841a8b7800a245818704647)

[Web Catalog · Maps](https://docs.webrouter.net/data-apis.md?category=maps)

Needs&#x20;

`IPINFO_TOKEN`

Endpoints

3

Auth

Key in header

[Vendor docs](https://ipinfo.io/developers/ipinfo-api)

&#x20;·&#x20;

[Pricing](https://ipinfo.io/pricing)

## Setup

| Variable | | What it is |
| - | - | - |
| `IPINFO_TOKEN` | required | an IPinfo access token (ipinfo.io account > Token); free accounts get unlimited Lite lookups |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Lite (/lite) is free and unlimited: country, continent and ASN only. Core (/lookup) needs a paid plan and returns city-level geo plus network flags.
* Paid plans have a monthly request quota; past it calls return 429 unless metered billing is on. No per-second throttling.
* Use 'me' as the IP to look up the caller's own address.

## Endpoints

GET

Look up an IP's country and ASN (Lite)

Country, continent, ASN number, name and domain for an IPv4 or IPv6 address. Free.

[Open](#ipinfo-lite-lookup)

GET

Get one Lite field for an IP

A single field of the Lite record (asn, as\_name, as\_domain, country\_code, country, continent\_code, continent) as plain text.

[Open](#ipinfo-lite-field)

GET

Look up an IP's location and network (Core)

Hostname, city, region, country, coordinates, time zone, postal code, AS details and is\_anonymous, is\_hosting, is\_mobile, is\_anycast, is\_satellite flags.

[Open](#ipinfo-core-lookup)

### Look up an IP's country and ASN (Lite)

GET

`/lite/{ip}`

`ipinfo.lite.lookup`

Country, continent, ASN number, name and domain for an IPv4 or IPv6 address. Free.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`ip` required</td><td>string</td><td>path</td><td>IPv4 or IPv6 address, or 'me'. Example `8.8.8.8`</td></tr>
  </tbody>
</table>

[Vendor docs](https://ipinfo.io/developers/lite-api) · Same job: [Abstract API](https://docs.webrouter.net/data-apis/abstract-api.md#abstract-api-ip-lookup), [API Ninjas](https://docs.webrouter.net/data-apis/apininjas.md#apininjas-ip-lookup), [InternetData](https://docs.webrouter.net/data-apis/internetdata.md#internetdata-ip-lookup), [IP2Location.io](https://docs.webrouter.net/data-apis/ip2location-io.md#ip2location-io-ip-lookup), [ipapi.is](https://docs.webrouter.net/data-apis/ipapiis.md#ipapiis-ip-lookup), [ipdata](https://docs.webrouter.net/data-apis/ipdata.md#ipdata-ip-lookup)

```python Python theme={null}
router.call_data_api("ipinfo.lite.lookup", {'ip': '8.8.8.8'})
```

```text MCP theme={null}
call_data_api(endpoint="ipinfo.lite.lookup", params={"ip": "8.8.8.8"})
```

### Get one Lite field for an IP

GET

`/lite/{ip}/{field}`

`ipinfo.lite.field`

A single field of the Lite record (asn, as\_name, as\_domain, country\_code, country, continent\_code, continent) as plain text.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`ip` required</td><td>string</td><td>path</td><td>IPv4 or IPv6 address, or 'me'. Example `8.8.8.8`</td></tr>
    <tr><td>`field` required</td><td>string</td><td>path</td><td>The field name. One of `ip`, `asn`, `as_name`, `as_domain`, `country_code`, `country`, `continent_code`, `continent` Example `asn`</td></tr>
  </tbody>
</table>

[Vendor docs](https://ipinfo.io/developers/) · Same job: [Abstract API](https://docs.webrouter.net/data-apis/abstract-api.md#abstract-api-ip-lookup), [API Ninjas](https://docs.webrouter.net/data-apis/apininjas.md#apininjas-ip-lookup), [InternetData](https://docs.webrouter.net/data-apis/internetdata.md#internetdata-ip-lookup), [IP2Location.io](https://docs.webrouter.net/data-apis/ip2location-io.md#ip2location-io-ip-lookup), [ipapi.is](https://docs.webrouter.net/data-apis/ipapiis.md#ipapiis-ip-lookup), [ipdata](https://docs.webrouter.net/data-apis/ipdata.md#ipdata-ip-lookup)

```python Python theme={null}
router.call_data_api("ipinfo.lite.field", {'ip': '8.8.8.8', 'field': 'asn'})
```

```text MCP theme={null}
call_data_api(endpoint="ipinfo.lite.field", params={"ip": "8.8.8.8", "field": "asn"})
```

> [!NOTE]
>
> * Answers plain text, not JSON.

### Look up an IP's location and network (Core)

GET

`/lookup/{ip}`

`ipinfo.core.lookup`

Hostname, city, region, country, coordinates, time zone, postal code, AS details and is\_anonymous, is\_hosting, is\_mobile, is\_anycast, is\_satellite flags.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`ip` required</td><td>string</td><td>path</td><td>IPv4 or IPv6 address, or 'me'. Example `8.8.8.8`</td></tr>
  </tbody>
</table>

[Vendor docs](https://ipinfo.io/developers/core-api) · Same job: [Abstract API](https://docs.webrouter.net/data-apis/abstract-api.md#abstract-api-ip-lookup), [API Ninjas](https://docs.webrouter.net/data-apis/apininjas.md#apininjas-ip-lookup), [InternetData](https://docs.webrouter.net/data-apis/internetdata.md#internetdata-ip-lookup), [IP2Location.io](https://docs.webrouter.net/data-apis/ip2location-io.md#ip2location-io-ip-lookup), [ipapi.is](https://docs.webrouter.net/data-apis/ipapiis.md#ipapiis-ip-lookup), [ipdata](https://docs.webrouter.net/data-apis/ipdata.md#ipdata-ip-lookup)

```python Python theme={null}
router.call_data_api("ipinfo.core.lookup", {'ip': '8.8.8.8'})
```

```text MCP theme={null}
call_data_api(endpoint="ipinfo.core.lookup", params={"ip": "8.8.8.8"})
```

> [!NOTE]
>
> * Needs a Core plan or higher; counts against the monthly quota.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.