All datasets

General government gross debt

Gross debt consists of all liabilities that require payment or payments of interest and/or principal by the debtor to the creditor at a date or dates in the future. This includes debt liabilities in the form of SDRs, currency and deposits, debt securities, loans, insurance, pensions and standardized guarantee schemes, and other accounts payable. Thus, all liabilities in the GFSM 2001 system are debt, except for equity and investment fund shares and financial derivatives and employee stock options. Debt can be valued at current market, nominal, or face values (GFSM 2001, paragraph 7.110).

Source: IMF DataMapper8,113 rowsUpdated: 9/21/2026
debtfiscalgovernmentimf

Quality

92.5

Attribution

International Monetary Fund (IMF DataMapper)

Schema

ColumnTypeDescription
country_codestringIMF country code (ISO 3166-1 alpha-3).
country_namestringCountry label from the IMF DataMapper country list.
yearintegerCalendar year of the observation.
valuefloatIndicator value for the country and year, as defined by the IMF World Economic Outlook (see the dataset description). Missing values are null. (unit: % of GDP)

Sample rows

country_codecountry_nameyearvalue
ABWAruba199555.1
ABWAruba199654.8
ABWAruba199751.1
ABWAruba199841
ABWAruba199939.3

Use with an LLM

Point any LLM at the metadata endpoint — the documentation above is machine-readable too (JSON-LD + Croissant).

cURL

curl "https://datazimuts.com/v1/datasets/imf/imf_government_debt" | jq '{title, rows, columns_count, license}'

Python

import requests

ds = requests.get("https://datazimuts.com/v1/datasets/imf/imf_government_debt").json()
print(ds["title"], ds["rows"], "rows")

# Sample rows for an LLM context window
for row in ds.get("sample_rows", [])[:5]:
    print(row)

API endpoint: https://datazimuts.com/v1/datasets/imf/imf_government_debt

Tip: fetch /llms.txt for the full machine-readable catalog.

General government gross debt