> ## 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.

# ipapi.is

> IP address intelligence: geolocation, ASN, owning company and abuse contact, and VPN, proxy, Tor, datacenter and crawler detection.

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

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

Key for some calls

Endpoints

3

Auth

Key in query

[Vendor docs](https://ipapi.is/developers.html)

&#x20;·&#x20;

[Pricing](https://ipapi.is/pricing.html)

## Setup

| Variable | | What it is |
| - | - | - |
| `IPAPI_IS_API_KEY` | some calls | an ipapi.is API key (free account: 1,000 requests a day). Optional for single IP lookups, required for ASN lookups and the account endpoint |

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

## Notes

* Without a key: 30 lookups per IP per UTC day, with a minimal response and no detection flags; the next requests get 429 ERR\_FREE\_TIER\_EXHAUSTED, and persisting can get the IP firewalled for 24 hours.
* A free account key allows 1,000 requests a day; errors are not counted. 429 ERR\_QUOTA\_EXCEEDED means the daily quota is spent.
* Switch parameters (pretty, geoloc\_meta, all\_companies) take effect only with the exact value 1.
* Errors are JSON with error and error\_code (e.g. 400 ERR\_INVALID\_IP\_OR\_ASN, 403 ERR\_FORBIDDEN\_API\_KEY\_REQUIRED).

## Endpoints

GET

Look up an IP address

Location, ASN, company, abuse contact and is\_vpn/is\_proxy/is\_tor/is\_datacenter/is\_abuser/is\_mobile/is\_crawler flags for an IPv4 or IPv6 address.

[Open](#ipapiis-ip-lookup)

GET

Look up an autonomous system

Details of an autonomous system number.

[Open](#ipapiis-asn-lookup)

GET

Get plan and usage

The key's plan, daily limit and requests used.

[Open](#ipapiis-account-get)

### Look up an IP address

GET

`/`

`ipapiis.ip.lookup`

Location, ASN, company, abuse contact and is\_vpn/is\_proxy/is\_tor/is\_datacenter/is\_abuser/is\_mobile/is\_crawler flags for an IPv4 or IPv6 address.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`q`</td><td>string</td><td>query</td><td>The IP address; omit for the caller's own IP. Example `32.43.11.44`</td></tr>
    <tr><td>`all_companies`</td><td>integer</td><td>query</td><td>1 returns every matching WHOIS record as an array in company. One of `1`</td></tr>
    <tr><td>`geoloc_meta`</td><td>integer</td><td>query</td><td>1 adds location.geofeed. One of `1`</td></tr>
    <tr><td>`format`</td><td>string</td><td>query</td><td>Response format; default json. One of `json`, `html`, `toon`, `csv`, `text`</td></tr>
  </tbody>
</table>

[Vendor docs](https://ipapi.is/developers.html) · 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), [ipdata](https://docs.webrouter.net/data-apis/ipdata.md#ipdata-ip-lookup), [IPinfo](https://docs.webrouter.net/data-apis/ipinfo.md#ipinfo-lite-lookup)

```python Python theme={null}
router.call_data_api("ipapiis.ip.lookup", {'q': '32.43.11.44'})
```

```text MCP theme={null}
call_data_api(endpoint="ipapiis.ip.lookup", params={"q": "32.43.11.44"})
```

### Look up an autonomous system

GET

`/`

`ipapiis.asn.lookup`

Needs&#x20;

`IPAPI_IS_API_KEY`

Details of an autonomous system number.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`q` required</td><td>string</td><td>query</td><td>The ASN with the AS prefix. Example `AS15169`</td></tr>
    <tr><td>`format`</td><td>string</td><td>query</td><td>Response format; default json. One of `json`, `html`, `toon`, `csv`, `text`</td></tr>
  </tbody>
</table>

[Vendor docs](https://ipapi.is/developers.html) · Same job: [InternetData](https://docs.webrouter.net/data-apis/internetdata.md#internetdata-asn-lookup), [ipdata](https://docs.webrouter.net/data-apis/ipdata.md#ipdata-asn-get), [Ipregistry](https://docs.webrouter.net/data-apis/ipregistry.md#ipregistry-asn-lookup)

```python Python theme={null}
router.call_data_api("ipapiis.asn.lookup", {'q': 'AS15169'})
```

```text MCP theme={null}
call_data_api(endpoint="ipapiis.asn.lookup", params={"q": "AS15169"})
```

> [!NOTE]
>
> * Needs a key.

### Get plan and usage

GET

`/account`

`ipapiis.account.get`

Needs&#x20;

`IPAPI_IS_API_KEY`

The key's plan, daily limit and requests used.

Input

No inputs.

[Vendor docs](https://ipapi.is/developers.html)

```python Python theme={null}
router.call_data_api("ipapiis.account.get")
```

```text MCP theme={null}
call_data_api(endpoint="ipapiis.account.get")
```


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