GeoIP and GeoLite API Responses

Headers

The Content-Type for a successful response varies based on the service as outlined below:

ServiceContent-Type
GeoIP Countryapplication/vnd.maxmind.com-country+json; charset=UTF-8; version=2.1
GeoIP Cityapplication/vnd.maxmind.com-city+json; charset=UTF-8; version=2.1
GeoIP Insightsapplication/vnd.maxmind.com-insights+json; charset=UTF-8; version=2.1
GeoLite2 Countryapplication/vnd.maxmind.com-country+json; charset=UTF-8; version=2.1
GeoLite2 Cityapplication/vnd.maxmind.com-city+json; charset=UTF-8; version=2.1

Errors may be returned with the Content-Type set to application/vnd.maxmind.com-error+json; charset=UTF-8; version=2.0. If this is the case, then the body of the response contains a JSON document with two keys, code and error. See the Errors section for more details.

The response will always include a Content-Length header as well.

Errors

When the server returns an error (4xx or 5xx), the response may include a JSON document in the body. This document is a single object with the keys code and error. The code field is a static error code for machine use. The value of any given code will never change, though codes can be added or removed. The error field is a human-readable description of the error and may change at any time.

Not all errors include a JSON body. An error in content negotiation will not include a body, nor will many 5xx errors, which typically happen outside of our web service request handling code. You should check the Content-Type type of an error response before attempting to decode the body as JSON.

In addition to the errors documented below, client code should also be prepared to handle any valid HTTP 4xx or 5xx status code.

CodeHTTP StatusDescription
IP_ADDRESS_INVALID400 Bad RequestYou have not supplied a valid IPv4 or IPv6 address.
IP_ADDRESS_REQUIRED400 Bad RequestYou have not supplied an IP address, which is a required field.
IP_ADDRESS_RESERVED400 Bad RequestYou have supplied an IP address which belongs to a reserved or private range.
AUTHORIZATION_INVALID401 UnauthorizedYou have supplied an invalid MaxMind account ID and/or license key in the Authorization header.
LICENSE_KEY_REQUIRED401 UnauthorizedYou have not supplied a MaxMind license key in the Authorization header.
ACCOUNT_ID_REQUIRED401 UnauthorizedYou have not supplied a MaxMind account ID in the Authorization header.
INSUFFICIENT_FUNDS402 Payment RequiredThe license key you have provided does not have sufficient funds to use this service. Please purchase more service credits.
PERMISSION_REQUIRED402 Payment RequiredYou do not have permission to use the service. Please contact our support team for more information.
(none)403 ForbiddenThis status is returned when the request body is larger than 20,000 bytes.
IP_ADDRESS_NOT_FOUND404 Not FoundThe supplied IP address is not in the database.
(none)415 Unsupported Media TypeYour request included a Content-Type header that is not supported. For GET requests, this means the web service cannot return content of that type. For PUT and POST queries, this means the web service cannot parse a request body of that type.
(none)503 Service Not AvailableThere is a problem with the web service server. You can try this request again later.

Response

All services return data as a JSON document. The document that is returned always consists of an object (aka map or hash). Each key in the object in turn maps to an object or an array of objects.

 1{
 2  "city":                 { ... },
 3  "continent":            { ... },
 4  "country":              { ... },
 5  "location":             { ... },
 6  "postal":               { ... },
 7  "registered_country":   { ... },
 8  "represented_country":  { ... },
 9  "subdivisions":         [{ ... }, ... ],
10  "traits":               { ... },
11  "maxmind":              { ... }
12}

The exact set of top-level keys varies based on the particular GeoIP web service you are using. If a key maps to an undefined or empty value, it is not included in the JSON object. This applies both to top-level keys and the objects they map to.

The data returned in the document will be in UTF-8 encoding.

For full examples of response bodies, select one of the following:

City

city is a JSON object that contains details about the city associated with the IP address.

 1{
 2  "confidence": 25,
 3  "geoname_id": 54321,
 4  "names": {
 5    "de": "Los Angeles",
 6    "en": "Los Angeles",
 7    "es": "Los Ángeles",
 8    "fr": "Los Angeles",
 9    "ja": "ロサンゼルス市",
10    "pt-BR": "Los Angeles",
11    "ru": "Лос-Анджелес",
12    "zh-CN": "洛杉矶"
13  }
14}
KeyValue TypeDescription
confidenceinteger

A value from 0-100 representing our confidence that the city is correct.

Learn more about confidence factors on our Knowledge Base.

min: 0, max: 100

GeoIP Country GeoIP City GeoIP Insights
geoname_idinteger

A unique identifier for the city as specified by GeoNames.

Learn more about GeoNames IDs on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
namesobject

A map from locale codes, such as en, to the localized names for the feature.

Learn more about localized geolocation names on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights

Continent

continent is a JSON object that contains information about the continent associated with the IP address.

 1{
 2  "code": "NA",
 3  "geoname_id": 123456,
 4  "names": {
 5    "de": "Nordamerika",
 6    "en": "North America",
 7    "es": "América del Norte",
 8    "fr": "Amérique du Nord",
 9    "ja": "北アメリカ",
10    "pt-BR": "América do Norte",
11    "ru": "Северная Америка",
12    "zh-CN": "北美洲"
13  }
14}
KeyValue TypeDescription
codestring

A two-character code for the continent associated with the IP address. The possible codes are:

  • AF – Africa
  • AN – Antarctica
  • AS – Asia
  • EU – Europe
  • NA – North America
  • OC – Oceania
  • SA – South America

Learn more about continent codes on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
geoname_idinteger

A unique identifier for the continent as specified by GeoNames.

Learn more about GeoNames IDs on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
namesobject

A map from locale codes, such as en, to the localized names for the feature.

Learn more about localized geolocation names on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights

Country

country is a JSON object that contains details about the country where MaxMind believes the end user is located.

 1{
 2  "confidence": 75,
 3  "geoname_id": 6252001,
 4  "is_in_european_union": false,
 5  "iso_code": "US",
 6  "names": {
 7    "de": "USA",
 8    "en": "United States",
 9    "es": "Estados Unidos",
10    "fr": "États-Unis",
11    "ja": "アメリカ合衆国",
12    "pt-BR": "Estados Unidos",
13    "ru": "США",
14    "zh-CN": "美国"
15  }
16}
KeyValue TypeDescription
confidenceinteger

A value from 0-100 representing our confidence that the country is correct.

Learn more about confidence factors on our Knowledge Base.

min: 0, max: 100

GeoIP Country GeoIP City GeoIP Insights
geoname_idinteger

A unique identifier for the country as specified by GeoNames.

Learn more about GeoNames IDs on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
is_in_european_unionboolean

This is true if the country is a member state of the European Union. Otherwise, the key is not included in the country object.

Learn more about the European Union flag on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
iso_codestring

A two-character ISO 3166-1 country code for the country associated with the IP address.

Learn more about country codes on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
namesobject

A map from locale codes, such as en, to the localized names for the feature.

Learn more about localized geolocation names on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights

Location

location is a JSON object that contains specific details about the location associated with the IP address.

1{
2  "accuracy_radius": 20,
3  "average_income": 128321,
4  "latitude": 37.6293,
5  "longitude": -122.1163,
6  "metro_code": 807,
7  "time_zone": "America/Los_Angeles"
8}
KeyValue TypeDescription
accuracy_radiusinteger

The approximate accuracy radius, in kilometers, around the latitude and longitude for the geographical entity (country, subdivision, city or postal code) associated with the IP address. We have a 67% confidence that the location of the end-user falls within the area defined by the accuracy radius and the latitude and longitude coordinates.

Learn about the geolocation area defined by latitude, longitude, and accuracy radius, on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
average_incomeinteger

The average annual income associated with the IP address in US dollars. This is only available for IP addresses in the US.

Learn more about average income data on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
latitudedecimal

The approximate WGS84 latitude of the postal code, city, subdivision or country associated with the IP address.

The coordinates are not precise and should not be used to identify a particular street address or household. To better represent a level of accuracy, please include the accuracy_radius when displaying latitude and longitude and make it clear that the coordinates refer to a larger geographical area instead of a precise location.

Learn about the geolocation area defined by latitude, longitude, and accuracy radius, on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
longitudedecimal

The approximate WGS84 longitude of the postal code, city, subdivision or country associated with the IP address.

The coordinates are not precise and should not be used to identify a particular street address or household. To better represent a level of accuracy, please include the accuracy_radius when displaying latitude and longitude and make it clear that the coordinates refer to a larger geographical area instead of a precise location.

Learn about the geolocation area defined by latitude, longitude, and accuracy radius, on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
metro_codeinteger
Metro code is a geolocation target code from Google.
GeoIP Country GeoIP City GeoIP Insights
population_densityinteger

The estimated number of people per square kilometer. This is only available for IP addresses in the US.

Learn more about population density data on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
time_zonestring

The time zone associated with location, as specified by the IANA Time Zone Database, e.g., “America/New_York”.

Learn more about time zone data on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights

Postal

postal is a JSON object that contains details about the postal code associated with the IP address.

1{
2  "code": "90001",
3  "confidence": 10
4}
KeyValue TypeDescription
codestring

A postal code close to the user’s location. For the following countries, we return partial postal codes with the number of characters indicated below:

  • United States: 5
  • Canada: 3
  • United Kingdom: 2-4
  • Brazil: 5
  • Ireland: 3
  • Japan: 7 (specified for the first 6. The last digit defaults to 1)
  • Netherlands: 4
  • Portugal: 7 (accurate for the first 4. The last 3 often defaults to -001)
  • Singapore: 2

Learn more about postal code data on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
confidenceinteger

A value from 0-100 representing our confidence that the postal code is correct.

Learn more about confidence factors on our Knowledge Base.

min: 0 max: 100

GeoIP Country GeoIP City GeoIP Insights

Registered Country

registered_country is a JSON object that contains details about the country in which the ISP has registered the IP address.

Learn about registered countries on our Knowledge Base.

 1{
 2  "geoname_id": 6252001,
 3  "is_in_european_union": true,
 4  "iso_code": "US",
 5  "names": {
 6    "de": "USA",
 7    "en": "United States",
 8    "es": "Estados Unidos",
 9    "fr": "États-Unis",
10    "ja": "アメリカ合衆国",
11    "pt-BR": "Estados Unidos",
12    "ru": "США",
13    "zh-CN": "美国"
14  }
15}
KeyValue TypeDescription
geoname_idinteger

A unique identifier for the country as specified by GeoNames.

Learn more about GeoNames IDs on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
is_in_european_unionboolean

This is true if the country is a member state of the European Union. Otherwise, the key is not included in the country object.

Learn more about the European Union flag on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
iso_codestring

A two-character ISO 3166-1 country code for the country associated with the IP address.

Learn more about country codes on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
namesobject

A map from locale codes, such as en, to the localized names for the feature.

Learn more about localized geolocation names on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights

Represented Country

represented_country is a JSON object that contains details about the country which is represented by users of the IP address. For instance, the country represented by an overseas military base.

Learn about represented countries on our Knowledge Base.

 1{
 2  "geoname_id": 6252001,
 3  "is_in_european_union": true,
 4  "iso_code": "US",
 5  "names": {
 6    "de": "USA",
 7    "en": "United States",
 8    "es": "Estados Unidos",
 9    "fr": "États-Unis",
10    "ja": "アメリカ合衆国",
11    "pt-BR": "Estados Unidos",
12    "ru": "США",
13    "zh-CN": "美国"
14  },
15  "type": "military"
16}
KeyValue TypeDescription
geoname_idinteger

A unique identifier for the country as specified by GeoNames.

Learn more about GeoNames IDs on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
is_in_european_unionboolean

This is true if the country is a member state of the European Union. Otherwise, the key is not included in the country object.

Learn more about the European Union flag on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
iso_codestring

A two-character ISO 3166-1 country code for the country associated with the IP address.

Learn more about country codes on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
namesobject

A map from locale codes, such as en, to the localized names for the feature.

Learn more about localized geolocation names on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
typestring

The type of represented country. Currently limited to military, but may include other types in the future.

Learn more about localized geolocation names on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights

Subdivisions

subdivisions is an array of JSON objects. Each of these objects contains details about a subdivision of the country in which the IP address resides. Subdivisions are arranged from largest to smallest.

 1[
 2  {
 3    "confidence": 50,
 4    "geoname_id": 5332921,
 5    "iso_code": "CA",
 6    "names": {
 7      "de": "Kalifornien",
 8      "en": "California",
 9      "es": "California",
10      "fr": "Californie",
11      "ja": "カリフォルニア",
12      "ru": "Калифорния",
13      "zh-CN": "加州"
14    }
15  }
16]
KeyValue TypeDescription
confidenceinteger

A value from 0-100 representing our confidence that the region is correct.

Learn more about confidence factors on our Knowledge Base.

min: 0, max: 100

GeoIP Country GeoIP City GeoIP Insights
geoname_idinteger

A unique identifier for the region as specified by GeoNames.

Learn more about GeoNames IDs on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
iso_codestring

A string of up to three characters containing the region-portion of the ISO 3166-2 code for the region associated with the IP address.

Learn more about ISO code data on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
namesobject

A map from locale codes, such as en, to the localized names for the feature.

Learn more about localized geolocation names on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights

Traits

traits is a JSON object that contains general traits associated with the IP address.

 1{
 2  "autonomous_system_number": 1239,
 3  "autonomous_system_organization": "Linkem IR WiMax Network",
 4  "connection_type": "Cable/DSL",
 5  "domain": "example.com",
 6  "ip_address": "1.2.3.4",
 7  "is_anonymous": true,
 8  "is_anonymous_vpn": true,
 9  "is_anycast": true,
10  "is_hosting_provider": true,
11  "is_public_proxy": true,
12  "is_residential_proxy": true,
13  "is_tor_exit_node": true,
14  "isp": "Linkem spa",
15  "mobile_country_code": "310",
16  "mobile_network_code": "004",
17  "organization": "Linkem IR WiMax Network",
18  "network": "1.2.3.0/24",
19  "static_ip_score": 1.5,
20  "user_count": 1,
21  "user_type": "traveler"
22}
KeyValue TypeDescription
autonomous_system_numberinteger

The autonomous system number associated with the IP address.

Learn more about autonomous system data on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
autonomous_system_organizationstring

The organization associated with the registered autonomous system number for the IP address.

Learn more about autonomous system data on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
connection_typestring

One of the following values: Cable/DSL, Cellular, Corporate, or Satellite. Additional values may be added in the future.

This field is not present in the GeoLite2 City web service.

Learn more about connection type data on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
domainstring

The second level domain associated with the IP address. This will be something like “example.com” or “example.co.uk”, not “foo.example.com”.

This field is not present in the GeoLite2 City web service.

Learn more about domain name data on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
ip_addressstring
The requested IP address.
GeoIP Country GeoIP City GeoIP Insights
is_anonymousboolean

This is true if the IP address belongs to any sort of anonymous network. Otherwise, the key is not included in the traits object.

Learn more about anonymizer and proxy detection on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
is_anonymous_vpnboolean

This is true if the IP address is registered to an anonymous VPN provider. Otherwise, the key is not included in the traits object.

If a VPN provider does not register subnets under names associated with them, we will likely only flag their IP ranges using the is_hosting_provider flag.

Learn more about VPNs on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
is_anycastboolean
This is true if the IP address belongs to an anycast network.
GeoIP Country GeoIP City GeoIP Insights
is_hosting_providerboolean

This is true if the IP address belongs to a hosting or VPN provider (see description of is_anonymous_vpn flag). Otherwise, the key is not included in the traits object.

Learn more about hosting providers used for anonymizing on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
is_public_proxyboolean

This is true if the IP address belongs to a public proxy. Otherwise, the key is not included in the traits object.

Learn more about public proxies on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
is_residential_proxyboolean

This is true if the IP address is on a suspected anonymizing network and belongs to a residential ISP (does not include peer-to-peer proxy IPs). Otherwise, the key is not included in the traits object.

Learn more about residential proxies on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
is_tor_exit_nodeboolean

This is true if the IP address is a Tor exit node. Otherwise, the key is not included in the traits object.

Learn more about Tor exit nodes on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
ispboolean

The name of the ISP associated with the IP address.

This field is not present in the GeoLite2 City web service.

Learn more about ISP data on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
mobile_country_codestring

The mobile country code (MCC) associated with the IP address and ISP.

This field is not present in the GeoLite2 City web service.

Learn more about mobile country code data on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
mobile_network_codestring

The mobile network code (MNC) associated with the IP address and ISP.

This field is not present in the GeoLite2 City web service.

Learn more about mobile network code data on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
networkstring
The network in CIDR notation associated with the record. In particular, this is the largest network where all of the fields besides ip_address have the same value.
GeoIP Country GeoIP City GeoIP Insights
organizationstring

The name of the organization associated with the IP address.

This field is not present in the GeoLite2 City web service.

Learn more about organization data on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
static_ip_scoredecimal

An indicator of how static or dynamic an IP address is. The value ranges from 0 to 99.99 with higher values meaning a greater static association. For example, many IP addresses with a user_type of cellular have a score under one. Broadband IPs that don’t change very often typically have a score above thirty.

This indicator can be useful for deciding whether an IP address represents the same user over time.

Learn more about the static IP score on our Knowledge Base.

min: 0, max: 99.99

GeoIP Country GeoIP City GeoIP Insights
user_countinteger

The estimated number of users sharing the IP/network during the past 24 hours. For IPv4, the count is for the individual IP. For IPv6, the count is for the /64 network.

Learn more about the user count on our Knowledge Base.

GeoIP Country GeoIP City GeoIP Insights
user_typestring

The user type associated with the IP address. This will be one of the following values:

GeoIP Country GeoIP City GeoIP Insights

MaxMind

maxmind is a JSON object that contains information related to your MaxMind account.

1{
2  "queries_remaining": 54321
3}
KeyValue TypeDescription
queries_remaininginteger

The approximate number of remaining queries available for the end point which is being called.

This field is not present in the GeoLite2 City web service.

GeoIP Country GeoIP City GeoIP Insights

Miscellaneous Notes

Languages

Many of the objects listed above include a names key. The value of that key is in turn an object which maps locale codes to a name in the appropriate language and script.

Currently, this web service may return the following locale codes:

CodeLanguageNotes
deGerman
enEnglishEnglish names may still include accented characters if that is the accepted spelling in English. In other words, English does not mean ASCII.
esSpanish
frFrench
jaJapanese
pt-BRBrazilian Portuguese
ruRussian
zh-CNChinese (Simplified)

If an object has any name data, then en will be one of the keys in the names object. No other language is guaranteed. However, it is possible that we might not have any name data at all for a given object.

Returned Values as Database, Map, Dict, or Hash Keys

We strongly discourage you from using a value from any names field as a key in a database or map/dict/hash data structure.

These names may change between releases. Instead we recommend using one of the following:

Data objectRecommended key
citygeoname_id
continentcode or geoname_id
country, registered_country, and represented_countryiso_code or geoname_id
postalcode
subdivisionsiso_code or geoname_id

Example Response Bodies

Each service returns data as a JSON document. The document that is returned always consists of an object (aka map or hash). Below are the schema definitions that describe each service’s response body.

GeoIP Country Body Example

The following is an example of a full response to a GeoIP Country web service request.

A GeoLite2 Country request follow the same structure, but the data returned will be less accurate. In addition, GeoLite Country requests will not return the maxmind object.

 1{
 2  "continent": {
 3    "code": "NA",
 4    "geoname_id": 123456,
 5    "names": {
 6      "de": "Nordamerika",
 7      "en": "North America",
 8      "es": "América del Norte",
 9      "fr": "Amérique du Nord",
10      "ja": "北アメリカ",
11      "pt-BR": "América do Norte",
12      "ru": "Северная Америка",
13      "zh-CN": "北美洲"
14    }
15  },
16  "country": {
17    "geoname_id": 6252001,
18    "is_in_european_union": false,
19    "iso_code": "US",
20    "names": {
21      "de": "USA",
22      "en": "United States",
23      "es": "Estados Unidos",
24      "fr": "États-Unis",
25      "ja": "アメリカ合衆国",
26      "pt-BR": "Estados Unidos",
27      "ru": "США",
28      "zh-CN": "美国"
29    }
30  },
31  "maxmind": {
32    "queries_remaining": 54321
33  },
34  "registered_country": {
35    "geoname_id": 6252001,
36    "is_in_european_union": true,
37    "iso_code": "US",
38    "names": {
39      "de": "USA",
40      "en": "United States",
41      "es": "Estados Unidos",
42      "fr": "États-Unis",
43      "ja": "アメリカ合衆国",
44      "pt-BR": "Estados Unidos",
45      "ru": "США",
46      "zh-CN": "美国"
47    }
48  },
49  "represented_country": {
50    "geoname_id": 6252001,
51    "is_in_european_union": true,
52    "iso_code": "US",
53    "names": {
54      "de": "USA",
55      "en": "United States",
56      "es": "Estados Unidos",
57      "fr": "États-Unis",
58      "ja": "アメリカ合衆国",
59      "pt-BR": "Estados Unidos",
60      "ru": "США",
61      "zh-CN": "美国"
62    },
63    "type": "military"
64  },
65  "traits": {
66    "ip_address": "1.2.3.4",
67    "is_anycast": true,
68    "network": "1.2.3.0/24"
69  }
70}

GeoIP City Body Example

The following is an example of a full response to a GeoIP City Plus web service request.

A GeoLite2 City request follow the same structure, but the data returned will be less accurate. In addition, GeoLite2 City requests will not return the domain, isp, or organization values in the traits object, and it will not return the maxmind object.

  1{
  2  "continent": {
  3    "code": "NA",
  4    "geoname_id": 123456,
  5    "names": {
  6      "de": "Nordamerika",
  7      "en": "North America",
  8      "es": "América del Norte",
  9      "fr": "Amérique du Nord",
 10      "ja": "北アメリカ",
 11      "pt-BR": "América do Norte",
 12      "ru": "Северная Америка",
 13      "zh-CN": "北美洲"
 14    }
 15  },
 16  "country": {
 17    "geoname_id": 6252001,
 18    "is_in_european_union": false,
 19    "iso_code": "US",
 20    "names": {
 21      "de": "USA",
 22      "en": "United States",
 23      "es": "Estados Unidos",
 24      "fr": "États-Unis",
 25      "ja": "アメリカ合衆国",
 26      "pt-BR": "Estados Unidos",
 27      "ru": "США",
 28      "zh-CN": "美国"
 29    }
 30  },
 31  "maxmind": {
 32    "queries_remaining": 54321
 33  },
 34  "registered_country": {
 35    "geoname_id": 6252001,
 36    "is_in_european_union": true,
 37    "iso_code": "US",
 38    "names": {
 39      "de": "USA",
 40      "en": "United States",
 41      "es": "Estados Unidos",
 42      "fr": "États-Unis",
 43      "ja": "アメリカ合衆国",
 44      "pt-BR": "Estados Unidos",
 45      "ru": "США",
 46      "zh-CN": "美国"
 47    }
 48  },
 49  "represented_country": {
 50    "geoname_id": 6252001,
 51    "is_in_european_union": true,
 52    "iso_code": "US",
 53    "names": {
 54      "de": "USA",
 55      "en": "United States",
 56      "es": "Estados Unidos",
 57      "fr": "États-Unis",
 58      "ja": "アメリカ合衆国",
 59      "pt-BR": "Estados Unidos",
 60      "ru": "США",
 61      "zh-CN": "美国"
 62    },
 63    "type": "military"
 64  },
 65  "traits": {
 66    "ip_address": "1.2.3.4",
 67    "is_anycast": true,
 68    "network": "1.2.3.0/24",
 69    "autonomous_system_number": 1239,
 70    "autonomous_system_organization": "Linkem IR WiMax Network",
 71    "connection_type": "Cable/DSL",
 72    "domain": "example.com",
 73    "isp": "Linkem spa",
 74    "mobile_country_code": "310",
 75    "mobile_network_code": "004",
 76    "organization": "Linkem IR WiMax Network"
 77  },
 78  "city": {
 79    "geoname_id": 54321,
 80    "names": {
 81      "de": "Los Angeles",
 82      "en": "Los Angeles",
 83      "es": "Los Ángeles",
 84      "fr": "Los Angeles",
 85      "ja": "ロサンゼルス市",
 86      "pt-BR": "Los Angeles",
 87      "ru": "Лос-Анджелес",
 88      "zh-CN": "洛杉矶"
 89    }
 90  },
 91  "location": {
 92    "accuracy_radius": 20,
 93    "latitude": 37.6293,
 94    "longitude": -122.1163,
 95    "metro_code": 807,
 96    "time_zone": "America/Los_Angeles"
 97  },
 98  "postal": {
 99    "code": "90001"
100  },
101  "subdivisions": [
102    {
103      "geoname_id": 5332921,
104      "iso_code": "CA",
105      "names": {
106        "de": "Kalifornien",
107        "en": "California",
108        "es": "California",
109        "fr": "Californie",
110        "ja": "カリフォルニア",
111        "ru": "Калифорния",
112        "zh-CN": "加州"
113      }
114    }
115  ]
116}

GeoIP Insights Body Example

The following is an example of a full response to a GeoIP Insights web service request.

  1{
  2  "continent": {
  3    "code": "NA",
  4    "geoname_id": 123456,
  5    "names": {
  6      "de": "Nordamerika",
  7      "en": "North America",
  8      "es": "América del Norte",
  9      "fr": "Amérique du Nord",
 10      "ja": "北アメリカ",
 11      "pt-BR": "América do Norte",
 12      "ru": "Северная Америка",
 13      "zh-CN": "北美洲"
 14    }
 15  },
 16  "country": {
 17    "geoname_id": 6252001,
 18    "is_in_european_union": false,
 19    "iso_code": "US",
 20    "names": {
 21      "de": "USA",
 22      "en": "United States",
 23      "es": "Estados Unidos",
 24      "fr": "États-Unis",
 25      "ja": "アメリカ合衆国",
 26      "pt-BR": "Estados Unidos",
 27      "ru": "США",
 28      "zh-CN": "美国"
 29    },
 30    "confidence": 75
 31  },
 32  "maxmind": {
 33    "queries_remaining": 54321
 34  },
 35  "registered_country": {
 36    "geoname_id": 6252001,
 37    "is_in_european_union": true,
 38    "iso_code": "US",
 39    "names": {
 40      "de": "USA",
 41      "en": "United States",
 42      "es": "Estados Unidos",
 43      "fr": "États-Unis",
 44      "ja": "アメリカ合衆国",
 45      "pt-BR": "Estados Unidos",
 46      "ru": "США",
 47      "zh-CN": "美国"
 48    }
 49  },
 50  "represented_country": {
 51    "geoname_id": 6252001,
 52    "is_in_european_union": true,
 53    "iso_code": "US",
 54    "names": {
 55      "de": "USA",
 56      "en": "United States",
 57      "es": "Estados Unidos",
 58      "fr": "États-Unis",
 59      "ja": "アメリカ合衆国",
 60      "pt-BR": "Estados Unidos",
 61      "ru": "США",
 62      "zh-CN": "美国"
 63    },
 64    "type": "military"
 65  },
 66  "traits": {
 67    "ip_address": "1.2.3.4",
 68    "is_anycast": true,
 69    "network": "1.2.3.0/24",
 70    "autonomous_system_number": 1239,
 71    "autonomous_system_organization": "Linkem IR WiMax Network",
 72    "connection_type": "Cable/DSL",
 73    "domain": "example.com",
 74    "isp": "Linkem spa",
 75    "mobile_country_code": "310",
 76    "mobile_network_code": "004",
 77    "organization": "Linkem IR WiMax Network",
 78    "is_anonymous": true,
 79    "is_anonymous_vpn": true,
 80    "is_hosting_provider": true,
 81    "is_public_proxy": true,
 82    "is_residential_proxy": true,
 83    "is_tor_exit_node": true,
 84    "static_ip_score": 1.5,
 85    "user_count": 1,
 86    "user_type": "traveler"
 87  },
 88  "city": {
 89    "confidence": 25,
 90    "geoname_id": 54321,
 91    "names": {
 92      "de": "Los Angeles",
 93      "en": "Los Angeles",
 94      "es": "Los Ángeles",
 95      "fr": "Los Angeles",
 96      "ja": "ロサンゼルス市",
 97      "pt-BR": "Los Angeles",
 98      "ru": "Лос-Анджелес",
 99      "zh-CN": "洛杉矶"
100    }
101  },
102  "location": {
103    "accuracy_radius": 20,
104    "latitude": 37.6293,
105    "longitude": -122.1163,
106    "metro_code": 807,
107    "time_zone": "America/Los_Angeles",
108    "average_income": 128321
109  },
110  "postal": {
111    "code": "90001",
112    "confidence": 10
113  },
114  "subdivisions": [
115    {
116      "geoname_id": 5332921,
117      "iso_code": "CA",
118      "names": {
119        "de": "Kalifornien",
120        "en": "California",
121        "es": "California",
122        "fr": "Californie",
123        "ja": "カリフォルニア",
124        "ru": "Калифорния",
125        "zh-CN": "加州"
126      },
127      "confidence": 50
128    }
129  ]
130}