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

# MaxMind

> GeoIP2 and free GeoLite web services: country, city-level geolocation and, with Insights, ISP, connection type, user type and anonymizer (VPN, proxy, Tor, hosting) data for an IP.

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

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

Needs&#x20;

`MAXMIND_ACCOUNT_ID`

,&#x20;

`MAXMIND_LICENSE_KEY`

Endpoints

5

Auth

HTTP Basic

[Vendor docs](https://dev.maxmind.com/geoip/docs/web-services/)

&#x20;·&#x20;

[Pricing](https://www.maxmind.com/en/geoip-api-web-services)

## Setup

| Variable | | What it is |
| - | - | - |
| `MAXMIND_ACCOUNT_ID` | required | Your MaxMind account ID (maxmind.com account portal); the HTTP Basic username. |
| `MAXMIND_LICENSE_KEY` | required | A MaxMind license key (account portal > Manage License Keys); the HTTP Basic password. A GeoLite account's key works on the geolite endpoints only. |

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

## Notes

* GeoIP2 calls spend prepaid service credits (402 INSUFFICIENT\_FUNDS when they run out); the response's maxmind.queries\_remaining shows the approximate balance. GeoLite calls are free with a daily query limit, and the same 402 means that limit is reached.
* Use 'me' as the IP to look up the caller's own address. Reserved or private addresses return 400 IP\_ADDRESS\_RESERVED; an address not in the data returns 404.
* Many error responses in a row can get the account rate-limited (429).

## Endpoints

GET

Get an IP's country (GeoIP2 Country)

Country, registered and represented country, continent and traits for an IP.

[Open](#maxmind-geoip-country)

GET

Geolocate an IP to city level (GeoIP2 City Plus)

City, postal code, subdivisions, coordinates, time zone, country, continent and traits for an IP.

[Open](#maxmind-geoip-city)

GET

Get an IP's full profile (GeoIP2 Insights)

Everything in City Plus plus connection type, user type, ISP, mobile codes, confidence scores and the anonymizer object (VPN, public and residential proxy, Tor exit, hosting provider, provider name).

[Open](#maxmind-geoip-insights)

GET

Get an IP's country (free GeoLite)

Free country-level lookup on the GeoLite web service.

[Open](#maxmind-geolite-country)

GET

Geolocate an IP to city level (free GeoLite)

Free city-level lookup on the GeoLite web service; no queries\_remaining field.

[Open](#maxmind-geolite-city)

### Get an IP's country (GeoIP2 Country)

GET

`/country/{ip_address}`

`maxmind.geoip.country`

Country, registered and represented country, continent and traits for an IP.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

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

[Vendor docs](https://dev.maxmind.com/geoip/docs/web-services/requests/) · 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("maxmind.geoip.country", {'ip_address': '1.2.3.4'})
```

```text MCP theme={null}
call_data_api(endpoint="maxmind.geoip.country", params={"ip_address": "1.2.3.4"})
```

### Geolocate an IP to city level (GeoIP2 City Plus)

GET

`/city/{ip_address}`

`maxmind.geoip.city`

City, postal code, subdivisions, coordinates, time zone, country, continent and traits for an IP.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

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

[Vendor docs](https://dev.maxmind.com/geoip/docs/web-services/requests/) · 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("maxmind.geoip.city", {'ip_address': '1.2.3.4'})
```

```text MCP theme={null}
call_data_api(endpoint="maxmind.geoip.city", params={"ip_address": "1.2.3.4"})
```

### Get an IP's full profile (GeoIP2 Insights)

GET

`/insights/{ip_address}`

`maxmind.geoip.insights`

Everything in City Plus plus connection type, user type, ISP, mobile codes, confidence scores and the anonymizer object (VPN, public and residential proxy, Tor exit, hosting provider, provider name).

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

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

[Vendor docs](https://dev.maxmind.com/geoip/docs/web-services/requests/) · 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("maxmind.geoip.insights", {'ip_address': '1.2.3.4'})
```

```text MCP theme={null}
call_data_api(endpoint="maxmind.geoip.insights", params={"ip_address": "1.2.3.4"})
```

> [!NOTE]
>
> * Anonymizer flags appear only when true; a missing key means false.

### Get an IP's country (free GeoLite)

GET

`/country/{ip_address}`

`maxmind.geolite.country`

Free country-level lookup on the GeoLite web service.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

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

[Vendor docs](https://dev.maxmind.com/geoip/docs/web-services/requests/) · 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("maxmind.geolite.country", {'ip_address': '1.2.3.4'})
```

```text MCP theme={null}
call_data_api(endpoint="maxmind.geolite.country", params={"ip_address": "1.2.3.4"})
```

### Geolocate an IP to city level (free GeoLite)

GET

`/city/{ip_address}`

`maxmind.geolite.city`

Free city-level lookup on the GeoLite web service; no queries\_remaining field.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

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

[Vendor docs](https://dev.maxmind.com/geoip/docs/web-services/requests/) · 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("maxmind.geolite.city", {'ip_address': '1.2.3.4'})
```

```text MCP theme={null}
call_data_api(endpoint="maxmind.geolite.city", params={"ip_address": "1.2.3.4"})
```


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