Country Info API
Introduction
The Country Info API offered by BigDataCloud delivers speedy, precise, and up-to-date comprehensive information regarding a country's ISO-defined names, languages, currencies, calling codes, and flags, in addition to standard region names and income levels defined by United Nations and World Bank.
This API provides access to country codes based on the ISO 3166-1 system, including the isoAlpha-2, isoAlpha-3, and ISO 3166-1 or m49Code, which utilise two-letter, three-letter, and three-digit country codes respectively, for countries that don't use the Roman alphabet.
By taking these iso-codes as input, this API delivers detailed country information and has a feature that generates localised names according to your preferences.
The country data available through this API serves a wide range of purposes, including facilitating the auto-completion of forms based on user input or creating localised content for basic websites, as well as supporting crucial operations like ensuring correct country labelling of physical assets for large enterprises such as logistic companies. Additionally, travel and tourism websites, Saas platforms and financial institutions are some of the other domains where this API can be leveraged for its benefits.
Get Started
This API is part of the IP Geolocation API Package and is available in free and paid plans. Please visit the IP Geolocation API Package package page for limits and pricing information.
Endpoint
Request
Responses
200OK
Sample Query
Schema
isoAlpha2stringISO 3166-1 Alpha-2 code
isoAlpha3stringISO 3166-1 Alpha-3 code
m49CodeintegerUnited Nations M.49 code
namestringCountry name localised to the language as defined by 'localityLanguage' request parameter
isoNamestringISO 3166-1 Country name short
isoNameFullstringISO 3166-1 Country name full
isoAdminLanguagesarrayAdministrative languages as defined by ISO 3166-1 standard
isoAlpha3stringISO 3166-1 Alpha-3 code
isoAlpha2stringISO 3166-1 Alpha-2 code
isoNamestringISO 3166-1 Language name
nativeNamestringA native name
unRegionstringRegion name as defined by the United Nations
currencycurrency object
numericCodeintegerISO 4217 standard numeric code
codestringISO 4217 standard code
namestringISO 4217 English name
minorUnitsintegerISO 4217 minor units as the currency exponent (e.g. 2 = 1/100)
wbRegionwbRegion object
idstringworld bank identification number. the expected values are: 'LCN','NA','SAS','SSF','ECS','MEA','EAS','NAC'
iso2Codestringiso 2 letters code. the expected values are: 'ZJ','NA','8S','ZG','Z7','ZQ','Z4','XU'
valuestringregion name. the expected values are: 'Latin America & Caribbean','Aggregates','South Asia',
'Sub-Saharan Africa','Europe & Central Asia','Middle East & North Africa','East Asia & Pacific','North America'
wbIncomeLevelwbIncomeLevel object
idstringworld bank identification number. the expected values are: 'HIC','NA','LIC','LMC','UMC','INX'
iso2Codestringiso 2 letters code. the expected values are: 'XD','NA','XM','XN','XT','XY'
valuestringincome level name. the expected values are: 'High income','Aggregates','Low income','Lower middle income','Upper middle income','Not classified'
callingCodestringCalling code
countryFlagEmojistringCountry emoji
wikidataIdstringWikidata item identifier, if available
geonameIdintegerA unique identifier as is given by GeoNames.org
isIndependentbooleanDetermines if the country/territory is independent according to ISO 3166 records
Sample Response
400Bad request
Sample Response
403Access denied, or your quota limit has exceeded
Sample Response
404Found no valid entry for the request
Sample Response
500An error has occurred and did not complete your request. Please try again
Sample Response