GeoIP and GeoLite API Responses
On this page
Headers
The Content-Type
for a successful response varies based on the service as
outlined below:
Service | Content-Type |
---|---|
GeoIP Country | application/vnd.maxmind.com-country+json; charset=UTF-8; version=2.1 |
GeoIP City | application/vnd.maxmind.com-city+json; charset=UTF-8; version=2.1 |
GeoIP Insights | application/vnd.maxmind.com-insights+json; charset=UTF-8; version=2.1 |
GeoLite2 Country | application/vnd.maxmind.com-country+json; charset=UTF-8; version=2.1 |
GeoLite2 City | application/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.
Code | HTTP Status | Description |
---|---|---|
IP_ADDRESS_INVALID | 400 Bad Request | You have not supplied a valid IPv4 or IPv6 address. |
IP_ADDRESS_REQUIRED | 400 Bad Request | You have not supplied an IP address, which is a required field. |
IP_ADDRESS_RESERVED | 400 Bad Request | You have supplied an IP address which belongs to a reserved or private range. |
AUTHORIZATION_INVALID | 401 Unauthorized | You have supplied an invalid MaxMind account ID and/or license key in the Authorization header. |
LICENSE_KEY_REQUIRED | 401 Unauthorized | You have not supplied a MaxMind license key in the Authorization header. |
ACCOUNT_ID_REQUIRED | 401 Unauthorized | You have not supplied a MaxMind account ID in the Authorization header. |
INSUFFICIENT_FUNDS | 402 Payment Required | The license key you have provided does not have sufficient funds to use this service. Please purchase more service credits. |
PERMISSION_REQUIRED | 402 Payment Required | You do not have permission to use the service. Please contact our support team for more information. |
(none) | 403 Forbidden | This status is returned when the request body is larger than 20,000 bytes. |
IP_ADDRESS_NOT_FOUND | 404 Not Found | The supplied IP address is not in the database. |
(none) | 415 Unsupported Media Type | Your 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 Available | There 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}
Key | Value Type | Description |
---|---|---|
confidence | integer | 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_id | integer | 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 |
names | object | A map from locale codes, such as 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}
Key | Value Type | Description |
---|---|---|
code | string | A two-character code for the continent associated with the IP address. The possible codes are:
Learn more about continent codes on our Knowledge Base. GeoIP Country
GeoIP City
GeoIP Insights |
geoname_id | integer | 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 |
names | object | A map from locale codes, such as 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}
Key | Value Type | Description |
---|---|---|
confidence | integer | 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_id | integer | 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_union | boolean | This is Learn more about the European Union flag on our Knowledge Base. GeoIP Country
GeoIP City
GeoIP Insights |
iso_code | string | 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 |
names | object | A map from locale codes, such as 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}
Key | Value Type | Description |
---|---|---|
accuracy_radius | integer | 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. GeoIP Country
GeoIP City
GeoIP Insights |
average_income | integer | 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 |
latitude | decimal | 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 GeoIP Country
GeoIP City
GeoIP Insights |
longitude | decimal | 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 GeoIP Country
GeoIP City
GeoIP Insights |
metro_code | integer | Metro code is a geolocation target code from Google. GeoIP Country
GeoIP City
GeoIP Insights |
population_density | integer | 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_zone | string | 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}
Key | Value Type | Description |
---|---|---|
code | string | 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:
Learn more about postal code data on our Knowledge Base. GeoIP Country
GeoIP City
GeoIP Insights |
confidence | integer | 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}
Key | Value Type | Description |
---|---|---|
geoname_id | integer | 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_union | boolean | This is Learn more about the European Union flag on our Knowledge Base. GeoIP Country
GeoIP City
GeoIP Insights |
iso_code | string | 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 |
names | object | A map from locale codes, such as 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}
Key | Value Type | Description |
---|---|---|
geoname_id | integer | 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_union | boolean | This is Learn more about the European Union flag on our Knowledge Base. GeoIP Country
GeoIP City
GeoIP Insights |
iso_code | string | 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 |
names | object | A map from locale codes, such as Learn more about localized geolocation names on our Knowledge Base. GeoIP Country
GeoIP City
GeoIP Insights |
type | string | The type of represented country. Currently limited to 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]
Key | Value Type | Description |
---|---|---|
confidence | integer | 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_id | integer | 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_code | string | 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 |
names | object | A map from locale codes, such as 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}
Key | Value Type | Description |
---|---|---|
autonomous_system_number | integer | 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_organization | string | 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_type | string | One of the following values: 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 |
domain | string | 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_address | string | The requested IP address. GeoIP Country
GeoIP City
GeoIP Insights |
is_anonymous | boolean | This is Learn more about anonymizer and proxy detection on our Knowledge Base. GeoIP Country
GeoIP City
GeoIP Insights |
is_anonymous_vpn | boolean | This is If a VPN provider does not register subnets under names associated with them, we will likely only flag their IP ranges using the Learn more about VPNs on our Knowledge Base. GeoIP Country
GeoIP City
GeoIP Insights |
is_anycast | boolean | This is true if the IP address belongs to an anycast network.GeoIP Country
GeoIP City
GeoIP Insights |
is_hosting_provider | boolean | This is Learn more about hosting providers used for anonymizing on our Knowledge Base. GeoIP Country
GeoIP City
GeoIP Insights |
is_public_proxy | boolean | This is Learn more about public proxies on our Knowledge Base. GeoIP Country
GeoIP City
GeoIP Insights |
is_residential_proxy | boolean | This is Learn more about residential proxies on our Knowledge Base. GeoIP Country
GeoIP City
GeoIP Insights |
is_tor_exit_node | boolean | This is Learn more about Tor exit nodes on our Knowledge Base. GeoIP Country
GeoIP City
GeoIP Insights |
isp | boolean | 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_code | string | 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_code | string | 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 |
network | string | 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 |
organization | string | 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_score | decimal | 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 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_count | integer | 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_type | string | 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}
Key | Value Type | Description |
---|---|---|
queries_remaining | integer | 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:
Code | Language | Notes |
---|---|---|
de | German | |
en | English | English names may still include accented characters if that is the accepted spelling in English. In other words, English does not mean ASCII. |
es | Spanish | |
fr | French | |
ja | Japanese | |
pt-BR | Brazilian Portuguese | |
ru | Russian | |
zh-CN | Chinese (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
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 object | Recommended key |
---|---|
city | geoname_id |
continent | code or geoname_id |
country , registered_country , and represented_country | iso_code or geoname_id |
postal | code |
subdivisions | iso_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}