← Agent Data Hub · Search endpoints · /llms.txt
Central government debt (% of GDP) for any country or region (ISO-2 code), with the latest value, change vs. previous year and the yearly history (default last 10 years, up to 1960). Indicator GC.DOD.TOTL.GD.ZS.
GET https://api.agentdatahub.de/api/v1/call/wb-government-debt?country=DE&years=10&compact=1
Full metadata: without compact=1 · Markdown: format=llm · Only some fields: add &fields=a,b.c · MCP: tool call_api with {"apiId":"wb-government-debt"}
country | ISO-2 country or World Bank region code, e.g. DE, US, CN, EU, 1W (world) (default: DE) |
years | Number of most recent years to return, 1-70 (default: 10) |
{
"apiId": "wb-government-debt",
"data_freshness": "cached",
"data": {
"indicator": "GC.DOD.TOTL.GD.ZS",
"title": "Central government debt (% of GDP)",
"unit": "% of GDP",
"country": "DE",
"latest": {
"year": "1990",
"value": 20.8541847518408
},
"change_vs_previous": null,
"years_available": {
"from": "1990",
"to": "1990",
"count": 1
},
"series": [
{
"year": "1990",
"value": 20.8541847518408
}
],
"full_history_url": "/api/v1/series/wb.GC.DOD.TOTL.GD.ZS.DE?format=csv",
"served_from": "archive"
},
"source": "World Bank World Development Indicators",
"license": "World Bank CC-BY 4.0 Open Data"
}
Recorded history available: /api/v1/history/wb-government-debt?country=DE&years=10
| Source | World Bank World Development Indicators |
| License | World Bank CC-BY 4.0 Open Data |
| Source URL | https://api.worldbank.org/v2/country/DE/indicator/GC.DOD.TOTL.GD.ZS |
| Terms | https://www.worldbank.org/en/about/legal/terms-of-use-for-datasets |
| Category | Finance & Markets › Macro Indicators (World Bank, full history) |