geoip.country_code

STRING, read-only.

Available in all subroutines.

A two-character ISO 3166-1 country code for the country associated with the IP address. The US country code is returned for IP addresses associated with overseas US military bases.

In addition to the standard codes, we may also return one of the following:

CodeMeaning
A1An anonymous proxy
A2A satellite provider
EUAn IP in a block used by multiple European countries
APAn IP in a block used by multiple Asia/Pacific region countries