← Agent Data Hub · Search endpoints · /llms.txt
Official World Bank Gross Domestic Product divided by midyear population in current USD.
GET https://api.agentdatahub.de/api/v1/call/macro-gdp-per-capita?country=CH&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-gdp-per-capita"}
country | ISO-2 country code e.g. DE, US, CH, GB, FR, JP, CN (default: CH) |
{
"apiId": "macro-gdp-per-capita",
"data_freshness": "cached",
"data": {
"country": "CH",
"country_name": "Switzerland",
"indicator_code": "NY.GDP.PCAP.CD",
"indicator_name": "GDP per capita (current US$)",
"unit": "USD per Capita",
"latest_year": "2025",
"latest_value": 114769.01,
"history": [
{
"year": "2025",
"value": 114769.01
},
{
"year": "2024",
"value": 107702.07
},
{
"year": "2023",
"value": 104449.75
},
{
"year": "2022",
"value": 97809.1
},
{
"year": "2021",
"value": 96582.87
},
{
"year": "2020",
"value": 87529.7
}
]
},
"source": "World Bank Open Data API (NY.GDP.PCAP.CD)",
"license": "World Bank CC-BY 4.0 Open Data"
}
Recorded history available: /api/v1/history/macro-gdp-per-capita?country=CH
| Source | World Bank Open Data API (NY.GDP.PCAP.CD) |
| License | World Bank CC-BY 4.0 Open Data |
| Source URL | https://api.worldbank.org/v2/country/CH/indicator/NY.GDP.PCAP.CD?format=json |
| Terms | https://www.worldbank.org/en/about/legal/terms-of-use-for-datasets |
| Category | Finance & Markets › 6. Macroeconomics & Central Banks |