GeoIP Country binary database fields

The GeoIP Country binary database contains the following fields for each network. The top-level record for each network is a map containing the keys listed below. Each key maps to a map. If a key maps to an undefined or empty value, it is not included in the record.

NameTypeDescription
continentmapA map containing details about the continent associated with the IP address.
countrymapA map containing details about the country where MaxMind believes the IP address is located.
registered_countrymapA map containing details about the country where the ISP has registered the IP block. This may differ from the country where the IP is located.
represented_countrymapA map containing details about the country represented by users of the IP address, such as a military base or embassy.
traitsmapA map containing general traits associated with the IP address.

continent

NameTypeDescription
codestring

A two-character continent code like NA (North America) or OC (Oceania).

Learn more about continent codes on our Knowledge Base.

geoname_iduint32

A unique identifier for the continent as specified by GeoNames.

Learn more about GeoNames IDs on our Knowledge Base.

namesmap

A map from locale codes (e.g., en, de, ja) to localized names.

Learn more about localized geolocation names on our Knowledge Base.

country

NameTypeDescription
geoname_iduint32

A unique identifier for the country as specified by GeoNames.

Learn more about GeoNames IDs on our Knowledge Base.

is_in_european_unionboolean

This is true if the country is a member state of the European Union. This key is only present when the value is true.

Learn more about the EU flag on our Knowledge Base.

iso_codestring

The two-character ISO 3166-1 alpha code for the country.

Learn more about country codes on our Knowledge Base.

namesmap

A map from locale codes (e.g., en, de, ja) to localized names.

Learn more about localized geolocation names on our Knowledge Base.

registered_country

NameTypeDescription
geoname_iduint32

A unique identifier for the registered country as specified by GeoNames.

Learn more about GeoNames IDs on our Knowledge Base.

is_in_european_unionboolean

This is true if the registered country is a member state of the European Union. This key is only present when the value is true.

Learn more about the EU flag on our Knowledge Base.

iso_codestringThe two-character ISO 3166-1 alpha code for the registered country.
namesmap

A map from locale codes (e.g., en, de, ja) to localized names.

Learn more about localized geolocation names on our Knowledge Base.

represented_country

NameTypeDescription
geoname_iduint32

A unique identifier for the represented country as specified by GeoNames.

Learn more about GeoNames IDs on our Knowledge Base.

is_in_european_unionboolean

This is true if the represented country is a member state of the European Union. This key is only present when the value is true.

Learn more about the EU flag on our Knowledge Base.

iso_codestringThe two-character ISO 3166-1 alpha code for the represented country.
namesmap

A map from locale codes (e.g., en, de, ja) to localized names.

Learn more about localized geolocation names on our Knowledge Base.

typestringA string indicating the type of entity that is representing the country. Currently this is only military but may expand to include other types in the future.

traits

NameTypeDescription
is_anycastboolean

This is true if the IP address belongs to an anycast network. This key is only present when the value is true.

Learn more about anycast data on our Knowledge Base.