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

# IP2Location.io

> IP geolocation with ISP, ASN, usage type, mobile carrier and proxy/fraud data (by plan), plus domain WHOIS records and the domains hosted on an IP.

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

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

Key for some calls

Endpoints

3

Auth

Key in header

[Vendor docs](https://www.ip2location.io/ip2location-documentation)

&#x20;·&#x20;

[Pricing](https://www.ip2location.io/pricing)

## Setup

| Variable | | What it is |
| - | - | - |
| `IP2LOCATIONIO_API_KEY` | some calls | An IP2Location.io API key (free plan sign-up at ip2location.io). Sent as a Bearer token. IP geolocation works without one; WHOIS and hosted domains need it. |

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

## Notes

* Without a key, geolocation allows 1,000 queries a day, reset at 00:00 UTC; a Free Plan key raises that to 50,000 a month.
* Which fields come back depends on the plan: the basic response is location, time zone, ASN and is\_proxy; higher plans add ISP, domain, usage type, mobile carrier, proxy details, fraud score and more.

## Endpoints

GET

Geolocate an IP address

Country, region, city, coordinates, ZIP code, time zone, ASN and AS name, proxy flag, and on higher plans ISP, domain, net speed, usage type, carrier, currency, language and proxy/fraud details.

[Open](#ip2location-io-ip-lookup)

GET

Get a domain's WHOIS record

Creation, update and expiry dates, domain age, registrar, registrant, admin, tech and billing contacts, status and nameservers.

[Open](#ip2location-io-domain-whois)

GET

List domains hosted on an IP

The domain names hosted on an IPv4 or IPv6 address, 100 per page, with the total count.

[Open](#ip2location-io-ip-domains)

### Geolocate an IP address

GET

`/`

`ip2location-io.ip.lookup`

Country, region, city, coordinates, ZIP code, time zone, ASN and AS name, proxy flag, and on higher plans ISP, domain, net speed, usage type, carrier, currency, language and proxy/fraud details.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr><td>`ip`</td><td>string</td><td>query</td><td>IPv4 or IPv6 address; the caller's own IP when left out. Example `8.8.8.8`</td></tr>
    <tr><td>`lang`</td><td>string</td><td>query</td><td>Translate continent, country, region and city names (Plus and Security plans only; others get error 10004). One of `ar`, `cs`, `da`, `de`, `en`, `es`, `et`, `fi`, `fr`, `ga`, `it`, `ja`, `ko`, `ms`, `nl`, `pt`, `ru`, `sv`, `tr`, `vi`, `zh-cn`, `zh-tw`</td></tr>
  </tbody>
</table>

[Vendor docs](https://www.ip2location.io/ip2location-documentation) · 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), [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("ip2location-io.ip.lookup", {'ip': '8.8.8.8'})
```

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

### Get a domain's WHOIS record

GET

`/`

`ip2location-io.domain.whois`

Needs&#x20;

`IP2LOCATIONIO_API_KEY`

Creation, update and expiry dates, domain age, registrar, registrant, admin, tech and billing contacts, status and nameservers.

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>query</td><td>The domain name. Example `example.com`</td></tr>
  </tbody>
</table>

[Vendor docs](https://www.ip2location.io/ip2whois-documentation) · Same job: [API Ninjas](https://docs.webrouter.net/data-apis/apininjas.md#apininjas-whois), [Public Interest Registry RDAP (.org)](https://docs.webrouter.net/data-apis/pir-rdap.md#pir-rdap-domain-get), [SecurityTrails](https://docs.webrouter.net/data-apis/securitytrails.md#securitytrails-domain-whois), [Verisign RDAP (.com, .net)](https://docs.webrouter.net/data-apis/verisign-rdap.md#verisign-rdap-domain-get), [WhoisXML API](https://docs.webrouter.net/data-apis/whoisxml-api.md#whoisxml-api-whois-get)

```python Python theme={null}
router.call_data_api("ip2location-io.domain.whois", {'domain': 'example.com'})
```

```text MCP theme={null}
call_data_api(endpoint="ip2location-io.domain.whois", params={"domain": "example.com"})
```

> [!NOTE]
>
> * Needs an API key, sent as a Bearer token (the key query parameter is the documented alternative).

### List domains hosted on an IP

GET

`/domains`

`ip2location-io.ip.domains`

Needs&#x20;

`IP2LOCATIONIO_API_KEY`

The domain names hosted on an IPv4 or IPv6 address, 100 per page, with the total count.

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>query</td><td>IPv4 or IPv6 address. Example `8.8.8.8`</td></tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Result page, default 1; total\_pages says how many there are.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.ip2location.io/ip2whois-domains-documentation)

```python Python theme={null}
router.call_data_api("ip2location-io.ip.domains", {'ip': '8.8.8.8'})
```

```text MCP theme={null}
call_data_api(endpoint="ip2location-io.ip.domains", params={"ip": "8.8.8.8"})
```

> [!NOTE]
>
> * Needs an API key, sent as a Bearer token (the key query parameter is the documented alternative).


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