← Agent Data Hub · Search endpoints · /llms.txt

Central government debt (% of GDP) by Country — History since 1960 (World Bank)

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.

Call it (no API key)

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"}

Parameters

countryISO-2 country or World Bank region code, e.g. DE, US, CN, EU, 1W (world) (default: DE)
yearsNumber of most recent years to return, 1-70 (default: 10)

Example response (live, compact)

{
  "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 & license

SourceWorld Bank World Development Indicators
LicenseWorld Bank CC-BY 4.0 Open Data
Source URLhttps://api.worldbank.org/v2/country/DE/indicator/GC.DOD.TOTL.GD.ZS
Termshttps://www.worldbank.org/en/about/legal/terms-of-use-for-datasets
CategoryFinance & Markets › Macro Indicators (World Bank, full history)