Skip to content
OSINTtools.io

MaxMind GeoIP API

IP geolocation and network data from MaxMind, with a free web demo and free GeoLite databases.

Base URL
https://geolite.info/geoip/v2.1
Sign-in
Basic auth
Format
REST
Endpoints
2

Compiled by OSINTtools.io editors from dev.maxmind.com · updated Nov 29, 2026Work on this API? Claim it to keep these docs currentReport a mistake

Introduction

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.

Quick start

  1. Get a key

    Create an account with MaxMind GeoIP and copy your basic auth. Where to get it

  2. Make your first request

    Country data for an IP address, or for the caller with `me`.. Replace YOUR_API_KEY and run it in a terminal, or use Try it on the endpoint.

    curl 'https://geolite.info/geoip/v2.1/country/203.0.113.7' \
      -u 'USERNAME:PASSWORD'
  3. Read the response

    A 200 response looks like this.

    {
      "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"
      }
    }

Authentication

HTTP basic authentication: your username and password (or key and secret) on every request.

Account ID as username, license key as password.

Get a key from MaxMind GeoIP

Try it on this page keeps your key in your browser; it is never sent to OSINTtools.io.

Rate limits and pricing

GeoLite web services: 1,000 lookups per day per service

Errors

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

GeoLite lookups

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

Path parameters

ip_addressstringrequiredtakes your ip address

IPv4 or IPv6 address, or me

Example: 203.0.113.7
Response fields · 7Show

codestring

Continent code

iso_codestring

Country ISO code

namesobject

Country names by locale

is_in_european_unionboolean

Whether the country is in the EU

iso_codestring

Country where the network is registered

ip_addressstring

The address looked up

networkstring

Network the address belongs to

curl 'https://geolite.info/geoip/v2.1/country/203.0.113.7' \
  -u 'USERNAME:PASSWORD'
Replace YOUR_API_KEY with your key
Response
{
  "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"
  }
}

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.

Path parameters

ip_addressstringrequiredtakes your ip address

IPv4 or IPv6 address, or me

Example: 203.0.113.7
Response fields · 12Show

namesobject

City names by locale

iso_codestring

Country ISO code

iso_codestring

Subdivision code, largest to smallest

codestring

Postal code

latitudenumber

Latitude

longitudenumber

Longitude

accuracy_radiusinteger

Accuracy radius in km

time_zonestring

Time zone name

autonomous_system_numberinteger

AS number

autonomous_system_organizationstring

AS organization

ip_addressstring

The address looked up

networkstring

Network the address belongs to

curl 'https://geolite.info/geoip/v2.1/city/203.0.113.7' \
  -u 'USERNAME:PASSWORD'
Replace YOUR_API_KEY with your key
Response
{
  "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"
  }
}