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

Central Government Debt (% of GDP) by Country

Official World Bank central government debt as a percentage of Gross Domestic Product.

Call it (no API key)

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

Parameters

countryISO-2 country code e.g. DE, US, CH, GB, FR, JP, CN (default: US)

Example response (live, compact)

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

SourceWorld Bank Open Data API (GC.DOD.TOTL.GD.ZS)
LicenseWorld Bank CC-BY 4.0 Open Data
Source URLhttps://api.worldbank.org/v2/country/US/indicator/GC.DOD.TOTL.GD.ZS?format=json
Termshttps://www.worldbank.org/en/about/legal/terms-of-use-for-datasets
CategoryFinance & Markets › 6. Macroeconomics & Central Banks