Skip to main content
All CollectionsAlerts ManagementAdvanced Alerts
Country Codes for Advanced Alerts
Country Codes for Advanced Alerts
Rodrigo Araujo avatar
Written by Rodrigo Araujo
Updated over a week ago

Within an Advanced Alert, Mention offers the ability to keyword crawl specific countries utilizing their country codes. With the source_country: operator, you can refine your keyword searches to monitor or block one or multiple countries.

Here are the topics we will cover in this article:

⚙️ Country monitoring only works for the following sources: Web, News, Blogs, Forums and Twitter/X.


Boolean Operators for Country Monitoring

In order to conduct country monitoring on an Advanced Alert, you will need to understand the following operators:

source_country: 
-has:source_country

These operators will restrict your mentions based on the data provided by the websites. Most websites will have a country code attached to their configuration. These country codes will be reviewed by Mention if you are actively using a country monitoring operator.

--

If you want to monitor by a specific a specific country or countries, you can utilize the source_country: operator. This operator will only fetch mentions that have a specific country code. You can write your query like this:

Starbucks AND source_country: (EN or ES)

This query will fetch mentions from the United States (EN) or Spain (ES) as long as the websites meet the country code requirement. Mentions that are not from the United States or Spain will not be brought in!

--

Some websites do not always include a country code. If a website does not have a country code, you can still monitor it with the operator -has:source_country. Here is an example:

Starbucks AND (source_country: (FR) OR -has:source_country) 

This query will fetch mentions from France (FR) and from websites that do not have a listed country code. This is a great way to ensure that your alert can fetch content from France even if some websites do not explicitly list their country code as FR.


Country Codes List

Mention has the ability to monitor any ISO 3166-1 alpha-2 code. Below , we have provided a list of some of these country codes to assist with your monitoring! Please feel free to use Command+F / Ctrl +F to easily search for a specific country you want to monitor:

Afghanistan

AF

Aland islands

AX

Albania

AL

Algeria

DZ

American Samoa

AS

Andorra

AD

Angola

AO

Anguilla

AI

Antarctica

AQ

Antigua and Barbuda

AG

Argentina

AR

Armenia

AM

Aruba

AW

Australia

AU

Austria

AT

Azerbaijan

AZ

Bahamas

BS

Bahrain

BH

Bangladesh

BD

Barbados

BB

Belarus

BY

Belgium

BE

Belize

BZ

Benin

BJ

Bermuda

BM

Bhutan

BT

Bolivia

BO

Bosnia & Herzegovina

BA

Botswana

BW

Bouvet Island

BV

Brazil

BR

British Indian Ocean territory

IO

Brunei

BN

Bulgaria

BG

Burkina Faso

BF

Burundi

BI

Cambodia

KH

Cameroon

CM

Canada

CA

Cape Verde

Caribbean Netherlands

Cayman Islands

KY

Central African Republic

CF

Chad

TD

Chile

CL

China

CN

Christmas Island

CX

Cocos (Keeling) Islands

CC

Colombia

CO

Comoros

KM

Congo - Brazzaville

CG

Congo - Kinshasa

CD

Cook Islands

CK

Costa Rica

CR

Côte d'Ivoire

CI

Croatia

HR

Cuba

CU

Curaçao

CW

Cyprus

CY

Czechia

CZ

Denmark

DK

Djibouti

DJ

Dominica

DM

Dominican Republic

DO

Ecuador

EC

Egypt

EG

El Salvador

SV

Equatorial Guinea

GQ

Eritrea

ER

Eswatini

SZ

Falkland Islands

FK

Faroe Islands

FO

Fiji

FJ

Finland

FI

France

FR

French Guinea

GF

French Polynesia

PF

French Southern Territories

TF

Gabon

GA

Gambia

GM

Georgia

GE

Germany

DE

Ghana

GH

Gibraltar

GI

Greece

GR

Greenland

GL

Grenada

GD

Guadalupe

GP

Guam

GU

Guatemala

GT

Guernsey

GG

Guinea

GN

Guinea - Bissau

GW

Guyana

GY

Haiti

HT

Heard & McDonald Islands

HM

Honduras

HN

Hong Kong SAR China

HK

Hungary

HU

Iceland

IS

India

IN

Indonesia

ID

Iran

IR

Iraq

IQ

Ireland

IE

Isle of Man

IM

Israel

IL

Italy

IT

Jamaica

JM

Japan

JP

Jersey

JE

Jordan

JO

Kazakhstan

KZ

Kenya

KE

Kiribati

KI

Kuwait

KW

Kyrgyzstan

KG

Laos

LA

Latvia

LV

Lebanon

LB

Lesotho

LS

Liberia

LR

Libya

LY

Liechtenstein

LI

Lithuania

LT

Macao SAR China

MO

Madagascar

MG

Malawi

MW

Malaysia

MY

Maldives

MV

Mali

ML

Malta

MT

Marshal islands

MH

Martinique

MQ

Mauritania

MR

Mauritius

MU

Mayotte

YT

Mexico

MX

Micronesia

FM

Moldova

MD

Monaco

MC

Mongolia

MN

Montenegro

ME

Montserrat

MS

Morocco

MA

Mozambique

MZ

Myanmar (Burma)

MM

Namibia

NA

Nauru

NR

Nepal

NP

Netherlands

NL

New Caledonia

NC

New Zealand

NZ

Nicaragua

NI

Niger

NE

Nigeria

NG

Niue

NU

Norfolk Island

NF

North Korea

KP

North Macedonia

MK

Northern Mariana Islands

MP

Norway

NO

Oman

OM

Pakistan

PK

Palau

PW

Palestinian territories

PS

Panama

PA

Papúa New Guinea

PG

Paraguay

PY

Peru

PE

Philippines

PH

Pitcairn Islands

PN

Poland

PL

Portugal

PT

Puerto Rico

PR

Qatar

QA

Reunion

RE

Romania

RO

Russia

RU

Rwanda

RW

Samoa

WS

San Marino

SM

São Tomé and Principe

ST

Saudi Arabia

SA

Senegal

SN

Serbia

RS

Seychelles

SC

Sierra Leone

SL

Singapore

SG

Sint Maarten

SX

Slovakia

SK

Slovenia

SI

Solomon Islands

SB

Somalia

SO

South Africa

ZA

South Georgia & Sandwich islands

GS

South Korea

KR

South Sudan

SS

Spain

ES

Sri Lanka

LK

St. Barthelemy

BL

St. Helena

SH

St. Kitts & Nevis

KN

St. Lucia

LC

St. Martin

MF

St. Pierre and Miquelon

PM

St. Vincent and Grenadines

VC

Sudan

SD

Suriname

SR

Svalbard & Jan Mayen

SJ

Sweden

SE

Switzerland

CH

Syria

SY

Taiwan

TW

Tajikistan

TJ

Tanzania

TZ

Thailand

TH

Timor - Lester

TL

Togo

TG

Tokelau

TK

Tonga

TO

Trinidad and Tobago

TT

Tunisia

TN

Turkey

TR

Turkmenistan

TM

Turks and Caicos Islands

TC

Tuvalu

TV

US Outlying Islands

UM

US Virgin Islands

VI

Uganda

UG

Ukraine

UA

United Arab Emirates

AE

United Kingdom

GB

United States

US

Uruguay

UY

Uzbekistan

UZ

Vanuatu

VU

Vatican City

Venezuela

VE

Vietnam

VN

Wallis & Futuna

WF

Western Sahara

EH

Yemen

YE

Zambia

ZM

Zimbabwe

ZW

⚙️ Please be aware that this is not the full list of country codes. If you would like to review the full list, please head on over to the ISO website and search by country codes:


Countries Monitoring Shortcuts for the Advanced Alert:

To save time, we have compiled quick shortcuts for country monitoring based on specific regions. Please feel free to copy these shortcuts into your boolean query to monitor specific countries:

--

If you want to monitor all the European countries, you can use this shortcut:

AND source_country:(AL OR AD OR AM OR AT OR AZ OR BY OR BE OR BA OR BG OR HR OR CY OR CZ OR DK OR EE OR FI OR FR OR GE OR DE OR GR OR HU OR IE OR IT OR KZ OR LV OR LI OR LT OR LU OR MT OR MD OR MC OR ME OR NL OR NO OR PL OR PT OR RO OR RU OR SM OR RS OR SK OR SI OR ES OR SE OR CH OR TR OR UA OR GB)

--

If you want to monitor all African countries, you can use this shortcut:

Source_country: ("DZ" OR "AO" OR "BJ" OR "BW" OR "BF" OR "BI" OR "CM" OR "CV" OR "CF" OR "TD" OR "KM" OR "CG" OR "CD" OR "CI" OR "DJ" OR "EG" OR "GQ" OR "ER" OR "ET" OR "GA" OR "GM" OR "GH" OR "GN" OR "GW" OR "KE" OR "LS" OR "LR" OR "LY" OR "MG" OR "ML" OR "MW" OR "MR" OR "MU" OR "YT" OR "MA" OR "MZ" OR "NA" OR "NE" OR "NG" OR "RE" OR "RW" OR "ST" OR "SN" OR "SC" OR "SL" OR "SO" OR "ZA" OR "SS" OR "SD" OR "SZ" OR "TZ" OR "TG" OR "TN" OR "UG" OR "EH" OR "ZM" OR "ZW")

--

If you need to monitor all the Middle East countries, you can copy paste this in your Boolean query:

AND source_country:(AT OR BE OR BG OR HR OR CY OR CZ OR DK OR EE OR FI OR FR OR DE OR GR OR HU OR IE OR IT OR LV OR LI OR LT OR LU OR MT OR MD OR MC OR NL OR NO OR PL OR PT OR RO OR RU OR SM OR RS OR SK OR SI OR ES OR SE OR CH OR TR OR UA OR GB OR AE OR QA OR SA OR JO OR LB OR IQ OR IN OR IL OR EG OR OM OR BH OR KW)

--

If you need to monitor all the LATAM countries:

AND source_country:(BR OR PE OR MX OR CO OR AR OR VE OR CL OR EC OR GT OR CU OR BO OR DO OR HT OR HN OR PY OR SV OR NI OR CR OR PR OR PA OR UY OR SR OR GY)

Thank you ! If you have any further questions, please do not hesitate to contact [email protected].

Did this answer your question?