International Debt Statistics (IDS)
The International Debt Statistics (IDS) provides detailed external debt data and financial flows for over 120 developing countries.
Key Indicators
External Debt Stock
| Indicator Code | Name | Description |
|---|---|---|
| DT.DOD.DECT.CD | External debt stocks, total (DOD, current US$) | Total external debt owed |
| DT.DOD.DLXF.CD | External debt stocks, long-term (DOD, current US$) | Long-term debt outstanding |
| DT.DOD.DSTC.CD | External debt stocks, short-term (DOD, current US$) | Short-term debt |
| DT.DOD.DPNG.CD | External debt stocks, public and publicly guaranteed (current US$) | Government-backed debt |
Debt Service
| Indicator Code | Name | Description |
|---|---|---|
| DT.TDS.DECT.EX.ZS | Total debt service (% of exports) | Debt service burden |
| DT.TDS.DECT.GN.ZS | Total debt service (% of GNI) | Debt service relative to income |
| DT.INT.DECT.CD | Interest payments on external debt (current US$) | Interest component |
| DT.AMT.DECT.CD | Principal repayments on external debt (current US$) | Principal payments |
Debt Composition
| Indicator Code | Name |
|---|---|
| DT.DOD.MWBG.CD | Debt stocks, IBRD (current US$) |
| DT.DOD.MIDA.CD | Debt stocks, IDA (current US$) |
| DT.DOD.MLTC.CD | Debt stocks, bilateral (current US$) |
| DT.DOD.PVLX.CD | Private creditors (current US$) |
Vietnam Debt Data Example
import requests
# Query Vietnam's external debt indicators
url = "https://ecodata.khoviet.com/api/v1/indicators"
params = {
"source": "WB",
"indicator": "DT.DOD.DECT.CD",
"country": "VN",
"start_year": 2010,
"end_year": 2023
}
response = requests.get(url, params=params)
data = response.json()
# Vietnam's external debt trend
for item in data['data']:
debt_billion = item['value'] / 1e9
print(f"{item['year']}: ${debt_billion:.1f} billion")
Use Cases
- Debt Sustainability Analysis - Assess country debt burden
- Country Risk Assessment - Evaluate creditworthiness
- Development Finance Research - Study lending patterns
- Policy Analysis - Debt management strategies
Data Update
IDS data is updated annually, typically in December.