# MaxMind GeoIP API reference

> MaxMind's GeoLite web services return the country or the city, location, and network details for an IP address. An investigator uses them to see where an address is registered and which network it sits in. Requests use HTTP basic authentication: your MaxMind account ID is the username and a…

Source: https://osinttools.io/apis/maxmind-geoip/ (Markdown view of an OSINTtools.io page; append `.md` to any page URL for this format).

Compiled by OSINTtools.io editors from the vendor's docs, updated Nov 29, 2026. Listing: https://osinttools.io/tools/maxmind-geoip/

- Base URL: https://geolite.info/geoip/v2.1
- Authentication: HTTP basic authentication. Get a key: https://www.maxmind.com/en/geolite2/signup Account ID as username, license key as password.
- Rate limits: GeoLite web services: 1,000 lookups per day per service
- Vendor docs: https://dev.maxmind.com/geoip/docs/web-services/

## Overview

MaxMind's GeoLite web services return the country or the city, location, and network details for an IP address. An investigator uses them to see where an address is registered and which network it sits in.

Requests use HTTP basic authentication: your MaxMind account ID is the username and a license key is the password. The GeoLite host is `https://geolite.info`; the paid GeoIP services use `https://geoip.maxmind.com`. Use `me` in place of the address to look up the caller's own address.

The docs say GeoLite web service users are limited to 1,000 lookups per day per service, and that the free City data is less accurate than paid GeoIP City data.

## Errors

| Status | Meaning |
| --- | --- |
| 400 | IP_ADDRESS_INVALID, IP_ADDRESS_REQUIRED, IP_ADDRESS_RESERVED or SERVICE_INVALID |
| 401 | AUTHORIZATION_INVALID, LICENSE_KEY_REQUIRED or ACCOUNT_ID_REQUIRED |
| 402 | INSUFFICIENT_FUNDS (for GeoLite: the daily query limit was reached) |
| 403 | PERMISSION_REQUIRED |
| 404 | IP_ADDRESS_NOT_FOUND |
| 429 | Rate limited |
| 500 | SERVER_ERROR |
| 503 | Service unavailable |

## GeoLite lookups

### Country data for an IP address, or for the caller with `me`.

`GET /country/{ip_address}`

- Takes: IP address
- Footprint: passive (the target is not contacted)

Returns the country, registered country, continent and basic traits for the address.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ip_address` | path | string | yes | IPv4 or IPv6 address, or `me` Example: 203.0.113.7 |

Response fields:

- `continent.code` (string): Continent code
- `country.iso_code` (string): Country ISO code
- `country.names` (object): Country names by locale
- `country.is_in_european_union` (boolean): Whether the country is in the EU
- `registered_country.iso_code` (string): Country where the network is registered
- `traits.ip_address` (string): The address looked up
- `traits.network` (string): Network the address belongs to

```bash
curl 'https://geolite.info/geoip/v2.1/country/203.0.113.7' \
  -u 'USERNAME:PASSWORD'
```

Example response (200):

```json
{
  "continent": {
    "code": "EU"
  },
  "country": {
    "iso_code": "NL",
    "is_in_european_union": true,
    "names": {
      "en": "Netherlands"
    }
  },
  "registered_country": {
    "iso_code": "NL"
  },
  "traits": {
    "ip_address": "203.0.113.7",
    "network": "203.0.113.0/24"
  }
}
```

### City, location and network data for an IP address, or for the caller with `me`.

`GET /city/{ip_address}`

- Takes: IP address
- Footprint: passive (the target is not contacted)

Returns city, subdivisions, postal code, coordinates with an accuracy radius, time zone and the autonomous system. GeoLite City leaves out ISP, organization, domain and connection type.

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `ip_address` | path | string | yes | IPv4 or IPv6 address, or `me` Example: 203.0.113.7 |

Response fields:

- `city.names` (object): City names by locale
- `country.iso_code` (string): Country ISO code
- `subdivisions[].iso_code` (string): Subdivision code, largest to smallest
- `postal.code` (string): Postal code
- `location.latitude` (number): Latitude
- `location.longitude` (number): Longitude
- `location.accuracy_radius` (integer): Accuracy radius in km
- `location.time_zone` (string): Time zone name
- `traits.autonomous_system_number` (integer): AS number
- `traits.autonomous_system_organization` (string): AS organization
- `traits.ip_address` (string): The address looked up
- `traits.network` (string): Network the address belongs to

```bash
curl 'https://geolite.info/geoip/v2.1/city/203.0.113.7' \
  -u 'USERNAME:PASSWORD'
```

Example response (200):

```json
{
  "city": {
    "names": {
      "en": "Amsterdam"
    }
  },
  "country": {
    "iso_code": "NL"
  },
  "subdivisions": [
    {
      "iso_code": "NH"
    }
  ],
  "postal": {
    "code": "1000"
  },
  "location": {
    "latitude": 52.37,
    "longitude": 4.89,
    "accuracy_radius": 20,
    "time_zone": "Europe/Amsterdam"
  },
  "traits": {
    "autonomous_system_number": 64500,
    "autonomous_system_organization": "Example Network",
    "ip_address": "203.0.113.7",
    "network": "203.0.113.0/24"
  }
}
```

---

Listings on OSINTtools.io are reviewed by editors and re-verified on a schedule; check pricing and availability on the vendor's site before relying on them, and use OSINT tools only with a lawful basis.
Site index for agents: https://osinttools.io/llms.txt · Full catalog: https://osinttools.io/llms-full.txt · MCP server (Streamable HTTP, no auth): https://osinttools.io/mcp/
