← Agent Data Hub · Search endpoints · /llms.txt
Official World Bank Gross Domestic Product (GDP in billions of current USD) for any country.
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"}
country | ISO-2 country code e.g. DE, US, CH, GB, FR, JP, CN (default: US) |
{
"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 | World Bank Open Data API (NY.GDP.MKTP.CD) |
| License | World Bank CC-BY 4.0 Open Data |
| Source URL | https://api.worldbank.org/v2/country/US/indicator/NY.GDP.MKTP.CD?format=json |
| Terms | https://www.worldbank.org/en/about/legal/terms-of-use-for-datasets |
| Category | Finance & Markets › 6. Macroeconomics & Central Banks |