DataBrighten

    Total debt service (% of exports of goods, services and primary income)

    4,911 × 6rows × columns: 122 countries, 1970 to 2025

    Real data: World Bank, World Development Indicators, indicator DT.TDS.DECT.EX.ZS, retrieved 19 November 2026. Values are as published; we only reshaped the file.

    textnumberdateyes/no
    Rows4,911country-year values
    Countries122with at least one value
    Years1970 – 202556 years with data
    LicenceCC BY 4.0credit the World Bank

    What it measures

    Total debt service to exports of goods, services and primary income. Total debt service is the sum of principal repayments and interest actually paid in currency, goods, or services on long-term debt, interest paid on short-term debt, and repayments (repurchases and charges) to the IMF.

    The numbers in 2025

    In 2025, 112 countries have a value. The highest is El Salvador (79.22); the lowest is Iran, Islamic Rep. (0.234). The median country value is 13.11.

    Top 10 countries, 2025

    % of exports of goods, services and primary income

    Source: World Bank, DT.TDS.DECT.EX.ZS, retrieved 19 November 2026. Computed from total-debt-service-percent-of-exports-of-goods-services-and-primary-income.csv.

    Highest, 2025

    #CountryValue
    1El Salvador79.22
    2Kazakhstan64.22
    3Jamaica53.95
    4Mozambique47.44
    5Colombia45.39
    6Suriname44.1
    7Brazil38.56
    8Senegal34.06
    9Papua New Guinea33.85
    10Pakistan32.82

    Lowest, 2025

    #CountryValue
    1Iran, Islamic Rep.0.234
    2Somalia, Fed. Rep.0.531
    3Congo, Dem. Rep.1.17
    4Solomon Islands2.43
    5Iraq2.57
    6Thailand2.66
    7Timor-Leste3.06
    8Guyana3.21
    9Sudan3.6
    10Djibouti3.62
    How many countries report, by decade
    DecadeMost countries in one year
    1970s70
    1980s86
    1990s98
    2000s112
    2010s118
    2020s118

    By region, 2025

    World Bank regionValue
    South Asia10.46

    First rows

    total-debt-service-percent-of-exports-of-goods-services-and-primary-income.csv

    countrytextiso3textregiontextincome_grouptextyearnumbervaluenumber
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20080.402819292909909
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20090.487686262661291
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20100.379800304548119
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20110.323576197654212
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20120.598756026307849
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20131.58322814481768
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20141.93817780124898
    AfghanistanAFGMiddle East, North Africa, Afghanistan & PakistanLow income20153.29960835231138

    Data dictionary

    ColumnTypeMeaning
    countrytextCountry or economy, World Bank name
    iso3textISO 3166-1 alpha-3 code
    regiontextWorld Bank region
    income_grouptextWorld Bank income group
    yearnumberCalendar year of the value
    valuenumberTotal debt service (% of exports of goods, services and primary income), exactly as the World Bank API returns it (not rounded)

    Only country-years with a value are in the long file; blank cells in the wide file mean no value was published.

    Practice questions

    answers computed from the file

    Which country has the highest value in 2025?

    El Salvador, with 79.22.

    Excel (on the long CSV: E = year, F = value)

    =FILTER(A2:A100000,(E2:E100000=2025)*(F2:F100000=MAXIFS(F2:F100000,E2:E100000,2025)))

    SQL (table wb = the CSV)

    SELECT country, value FROM wb WHERE year = 2025
      AND value = (SELECT MAX(value) FROM wb WHERE year = 2025);

    pandas (df = pd.read_csv("total-debt-service-percent-of-exports-of-goods-services-and-primary-income.csv"))

    y = df[df.year == 2025]
    y[y.value == y.value.max()][["country", "value"]]

    File: total-debt-service-percent-of-exports-of-goods-services-and-primary-income.csv

    How many countries report a value for 2025?

    112 of the 217 economies in the file's country list.

    Excel (on the long CSV: E = year, F = value)

    =COUNTIF(E2:E100000,2025)

    SQL (table wb = the CSV)

    SELECT COUNT(*) FROM wb WHERE year = 2025;

    pandas (df = pd.read_csv("total-debt-service-percent-of-exports-of-goods-services-and-primary-income.csv"))

    (df.year == 2025).sum()

    File: total-debt-service-percent-of-exports-of-goods-services-and-primary-income.csv

    What is the median across countries in 2025?

    13.11 (median of the 112 country values; not a World Bank aggregate).

    Excel (on the long CSV: E = year, F = value)

    =MEDIAN(FILTER(F2:F100000,E2:E100000=2025))

    SQL (table wb = the CSV)

    -- SQLite has no MEDIAN(); this picks the middle value(s)
    SELECT AVG(value) FROM (SELECT value FROM wb WHERE year = 2025 ORDER BY value
      LIMIT 2 - (SELECT COUNT(*) FROM wb WHERE year = 2025) % 2
      OFFSET (SELECT (COUNT(*) - 1) / 2 FROM wb WHERE year = 2025));

    pandas (df = pd.read_csv("total-debt-service-percent-of-exports-of-goods-services-and-primary-income.csv"))

    df[df.year == 2025]["value"].median()

    File: total-debt-service-percent-of-exports-of-goods-services-and-primary-income.csv

    Which country rose the most between 2015 and 2025?

    El Salvador: from 18.58 to 79.22, a rise of 60.64 (out of 111 countries with both years).

    Excel (on the long CSV: E = year, F = value)

    Use the wide file (total-debt-service-percent-of-exports-of-goods-services-and-primary-income-wide.csv): add a column = [2025] - [2015], then sort it largest to smallest.

    SQL (table wb = the CSV)

    SELECT a.country, b.value - a.value AS rise FROM wb a JOIN wb b ON a.iso3 = b.iso3
    WHERE a.year = 2015 AND b.year = 2025 ORDER BY rise DESC LIMIT 1;

    pandas (df = pd.read_csv("total-debt-service-percent-of-exports-of-goods-services-and-primary-income.csv"))

    w = df.pivot(index="country", columns="year", values="value")
    (w[2025] - w[2015]).dropna().nlargest(1)

    File: total-debt-service-percent-of-exports-of-goods-services-and-primary-income.csv

    Which year has the most countries reporting?

    2021, with 118 countries. (Later years are still filling in as countries report.)

    Excel (on the long CSV: E = year, F = value)

    Make a pivot table: year in Rows, Count of value in Values, then sort by the count.

    SQL (table wb = the CSV)

    SELECT year, COUNT(*) AS n FROM wb GROUP BY year ORDER BY n DESC, year DESC LIMIT 1;

    pandas (df = pd.read_csv("total-debt-service-percent-of-exports-of-goods-services-and-primary-income.csv"))

    df.groupby("year").size().sort_values(ascending=False).head(1)

    File: total-debt-service-percent-of-exports-of-goods-services-and-primary-income.csv