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

Macroeconomic Country GDP (Total Billions USD)

Official World Bank Gross Domestic Product (GDP in billions of current USD) for any country.

Call it (no API key)

GET https://api.agentdatahub.de/api/v1/call/macro-country-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-country-gdp"}

Parameters

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

Example response (live, compact)

{
  "apiId": "macro-country-gdp",
  "data_freshness": "cached",
  "data": {
    "country": "US",
    "country_name": "United States",
    "indicator_code": "NY.GDP.MKTP.CD",
    "indicator_name": "GDP (current US$)",
    "unit": "Billions USD",
    "latest_year": "2025",
    "latest_value": 30769.7,
    "history": [
      {
        "year": "2025",
        "value": 30769.7
      },
      {
        "year": "2024",
        "value": 29298.01
      },
      {
        "year": "2023",
        "value": 27811.52
      },
      {
        "year": "2022",
        "value": 26054.61
      },
      {
        "year": "2021",
        "value": 23725.65
      },
      {
        "year": "2020",
        "value": 21375.28
      }
    ]
  },
  "source": "World Bank Open Data API (NY.GDP.MKTP.CD)",
  "license": "World Bank CC-BY 4.0 Open Data"
}

Recorded history available: /api/v1/history/macro-country-gdp?country=US

Source & license

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