Merchandise exports by the reporting economy (current US$)

Source: worldbank.org, 03.09.2025

Year: 2023

Flag Country Value Value change, % Rank
Aruba Aruba 109,761,042 +6.66% 185
Afghanistan Afghanistan 438,773,186 +1.35% 168
Angola Angola 38,477,001,891 -24.3% 60
Albania Albania 4,373,050,588 +1.49% 125
United Arab Emirates United Arab Emirates 320,418,028,364 -7.35% 24
Argentina Argentina 65,241,677,816 -24.6% 47
Armenia Armenia 8,534,641,239 +59.7% 98
American Samoa American Samoa 17,409,786 +6.35% 199
Antigua & Barbuda Antigua & Barbuda 71,328,875 -96.5% 190
Australia Australia 362,303,915,239 -9.81% 20
Austria Austria 223,588,087,343 +5.58% 30
Azerbaijan Azerbaijan 33,896,668,400 -11.1% 62
Burundi Burundi 156,800,424 -7.05% 182
Belgium Belgium 562,548,008,488 -9.38% 12
Benin Benin 1,053,294,884 +15.9% 150
Burkina Faso Burkina Faso 4,458,757,155 -1.85% 123
Bangladesh Bangladesh 38,755,820,774 -17.7% 59
Bulgaria Bulgaria 45,599,007,671 -4.7% 54
Bahrain Bahrain 12,274,944,053 -18.2% 86
Bahamas Bahamas 1,087,238,424 +13.8% 148
Bosnia & Herzegovina Bosnia & Herzegovina 9,217,984,078 -4.58% 96
Belarus Belarus 25,266,187,546 -23% 68
Belize Belize 252,981,788 -11.6% 173
Bermuda Bermuda 31,795,109 -53.2% 197
Bolivia Bolivia 10,805,668,783 -20.6% 93
Brazil Brazil 339,273,550,235 +1.49% 22
Barbados Barbados 320,521,731 +1.79% 172
Brunei Brunei 10,526,008,575 -34.9% 94
Bhutan Bhutan 703,019,003 +8% 160
Botswana Botswana 5,081,391,313 -35.8% 116
Central African Republic Central African Republic 115,950,483 -1.56% 184
Canada Canada 567,833,021,394 -4.85% 11
Switzerland Switzerland 420,007,216,340 +4.58% 17
Chile Chile 94,030,776,206 -4.04% 41
China China 3,421,795,720,251 -5.06% 1
Côte d’Ivoire Côte d’Ivoire 18,059,112,967 -46.4% 76
Cameroon Cameroon 4,448,970,822 -25.8% 124
Congo - Kinshasa Congo - Kinshasa 27,726,287,471 +76.4% 67
Congo - Brazzaville Congo - Brazzaville 7,984,061,131 -9.99% 102
Colombia Colombia 48,951,485,203 -13.3% 53
Comoros Comoros 48,764,703 -2.81% 195
Cape Verde Cape Verde 170,841,788 -0.0336% 178
Costa Rica Costa Rica 18,152,840,279 +15.5% 75
Cuba Cuba 853,943,975 -3.05% 158
Curaçao Curaçao 93,175,641 -25.7% 187
Cyprus Cyprus 4,547,753,660 +17.4% 121
Czechia Czechia 255,401,723,905 +5.74% 28
Germany Germany 1,693,536,921,938 +1.59% 3
Djibouti Djibouti 4,787,326,694 +3.74% 119
Dominica Dominica 72,023,031 +303% 189
Denmark Denmark 129,430,850,631 -0.742% 35
Dominican Republic Dominican Republic 11,887,186,014 +21.5% 88
Algeria Algeria 54,857,785,548 -15.7% 52
Ecuador Ecuador 31,071,737,631 -4.56% 64
Egypt Egypt 38,976,889,904 -17.5% 58
Eritrea Eritrea 480,275,724 -19.3% 165
Spain Spain 407,889,194,391 +1.65% 18
Estonia Estonia 19,380,441,781 -12.5% 73
Ethiopia Ethiopia 2,859,494,164 -7.32% 136
Finland Finland 81,056,251,981 -5.14% 43
Fiji Fiji 732,238,219 -0.44% 159
France France 636,013,128,446 +4.68% 7
Faroe Islands Faroe Islands 2,346,486,464 +10.8% 138
Micronesia (Federated States of) Micronesia (Federated States of) 234,596,918 -0.798% 174
Gabon Gabon 12,668,757,910 +21.1% 85
United Kingdom United Kingdom 487,273,418,675 -6.47% 13
Georgia Georgia 6,086,386,525 +9.03% 111
Ghana Ghana 16,782,124,237 -4.02% 78
Gibraltar Gibraltar 475,722,909 +16.1% 166
Guinea Guinea 4,963,230,587 -18.2% 118
Gambia Gambia 2,831,984,672 +4,687% 137
Guinea-Bissau Guinea-Bissau 426,516,295 -15.9% 169
Equatorial Guinea Equatorial Guinea 4,738,948,117 -37.5% 120
Greece Greece 55,024,703,714 -5.93% 51
Grenada Grenada 21,983,128 +58.2% 198
Greenland Greenland 1,005,531,197 +9.15% 151
Guatemala Guatemala 14,190,056,742 -9.52% 82
Guam Guam 219,732,634 +12.1% 175
Guyana Guyana 8,323,363,471 -25.8% 99
Hong Kong SAR China Hong Kong SAR China 575,966,839,520 -5.76% 10
Honduras Honduras 5,935,476,291 -2.65% 113
Croatia Croatia 24,905,826,785 -2.06% 69
Haiti Haiti 953,292,627 -20.7% 155
Hungary Hungary 158,035,845,166 +4.2% 34
Indonesia Indonesia 258,763,765,431 -11.4% 27
India India 429,090,304,638 -4.71% 16
Ireland Ireland 207,259,960,873 -2.65% 31
Iran Iran 14,074,345,553 -19.9% 83
Iraq Iraq 107,392,352,734 -14.8% 37
Iceland Iceland 6,623,408,629 -10.5% 109
Israel Israel 59,130,600,000 -11.1% 50
Italy Italy 664,108,571,338 +2.65% 6
Jamaica Jamaica 1,959,965,147 +5.09% 140
Jordan Jordan 11,124,629,997 +3.08% 90
Japan Japan 717,197,056,143 -3.94% 5
Kazakhstan Kazakhstan 78,735,576,338 +3.41% 44
Kenya Kenya 7,107,099,495 -3.01% 107
Kyrgyzstan Kyrgyzstan 3,384,407,916 +54.9% 131
Cambodia Cambodia 22,044,541,574 +2.9% 72
Kiribati Kiribati 6,009,308 -45.2% 203
St. Kitts & Nevis St. Kitts & Nevis 62,859,844 +121% 192
South Korea South Korea 632,293,706,000 -7.47% 8
Kuwait Kuwait 5,922,298,906 -5.11% 114
Laos Laos 8,277,045,107 +2.45% 100
Lebanon Lebanon 3,847,265,350 -9.04% 129
Liberia Liberia 153,702,558 -24.1% 183
Libya Libya 33,079,490,577 -15.6% 63
St. Lucia St. Lucia 84,342,414 +4.86% 188
Sri Lanka Sri Lanka 11,560,313,310 -9.37% 89
Lesotho Lesotho 957,673,425 -9.04% 154
Lithuania Lithuania 42,772,701,243 -7.49% 55
Luxembourg Luxembourg 16,866,771,140 -2.28% 77
Latvia Latvia 22,563,690,374 -6.07% 71
Macao SAR China Macao SAR China 1,084,915,292 -12% 149
Morocco Morocco 41,642,772,643 +0.334% 56
Moldova Moldova 4,030,030,967 -6.12% 128
Madagascar Madagascar 3,094,651,612 -12.7% 134
Maldives Maldives 162,216,880 +2.02% 181
Mexico Mexico 591,688,088,000 +2.66% 9
Marshall Islands Marshall Islands 952,796,379 -27.8% 156
North Macedonia North Macedonia 8,994,572,227 +3.05% 97
Mali Mali 4,475,384,106 -2.75% 122
Malta Malta 3,267,925,518 +5.91% 133
Myanmar (Burma) Myanmar (Burma) 14,679,655,428 -14% 80
Montenegro Montenegro 689,829,558 -5.55% 161
Mongolia Mongolia 15,209,128,027 +21.3% 79
Mozambique Mozambique 8,232,279,000 -0.0101% 101
Mauritania Mauritania 4,065,188,655 +7.6% 127
Mauritius Mauritius 1,628,632,447 -1.06% 142
Malawi Malawi 965,510,049 +7.31% 153
Malaysia Malaysia 312,622,945,351 -11.3% 25
Namibia Namibia 5,677,553,736 +17.8% 115
New Caledonia New Caledonia 1,717,666,638 -22.3% 141
Niger Niger 468,693,161 +10.5% 167
Nigeria Nigeria 62,935,553,625 -25.4% 49
Nicaragua Nicaragua 3,399,719,209 -10.7% 130
Netherlands Netherlands 910,170,959,874 -2.98% 4
Norway Norway 177,532,001,180 -35.9% 33
Nepal Nepal 1,207,636,035 -7.15% 147
Nauru Nauru 211,741,567 -1.62% 177
New Zealand New Zealand 41,447,669,371 -8.98% 57
Oman Oman 22,742,357,540 -1.22% 70
Pakistan Pakistan 28,365,270,090 -7.94% 66
Panama Panama 3,292,519,354 -8.12% 132
Peru Peru 64,118,009,184 +10.7% 48
Philippines Philippines 72,913,259,752 -9.68% 46
Palau Palau 1,910,650 -58.9% 205
Papua New Guinea Papua New Guinea 10,855,732,694 -12.9% 92
Poland Poland 379,470,866,188 +6.01% 19
North Korea North Korea 375,038,401 +24.1% 171
Portugal Portugal 81,528,125,832 +1.59% 42
Paraguay Paraguay 11,890,079,554 +19.4% 87
Palestinian Territories Palestinian Territories 1,521,387,934 -0.247% 144
French Polynesia French Polynesia 2,261,346 -98.4% 204
Qatar Qatar 97,056,934,038 -25.4% 40
Romania Romania 100,268,470,917 +4.04% 39
Russia Russia 455,153,947,739 -23.2% 15
Rwanda Rwanda 1,576,917,613 +0.922% 143
Saudi Arabia Saudi Arabia 322,168,782,993 -20.9% 23
Sudan Sudan 13,536,725,880 -30.6% 84
Senegal Senegal 5,047,630,143 -8.21% 117
Singapore Singapore 475,780,622,588 -7.75% 14
Solomon Islands Solomon Islands 399,337,340 +1.17% 170
Sierra Leone Sierra Leone 513,987,404 +6.58% 164
El Salvador El Salvador 6,498,114,924 -8.67% 110
San Marino San Marino 213,337,637 +5.22% 176
Somalia Somalia 992,041,563 +35.6% 152
Serbia Serbia 30,902,085,296 +6.35% 65
South Sudan South Sudan 652,224,622 +22.6% 162
São Tomé & Príncipe São Tomé & Príncipe 16,336,136 -4.65% 200
Suriname Suriname 168,958,654 -94% 179
Slovakia Slovakia 117,450,063,871 +8.41% 36
Slovenia Slovenia 72,929,928,484 +4.74% 45
Sweden Sweden 194,885,425,804 -0.184% 32
Eswatini Eswatini 2,098,805,169 +5.31% 139
Sint Maarten Sint Maarten 103,897,737 +1.58% 186
Seychelles Seychelles 548,978,129 -8.51% 163
Syria Syria 2,992,599,748 +59.7% 135
Chad Chad 4,224,690,229 -7.6% 126
Togo Togo 1,455,154,458 +8.13% 145
Thailand Thailand 280,341,416,251 -0.987% 26
Tajikistan Tajikistan 1,308,553,094 -20.9% 146
Turkmenistan Turkmenistan 14,393,238,963 +6.22% 81
Timor-Leste Timor-Leste 165,553,047 -65% 180
Tonga Tonga 9,378,000 -23.9% 201
Trinidad & Tobago Trinidad & Tobago 7,606,199,527 -41.8% 104
Tunisia Tunisia 18,794,739,474 +8.03% 74
Turkey Turkey 250,885,351,949 +0.12% 29
Tuvalu Tuvalu 8,233,768 -62.6% 202
Tanzania Tanzania 7,268,010,478 +6.49% 106
Uganda Uganda 6,013,703,695 +75.1% 112
Ukraine Ukraine 36,023,442,430 -18.9% 61
Uruguay Uruguay 7,802,870,252 -13.9% 103
United States United States 2,017,050,991,782 -2.2% 2
Uzbekistan Uzbekistan 10,979,429,618 +21.2% 91
St. Vincent & Grenadines St. Vincent & Grenadines 52,114,756 -2.68% 194
Venezuela Venezuela 7,370,462,476 +78.3% 105
Vietnam Vietnam 345,093,229,089 -5.26% 21
Vanuatu Vanuatu 62,975,139 +4.1% 191
Samoa Samoa 32,869,492 +8.07% 196
Kosovo Kosovo 932,894,425 -3.61% 157
Yemen Yemen 55,062,339 -28% 193
South Africa South Africa 103,343,659,177 -11.7% 38
Zambia Zambia 10,433,911,381 -10.2% 95
Zimbabwe Zimbabwe 6,941,473,283 +7.83% 108

The indicator 'Merchandise exports by the reporting economy (current US$)' reflects the total value of goods and commodities exported from a specific economy, measured in current US dollars. This indicator serves as a key measure of an economy's trade activity and overall economic health. By evaluating merchandise exports, economists and policymakers can assess the strength of international trade relationships and the competitiveness of domestic industries in global markets.

Understanding merchandise exports is crucial as it provides insight into a country's economic structure. A high level of exports usually indicates robust industrial production capacity, a well-established reputation for quality, or a competitive edge in specific sectors, such as technology or agriculture. Additionally, merchandise exports contribute to national income and employment, as increased trade activity typically leads to higher demand for domestic goods, stimulating business growth and job creation.

This indicator is also directly related to other economic indicators, such as Gross Domestic Product (GDP), balance of trade, and foreign exchange reserves. For instance, a high level of merchandise exports usually correlates with a positive balance of trade, which occurs when the value of exports exceeds the value of imports. Conversely, if imports surpass exports, it could lead to trade deficits, negatively impacting GDP and lowering foreign exchange reserves. Thus, monitoring merchandise exports is essential for understanding broader economic trends and potential vulnerabilities in an economy.

Several factors can affect merchandise exports, including global market demand, exchange rates, tariffs, trade agreements, and domestic production capabilities. For example, if a country's currency is strong relative to others, its exports can become more expensive for foreign buyers, potentially decreasing demand. Similarly, tariffs or trade barriers imposed by importing countries can hinder the flow of goods, adversely affecting export levels. Trade agreements can facilitate exports by eliminating tariffs, making it essential for countries to establish and maintain favorable relationships with trading partners.

Looking at the latest available data from 2020, the median value for merchandise exports in reporting economies was approximately $5.54 billion. This figure helps to set a benchmark, where economies below this median might struggle with international competitiveness, while those above it could be seen as more robust in global trade.

Among the top five economies for merchandise exports in 2020, China led with exports valued at $2.6 trillion, followed by the United States with $1.43 trillion, Germany at $1.38 trillion, the Netherlands at $674.68 billion, and Japan with $638.17 billion. This data indicates the dominance of large economies in international trade. China's vast industrial base and global supply chain networks emphasize its essential role in global commerce. The United States and Germany also benefit from advanced technologies and established brands that ensure strong demand for their exported goods.

In stark contrast, the bottom five areas for merchandise exports reveal the challenges faced by smaller economies. For instance, Palau with only about $2.89 million in exports showcases limited industrial capacity or market access. Countries like São Tomé & Príncipe and Tuvalu, with similarly low export figures, may struggle to diversify their economies beyond primary sectors like agriculture and fishing. These figures reflect not only a lack of competitive products on a global scale but also the difficulties these nations encounter in penetrating international markets.

It's essential to develop strategies to bolster merchandise exports for economies lagging in this area. Enhancements in infrastructure, investment in technology, and strategic planning to tap into emerging markets can potentially elevate their export levels. Diversifying product offerings, enhancing product quality, and identifying niche markets can help smaller economies leverage their unique resources. Additionally, favorable trade agreements and participation in regional trade blocs can also open new pathways for export growth.

However, reliance on merchandise exports comes with inherent risks. Fluctuations in global markets can dramatically affect export-driven economies in times of crisis. For instance, the COVID-19 pandemic severely disrupted global trade in 2020, resulting in a decline for many economies, and thus, businesses must remain agile and adaptable. Establishing a balanced economy that does not solely depend on exports will provide a buffer against external shocks. Investing in domestic markets and fostering consumption can create a more resilient economic environment.

In summary, while merchandise exports by the reporting economy constitute a vital economic indicator, understanding its complexities is equally important. The relationship between exports and other economic metrics, the factors influencing export capabilities, and the strategies for overcoming challenges are crucial components in the discourse surrounding international trade and economic empowerment. Moving forward, economies must adopt holistic approaches while embracing both global trade and local growth to ensure sustainable and advantageous positions in the ever-evolving international landscape.

                    
# Install missing packages
import sys
import subprocess

def install(package):
subprocess.check_call([sys.executable, "-m", "pip", "install", package])

# Required packages
for package in ['wbdata', 'country_converter']:
try:
__import__(package)
except ImportError:
install(package)

# Import libraries
import wbdata
import country_converter as coco
from datetime import datetime

# Define World Bank indicator code
dataset_code = 'TX.VAL.MRCH.WL.CD'

# Download data from World Bank API
data = wbdata.get_dataframe({dataset_code: 'value'},
date=(datetime(1960, 1, 1), datetime.today()),
parse_dates=True,
keep_levels=True).reset_index()

# Extract year
data['year'] = data['date'].dt.year

# Convert country names to ISO codes using country_converter
cc = coco.CountryConverter()
data['iso2c'] = cc.convert(names=data['country'], to='ISO2', not_found=None)
data['iso3c'] = cc.convert(names=data['country'], to='ISO3', not_found=None)

# Filter out rows where ISO codes could not be matched — likely not real countries
data = data[data['iso2c'].notna() & data['iso3c'].notna()]

# Sort for calculation
data = data.sort_values(['iso3c', 'year'])

# Calculate YoY absolute and percent change
data['value_change'] = data.groupby('iso3c')['value'].diff()
data['value_change_percent'] = data.groupby('iso3c')['value'].pct_change() * 100

# Calculate ranks (higher GDP per capita = better rank)
data['rank'] = data.groupby('year')['value'].rank(ascending=False, method='dense')

# Calculate rank change from previous year
data['rank_change'] = data.groupby('iso3c')['rank'].diff()

# Select desired columns
final_df = data[['country', 'iso2c', 'iso3c', 'year', 'value',
'value_change', 'value_change_percent', 'rank', 'rank_change']].copy()

# Optional: Add labels as metadata (could be useful for export or UI)
column_labels = {
'country': 'Country name',
'iso2c': 'ISO 2-letter country code',
'iso3c': 'ISO 3-letter country code',
'year': 'Year',
'value': 'GDP per capita (current US$)',
'value_change': 'Year-over-Year change in value',
'value_change_percent': 'Year-over-Year percent change in value',
'rank': 'Country rank by GDP per capita (higher = richer)',
'rank_change': 'Change in rank from previous year'
}

# Display first few rows
print(final_df.head(10))

# Optional: Save to CSV
#final_df.to_csv("gdp_per_capita_cleaned.csv", index=False)
                    
                
                    
# Check and install required packages
required_packages <- c("WDI", "countrycode", "dplyr")

for (pkg in required_packages) {
  if (!requireNamespace(pkg, quietly = TRUE)) {
    install.packages(pkg)
  }
}

# Load the necessary libraries
library(WDI)
library(dplyr)
library(countrycode)

# Define the dataset code (World Bank indicator code)
dataset_code <- 'TX.VAL.MRCH.WL.CD'

# Download data using WDI package
dat <- WDI(indicator = dataset_code)

# Filter only countries using 'is_country' from countrycode
# This uses iso2c to identify whether the entry is a recognized country
dat <- dat %>%
  filter(countrycode(iso2c, origin = 'iso2c', destination = 'country.name', warn = FALSE) %in%
           countrycode::codelist$country.name.en)

# Ensure dataset is ordered by country and year
dat <- dat %>%
  arrange(iso3c, year)

# Rename the dataset_code column to "value" for easier manipulation
dat <- dat %>%
  rename(value = !!dataset_code)

# Calculate year-over-year (YoY) change and percentage change
dat <- dat %>%
  group_by(iso3c) %>%
  mutate(
    value_change = value - lag(value),                              # Absolute change from previous year
    value_change_percent = 100 * (value - lag(value)) / lag(value) # Percent change from previous year
  ) %>%
  ungroup()

# Calculate rank by year (higher value => higher rank)
dat <- dat %>%
  group_by(year) %>%
  mutate(rank = dense_rank(desc(value))) %>% # Rank countries by descending value
  ungroup()

# Calculate rank change (positive = moved up, negative = moved down)
dat <- dat %>%
  group_by(iso3c) %>%
  mutate(rank_change = rank - lag(rank)) %>% # Change in rank compared to previous year
  ungroup()

# Select and reorder final columns
final_data <- dat %>%
  select(
    country,
    iso2c,
    iso3c,
    year,
    value,
    value_change,
    value_change_percent,
    rank,
    rank_change
  )

# Add labels (variable descriptions)
attr(final_data$country, "label") <- "Country name"
attr(final_data$iso2c, "label") <- "ISO 2-letter country code"
attr(final_data$iso3c, "label") <- "ISO 3-letter country code"
attr(final_data$year, "label") <- "Year"
attr(final_data$value, "label") <- "GDP per capita (current US$)"
attr(final_data$value_change, "label") <- "Year-over-Year change in value"
attr(final_data$value_change_percent, "label") <- "Year-over-Year percent change in value"
attr(final_data$rank, "label") <- "Country rank by GDP per capita (higher = richer)"
attr(final_data$rank_change, "label") <- "Change in rank from previous year"

# Print the first few rows of the final dataset
print(head(final_data, 10))