Exports of goods and services (annual % growth)

Source: worldbank.org, 03.09.2025

Year: 2024

Flag Country Value Value change, % Rank
Angola Angola 5.05 -182% 49
Albania Albania -0.764 -108% 95
Argentina Argentina 23.2 -408% 6
Armenia Armenia 35.6 +16% 4
Australia Australia 3.88 -42.3% 54
Austria Austria -4.27 +913% 116
Belgium Belgium -3.42 -52.1% 113
Benin Benin 4.38 +1.88% 51
Burkina Faso Burkina Faso -4.92 +120% 119
Bangladesh Bangladesh -17.1 -313% 128
Bulgaria Bulgaria -0.821 -480,608% 97
Bahamas Bahamas 6.18 +22.4% 37
Bosnia & Herzegovina Bosnia & Herzegovina -3.07 +146% 110
Belarus Belarus 2.95 -84.4% 65
Bermuda Bermuda 11.7 +91.2% 17
Brazil Brazil 2.89 -67.6% 66
Brunei Brunei 3.98 -278% 52
Botswana Botswana -10.4 -15.9% 125
Central African Republic Central African Republic 24.7 +33.8% 5
Canada Canada 0.627 -87.4% 81
Switzerland Switzerland -0.276 -139% 92
Chile Chile 6.64 +4,555% 34
Côte d’Ivoire Côte d’Ivoire 0.2 -95.8% 86
Cameroon Cameroon -4.04 +4,951% 115
Congo - Kinshasa Congo - Kinshasa 11.9 -24.9% 15
Congo - Brazzaville Congo - Brazzaville -0.487 -149% 94
Colombia Colombia 2 -34.9% 71
Comoros Comoros -0.314 -98.1% 93
Cape Verde Cape Verde 10.8 +116% 20
Costa Rica Costa Rica 5.77 -42.1% 42
Cyprus Cyprus 5.26 -289% 48
Czechia Czechia 1.82 -33.5% 73
Germany Germany -1.13 +278% 100
Djibouti Djibouti 9.4 +349% 24
Denmark Denmark 7.53 -28% 32
Dominican Republic Dominican Republic 7.78 -587% 30
Ecuador Ecuador 1.79 +117% 74
Egypt Egypt -10.6 -134% 126
Spain Spain 3.09 +11% 63
Estonia Estonia -1.12 -87.5% 99
Ethiopia Ethiopia 15 -2,089% 11
Finland Finland 0.0902 -52.6% 88
France France 1.25 -39.8% 75
Gabon Gabon 3.97 -259% 53
United Kingdom United Kingdom -1.16 +178% 101
Georgia Georgia 5.9 -37.8% 40
Ghana Ghana 9.05 +76.2% 25
Guinea Guinea 7.6 -13.6% 31
Gambia Gambia 18.4 -31.9% 7
Guinea-Bissau Guinea-Bissau -8.72 +186% 124
Equatorial Guinea Equatorial Guinea -0.2 -99.3% 91
Greece Greece 1.03 -44.9% 76
Guatemala Guatemala 2.21 -191% 68
Hong Kong SAR China Hong Kong SAR China 4.73 -173% 50
Honduras Honduras -4.82 -30.8% 117
Croatia Croatia 0.891 -130% 78
Haiti Haiti -31.9 +232% 129
Hungary Hungary -2.98 -276% 108
Indonesia Indonesia 6.51 +385% 35
India India 7.12 +224% 33
Ireland Ireland 11.7 -301% 18
Iran Iran 6.14 -64.2% 38
Iraq Iraq -0.143 -101% 90
Iceland Iceland -1.25 -120% 102
Israel Israel -5.56 +386% 121
Italy Italy 0.359 +74.1% 83
Kenya Kenya 5.54 -222% 44
Cambodia Cambodia 14.4 -4,027% 12
Kiribati Kiribati 11.5 -157% 19
Libya Libya -6.9 -197% 123
Sri Lanka Sri Lanka 12.5 -5.42% 13
Lithuania Lithuania 2.08 -161% 69
Luxembourg Luxembourg 0.281 -186% 85
Latvia Latvia -1.59 -66.1% 104
Macao SAR China Macao SAR China 6.01 -93.1% 39
Morocco Morocco 8.56 -2.66% 26
Moldova Moldova -5.02 -204% 120
Madagascar Madagascar 0.845 -64.3% 79
Mexico Mexico 3.34 -146% 58
North Macedonia North Macedonia -3.79 +506% 114
Mali Mali 0.1 -95.6% 87
Malta Malta 5.31 -5.72% 47
Montenegro Montenegro -3.18 -135% 112
Mongolia Mongolia 0.685 -97.9% 80
Mozambique Mozambique -3 -43.9% 109
Mauritius Mauritius 2.06 -246% 70
Malaysia Malaysia 8.5 -205% 27
Namibia Namibia 0.0801 -99.4% 89
Niger Niger 48.5 -702% 1
Nicaragua Nicaragua -4.91 -473% 118
Netherlands Netherlands 0.392 -173% 82
Norway Norway 5.65 +1,185% 43
Nepal Nepal 11.8 +172% 16
Pakistan Pakistan -1.09 -134% 98
Peru Peru 5.37 +40.4% 46
Philippines Philippines 3.31 +148% 59
Poland Poland 1.97 -47% 72
Portugal Portugal 3.37 -11.5% 57
Paraguay Paraguay -2.01 -106% 106
Palestinian Territories Palestinian Territories -11.1 +84.4% 127
Romania Romania -3.08 +303% 111
Rwanda Rwanda 16 -37.9% 10
Saudi Arabia Saudi Arabia 3.66 -152% 56
Sudan Sudan 16.4 -144% 8
Senegal Senegal 41.3 -784% 3
Singapore Singapore 5.44 -4.7% 45
Sierra Leone Sierra Leone 6.5 -7.61% 36
El Salvador El Salvador 12.1 +127% 14
Somalia Somalia 10.7 -38.7% 21
Serbia Serbia 3.23 +18.2% 61
Slovakia Slovakia 0.311 -146% 84
Slovenia Slovenia 3.18 -260% 62
Sweden Sweden 2.35 -35.9% 67
Seychelles Seychelles 3.82 -193% 55
Chad Chad 2.97 -29.6% 64
Togo Togo 5.8 -14.7% 41
Thailand Thailand 7.84 +233% 29
Tunisia Tunisia -0.819 -108% 96
Turkey Turkey 0.946 -133% 77
Tanzania Tanzania 16.4 +23.9% 9
Uganda Uganda 46.4 +16,889% 2
Ukraine Ukraine 10.3 -272% 22
Uruguay Uruguay 8.33 +898% 28
United States United States 3.27 +18.4% 60
Uzbekistan Uzbekistan -5.93 -134% 122
Samoa Samoa -1.76 -101% 105
Kosovo Kosovo 9.65 +33.4% 23
South Africa South Africa -2.04 -155% 107
Zimbabwe Zimbabwe -1.26 -84.9% 103

The indicator of "Exports of goods and services (annual % growth)" serves as a vital metric for assessing the performance of an economy's external sector. It represents the percentage change in the value of goods and services that a country exports over a specified period, typically on an annual basis. Understanding this growth rate is crucial as it directly ties to economic health, international competitiveness, and overall growth potential. A positive growth rate indicates that the country is effectively tapping into international markets, while a negative rate often signals trade deficits, economic downturns, or reduced competitiveness.

The importance of this indicator cannot be understated, as it plays a key role in determining not only the economic stability of a country but also its relationship with other global economies. A country that experiences strong export growth may see an influx of foreign currency, which can help strengthen its currency, stimulate domestic investment, and generate employment opportunities. Additionally, export growth can contribute significantly to the Gross Domestic Product (GDP), making it an essential component of a nation's economic strategy.

Exports of goods and services are intrinsically connected to various other economic indicators. For example, they have strong correlations with GDP growth—countries with robust export sectors generally enjoy higher GDP growth rates. There is also a linkage to trade balances; a growth in exports typically improves a nation's trade balance, reflecting a healthier economic state. Furthermore, this indicator can impact inflation rates, as increased demand for exports can lead to higher prices domestically.

Several key factors influence the growth rate of exports, ranging from external economic conditions to internal policies. Global demand, commodity prices, currency exchange rates, and international trade agreements all affect export performance. For instance, countries dependent on specific commodities for their exports may experience volatility due to fluctuating global market prices. Political stability and the regulatory environment also play significant roles; countries with favorable conditions and transparent trade policies are better positioned to attract foreign buyers.

To enhance export growth, countries can adopt several strategies. First, investing in infrastructure—such as transportation and logistics—can reduce costs and improve efficiency, making exports more competitive. Second, promoting innovation and value addition in production can help create higher-quality goods that stand out in the global market. Governments can also consider trade policies that facilitate easier access to foreign markets, such as reducing tariffs or entering into free trade agreements. Lastly, marketing and branding efforts that highlight a country’s unique products can bolster international recognition and demand.

Despite the benefits, relying too heavily on exports can expose economies to various vulnerabilities. For example, countries with small, undiversified economies may find themselves at risk during global downturns or fluctuations in demand for their primary exports. Such dependence can lead to economic instability if not managed correctly. Moreover, if exports hinder domestic development—by prioritizing foreign buyers over local consumers—long-term growth can be compromised.

Looking at the most recent data from 2023, the global median value for the growth of exports of goods and services stands at 2.24%. This figure reflects a moderate pace of expansion that indicates some recovery but remains below historical averages. Notably, some regions have experienced exceptional growth; for instance, Samoa has an astonishing export growth rate of 154.34%. This is likely fueled by specific niche markets or unique products attracting significant international demand. Similarly, Macao SAR, China, with a growth rate of 87.45%, and Palau at 76.19%, indicate strong performances that could be attributed to their tourism-related services or other specialized industries. At the opposite end of the spectrum, nations like Timor-Leste, with a staggering decline of -59.99%, and Sudan at -39.9%, reveal the stark challenges some economies face. Such percentages often arise from geopolitical issues, internal strife, or resource depletion that have devastating effects on their trade capabilities.

In observing the broader historical context, the export growth rates have shown considerable fluctuations over the decades. From a peak of 11.81% in 2000 to a notable drop in 2020 to -8.52%, these statistics reflect the dynamic nature of global trade influenced by multiple factors, including economic recessions, the COVID-19 pandemic, and subsequent recovery phases. The current rate of 0.86% in 2023 suggests a recovery phase following significant disruptions, although it indicates that many economies are still grappling with the remnants of recent global challenges, aiming to regain momentum in their export activities.

In conclusion, the annual percentage growth of exports of goods and services is a crucial economic indicator that offers intricate insights into a nation’s economic health and global positioning. It holds profound implications for GDP growth, trade balances, and currency stability. By understanding its multifaceted relationships with various economic indicators and the factors influencing its performance, policymakers can devise strategies to stimulate export growth while safeguarding against potential vulnerabilities. As nations navigate through fluctuating trends and challenges, fostering a robust export sector remains paramount for sustainable economic development.

                    
# 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 = 'NE.EXP.GNFS.KD.ZG'

# 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 <- 'NE.EXP.GNFS.KD.ZG'

# 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))