get https://api-lib.bambu.life/api/country/v2/countries
To view a list of all the countries available in the platform and the dialing code, currency code and other general information the user can call the below API.
The table below describes the output of the Get all Countries API.
Name | Data Type | Technical Description | Mandatory | Sample Value | Functional Description |
---|---|---|---|---|---|
code | String | 2 Character Country identifier | Y | "US" | 2 Character Country identifier, such as "US" which indicates the USA |
internationalDialingCode | String | Unique dialing codes which are country specific | N | "1" | Dailing code of the country |
currencyCode | String | Unique and international identification if a currency | N | "USD" | the currency code for the country |
flag | String | image of the country's flag | N | "https://restcountries.eu/data/usa.svg" | url where the country flag is being retrieved from |
cioc | String | 3 Character Identifier of the country which is recognized internationally | N | "USA" | 3 Character Identifier of the country which is recognized internationally |
name | String | Name of the Country | N | "United States of America" | Name of the Country |
demonym | String | Denotes the native of a specific country | N | "American" | Defines how a native of the country is referred to as. |
cca2 | String | Alpha-2 code. For more information, click here. | N | "US" | Alpha-2 code. For more information, click here. |
cca3 | String | 3 Character Identifier of the country Alpha-3 code. For more information, click here. | N | "USA" | 3 Character Identifier of the country Alpha-3 code. For more information, click here. |
ccn3 | String | Numeric code. For more information, click here. | N | "398" | The numeric code associated with the country |
id | String | 3 Character Identifier of the country, similar to cca3 and cioc | N | "KAZ" | 3 Character Identifier of the country, similar to cca3 and cioc |