Flag API

The Flag API provides access to country flags through a simple HTTP interface. It's designed for developers building apps, dashboards, or localization tools that require national symbols or regional identifiers.

Endpoint

List of Flags

NameCodeExample
AfghanistanAFAfghanistan
AlbaniaALAlbania
AlgeriaDZAlgeria
American SamoaASAmerican Samoa
AndorraADAndorra
AngolaAOAngola
AnguillaAIAnguilla
AntarcticaAQAntarctica
Antigua and BarbudaAGAntigua and Barbuda
ArgentinaARArgentina
ArmeniaAMArmenia
ArubaAWAruba
AustraliaAUAustralia
AustriaATAustria
AzerbaijanAZAzerbaijan
Bahamas (the)BSBahamas (the)
BahrainBHBahrain
BangladeshBDBangladesh
BarbadosBBBarbados
BelarusBYBelarus
BelgiumBEBelgium
BelizeBZBelize
BeninBJBenin
BermudaBMBermuda
BhutanBTBhutan
Bolivia (Plurinational State of)BOBolivia (Plurinational State of)
Bonaire, Sint Eustatius and SabaBQBonaire, Sint Eustatius and Saba
Bosnia and HerzegovinaBABosnia and Herzegovina
BotswanaBWBotswana
Bouvet IslandBVBouvet Island
BrazilBRBrazil
British Indian Ocean Territory (the)IOBritish Indian Ocean Territory (the)
Brunei DarussalamBNBrunei Darussalam
BulgariaBGBulgaria
Burkina FasoBFBurkina Faso
BurundiBIBurundi
Cabo VerdeCVCabo Verde
CambodiaKHCambodia
CameroonCMCameroon
CanadaCACanada
Cayman Islands (the)KYCayman Islands (the)
Central African Republic (the)CFCentral African Republic (the)
ChadTDChad
ChileCLChile
ChinaCNChina
Christmas IslandCXChristmas Island
Cocos (Keeling) Islands (the)CCCocos (Keeling) Islands (the)
ColombiaCOColombia
Comoros (the)KMComoros (the)
Congo (the Democratic Republic of the)CDCongo (the Democratic Republic of the)
Congo (the)CGCongo (the)
Cook Islands (the)CKCook Islands (the)
Costa RicaCRCosta Rica
CroatiaHRCroatia
CubaCUCuba
CuraçaoCWCuraçao
CyprusCYCyprus
CzechiaCZCzechia
Côte d'IvoireCICôte d'Ivoire
DenmarkDKDenmark
DjiboutiDJDjibouti
DominicaDMDominica
Dominican Republic (the)DODominican Republic (the)
EcuadorECEcuador
EgyptEGEgypt
El SalvadorSVEl Salvador
Equatorial GuineaGQEquatorial Guinea
EritreaEREritrea
EstoniaEEEstonia
EswatiniSZEswatini
EthiopiaETEthiopia
Falkland Islands (the) [Malvinas]FKFalkland Islands (the) [Malvinas]
Faroe Islands (the)FOFaroe Islands (the)
FijiFJFiji
FinlandFIFinland
FranceFRFrance
French GuianaGFFrench Guiana
French PolynesiaPFFrench Polynesia
French Southern Territories (the)TFFrench Southern Territories (the)
GabonGAGabon
Gambia (the)GMGambia (the)
GeorgiaGEGeorgia
GermanyDEGermany
GhanaGHGhana
GibraltarGIGibraltar
GreeceGRGreece
GreenlandGLGreenland
GrenadaGDGrenada
GuadeloupeGPGuadeloupe
GuamGUGuam
GuatemalaGTGuatemala
GuernseyGGGuernsey
GuineaGNGuinea
Guinea-BissauGWGuinea-Bissau
GuyanaGYGuyana
HaitiHTHaiti
Heard Island and McDonald IslandsHMHeard Island and McDonald Islands
Holy See (the)VAHoly See (the)
HondurasHNHonduras
Hong KongHKHong Kong
HungaryHUHungary
IcelandISIceland
IndiaINIndia
IndonesiaIDIndonesia
Iran (Islamic Republic of)IRIran (Islamic Republic of)
IraqIQIraq
IrelandIEIreland
Isle of ManIMIsle of Man
IsraelILIsrael
ItalyITItaly
JamaicaJMJamaica
JapanJPJapan
JerseyJEJersey
JordanJOJordan
KazakhstanKZKazakhstan
KenyaKEKenya
KiribatiKIKiribati
Korea (the Democratic People's Republic of)KPKorea (the Democratic People's Republic of)
Korea (the Republic of)KRKorea (the Republic of)
KuwaitKWKuwait
KyrgyzstanKGKyrgyzstan
Lao People's Democratic Republic (the)LALao People's Democratic Republic (the)
LatviaLVLatvia
LebanonLBLebanon
LesothoLSLesotho
LiberiaLRLiberia
LibyaLYLibya
LiechtensteinLILiechtenstein
LithuaniaLTLithuania
LuxembourgLULuxembourg
MacaoMOMacao
MadagascarMGMadagascar
MalawiMWMalawi
MalaysiaMYMalaysia
MaldivesMVMaldives
MaliMLMali
MaltaMTMalta
Marshall Islands (the)MHMarshall Islands (the)
MartiniqueMQMartinique
MauritaniaMRMauritania
MauritiusMUMauritius
MayotteYTMayotte
MexicoMXMexico
Micronesia (Federated States of)FMMicronesia (Federated States of)
Moldova (the Republic of)MDMoldova (the Republic of)
MonacoMCMonaco
MongoliaMNMongolia
MontenegroMEMontenegro
MontserratMSMontserrat
MoroccoMAMorocco
MozambiqueMZMozambique
MyanmarMMMyanmar
NamibiaNANamibia
NauruNRNauru
NepalNPNepal
Netherlands (the)NLNetherlands (the)
New CaledoniaNCNew Caledonia
New ZealandNZNew Zealand
NicaraguaNINicaragua
Niger (the)NENiger (the)
NigeriaNGNigeria
NiueNUNiue
Norfolk IslandNFNorfolk Island
Northern Mariana Islands (the)MPNorthern Mariana Islands (the)
NorwayNONorway
OmanOMOman
PakistanPKPakistan
PalauPWPalau
Palestine, State ofPSPalestine, State of
PanamaPAPanama
Papua New GuineaPGPapua New Guinea
ParaguayPYParaguay
PeruPEPeru
Philippines (the)PHPhilippines (the)
PitcairnPNPitcairn
PolandPLPoland
PortugalPTPortugal
Puerto RicoPRPuerto Rico
QatarQAQatar
Republic of North MacedoniaMKRepublic of North Macedonia
RomaniaRORomania
Russian Federation (the)RURussian Federation (the)
RwandaRWRwanda
RéunionRERéunion
Saint BarthélemyBLSaint Barthélemy
Saint Helena, Ascension and Tristan da CunhaSHSaint Helena, Ascension and Tristan da Cunha
Saint Kitts and NevisKNSaint Kitts and Nevis
Saint LuciaLCSaint Lucia
Saint Martin (French part)MFSaint Martin (French part)
Saint Pierre and MiquelonPMSaint Pierre and Miquelon
Saint Vincent and the GrenadinesVCSaint Vincent and the Grenadines
SamoaWSSamoa
San MarinoSMSan Marino
Sao Tome and PrincipeSTSao Tome and Principe
Saudi ArabiaSASaudi Arabia
SenegalSNSenegal
SerbiaRSSerbia
SeychellesSCSeychelles
Sierra LeoneSLSierra Leone
SingaporeSGSingapore
Sint Maarten (Dutch part)SXSint Maarten (Dutch part)
SlovakiaSKSlovakia
SloveniaSISlovenia
Solomon IslandsSBSolomon Islands
SomaliaSOSomalia
South AfricaZASouth Africa
South Georgia and the South Sandwich IslandsGSSouth Georgia and the South Sandwich Islands
South SudanSSSouth Sudan
SpainESSpain
Sri LankaLKSri Lanka
Sudan (the)SDSudan (the)
SurinameSRSuriname
Svalbard and Jan MayenSJSvalbard and Jan Mayen
SwedenSESweden
SwitzerlandCHSwitzerland
Syrian Arab RepublicSYSyrian Arab Republic
Taiwan (Province of China)TWTaiwan (Province of China)
TajikistanTJTajikistan
Tanzania, United Republic ofTZTanzania, United Republic of
ThailandTHThailand
Timor-LesteTLTimor-Leste
TogoTGTogo
TokelauTKTokelau
TongaTOTonga
Trinidad and TobagoTTTrinidad and Tobago
TunisiaTNTunisia
TurkeyTRTurkey
TurkmenistanTMTurkmenistan
Turks and Caicos Islands (the)TCTurks and Caicos Islands (the)
TuvaluTVTuvalu
UgandaUGUganda
UkraineUAUkraine
United Arab Emirates (the)AEUnited Arab Emirates (the)
United Kingdom of Great Britain and Northern Ireland (the)GBUnited Kingdom of Great Britain and Northern Ireland (the)
United States Minor Outlying Islands (the)UMUnited States Minor Outlying Islands (the)
United States of America (the)USUnited States of America (the)
UruguayUYUruguay
UzbekistanUZUzbekistan
VanuatuVUVanuatu
Venezuela (Bolivarian Republic of)VEVenezuela (Bolivarian Republic of)
Viet NamVNViet Nam
Virgin Islands (British)VGVirgin Islands (British)
Virgin Islands (U.S.)VIVirgin Islands (U.S.)
Wallis and FutunaWFWallis and Futuna
Western SaharaEHWestern Sahara
YemenYEYemen
ZambiaZMZambia
ZimbabweZWZimbabwe
Åland IslandsAXÅland Islands

Features

  1. Retrieve Flags by Country Code: Get flag images using alpha-2 country codes.
  2. Case-Insensitive Input: Accepts both lowercase and uppercase country codes (e.g., id & ID).
  3. High Performance: Optimized for fast delivery via CDN for minimal latency.
  4. Multiple Formats: Supports SVG formats with customizable sizes.
  5. Batch Requests: Fetch multiple flags in a single API call.
support me on ko-fi afianf