← Agent Data Hub · Search endpoints · /llms.txt
Official World Bank central government debt as a percentage of Gross Domestic Product.
GET https://api.agentdatahub.de/api/v1/call/macro-government-debt-gdp?country=US&compact=1
Full metadata: without compact=1 · Markdown: format=llm · Only some fields: add &fields=a,b.c · MCP: tool call_api with {"apiId":"macro-government-debt-gdp"}
country | ISO-2 country code e.g. DE, US, CH, GB, FR, JP, CN (default: US) |
{
"apiId": "macro-government-debt-gdp",
"data_freshness": "cached",
"data": {
"country": "US",
"country_name": "United States",
"indicator_code": "GC.DOD.TOTL.GD.ZS",
"indicator_name": "Central government debt, total (% of GDP)",
"unit": "% of GDP",
"latest_year": "2024",
"latest_value": 115.79,
"history": [
{
"year": "2024",
"value": 115.79
},
{
"year": "2023",
"value": 114.74
},
{
"year": "2022",
"value": 112.72
},
{
"year": "2021",
"value": 118.28
},
{
"year": "2020",
"value": 124.51
},
{
"year": "2019",
"value": 100.23
}
]
},
"source": "World Bank Open Data API (GC.DOD.TOTL.GD.ZS)",
"license": "World Bank CC-BY 4.0 Open Data"
}
Recorded history available: /api/v1/history/macro-government-debt-gdp?country=US
| Source | World Bank Open Data API (GC.DOD.TOTL.GD.ZS) |
| License | World Bank CC-BY 4.0 Open Data |
| Source URL | https://api.worldbank.org/v2/country/US/indicator/GC.DOD.TOTL.GD.ZS?format=json |
| Terms | https://www.worldbank.org/en/about/legal/terms-of-use-for-datasets |
| Category | Finance & Markets › 6. Macroeconomics & Central Banks |