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

# InternetData

> IP, AS and domain data: an address's country, time zone, ASN, company, abuse contact, hostname and Tor, relay, bot and anycast flags on the free plan, and city-level geolocation, VPN, proxy and hosting detection on paid plans.

![](https://mintcdn.com/webrouter/Wx0iBZkUGX_VAFTN/logo/data-apis/_default.svg?fit=max\&auto=format\&n=Wx0iBZkUGX_VAFTN\&q=85\&s=951f11a0968af0d8747e234a1ec1f32c)

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

Key optional

Endpoints

3

Auth

Key in header

[Vendor docs](https://docs.internetdata.io/api)

&#x20;·&#x20;

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

## Setup

| Variable | | What it is |
| - | - | - |
| `INTERNETDATA_API_KEY` | some calls | an InternetData API key (internetdata.io console > API keys). Optional: without one the free Unlimited plan answers |

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

## Notes

* No key is needed: the free Unlimited plan answers every lookup with country-level location, ASN, company, abuse email, hostname and the Tor, relay, bot, anycast, carrier and satellite flags (terms: [https://internetdata.io/terms#no-key](https://internetdata.io/terms#no-key)).
* A field missing from an answer is one the plan does not include; city, region, coordinates, VPN, proxy and hosting detection need a paid plan.
* Private and reserved addresses answer 200 with is\_bogon true, not an error. A 429 carries Retry-After.

## Endpoints

GET

Look up an IP address

Country, continent, time zone and currency, ASN and prefix, company, abuse email, hostname and is\_tor/is\_relay/is\_bot/is\_anycast/is\_carrier/is\_satellite flags for an IPv4 or IPv6 address; city, coordinates, VPN, proxy and hosting detail on paid plans.

[Open](#internetdata-ip-lookup)

GET

Look up an autonomous system

An AS's name, country, registry, allocation date and domain; prefixes, RPKI counts, rank, upstreams, peers and downstreams on paid plans.

[Open](#internetdata-asn-lookup)

GET

Look up a domain

Whether a domain is registered and which DNS record types (A, AAAA, MX, NS, CNAME) it has; the records, IP ranges, hosting and disposable-email flag on paid plans.

[Open](#internetdata-domain-lookup)

### Look up an IP address

GET

`/{ip}`

`internetdata.ip.lookup`

Country, continent, time zone and currency, ASN and prefix, company, abuse email, hostname and is\_tor/is\_relay/is\_bot/is\_anycast/is\_carrier/is\_satellite flags for an IPv4 or IPv6 address; city, coordinates, VPN, proxy and hosting detail on paid plans.

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. Example `8.8.8.8`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.internetdata.io/api/lookup/lookupIp) · 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), [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), [IPinfo](https://docs.webrouter.net/data-apis/ipinfo.md#ipinfo-lite-lookup)

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

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

### Look up an autonomous system

GET

`/asn/{asn}`

`internetdata.asn.lookup`

An AS's name, country, registry, allocation date and domain; prefixes, RPKI counts, rank, upstreams, peers and downstreams on paid plans.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`asn` required</td><td>string</td><td>path</td><td>The AS number, bare or with the AS prefix. Example `AS15169`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.internetdata.io/api/lookup/lookupAsn) · Same job: [ipapi.is](https://docs.webrouter.net/data-apis/ipapiis.md#ipapiis-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("internetdata.asn.lookup", {'asn': 'AS15169'})
```

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

### Look up a domain

GET

`/domain/{domain}`

`internetdata.domain.lookup`

Whether a domain is registered and which DNS record types (A, AAAA, MX, NS, CNAME) it has; the records, IP ranges, hosting and disposable-email flag on paid plans.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`domain` required</td><td>string</td><td>path</td><td>The domain name. Example `example.com`</td></tr>
  </tbody>
</table>

[Vendor docs](https://docs.internetdata.io/api/lookup/lookupDomain) · Same job: [API Ninjas](https://docs.webrouter.net/data-apis/apininjas.md#apininjas-dns), [Public Interest Registry RDAP (.org)](https://docs.webrouter.net/data-apis/pir-rdap.md#pir-rdap-nameserver-get), [SecurityTrails](https://docs.webrouter.net/data-apis/securitytrails.md#securitytrails-domain-get), [Shodan](https://docs.webrouter.net/data-apis/shodan.md#shodan-dns-domain), [Verisign RDAP (.com, .net)](https://docs.webrouter.net/data-apis/verisign-rdap.md#verisign-rdap-nameserver-get), [WhoisXML API](https://docs.webrouter.net/data-apis/whoisxml-api.md#whoisxml-api-dns-lookup)

```python Python theme={null}
router.call_data_api("internetdata.domain.lookup", {'domain': 'example.com'})
```

```text MCP theme={null}
call_data_api(endpoint="internetdata.domain.lookup", params={"domain": "example.com"})
```

> [!NOTE]
>
> * Answered from InternetData's latest snapshots, not a live DNS query.


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