← Agent Data Hub · Search endpoints · /llms.txt
Foreign direct investment, net inflows (% 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 BX.KLT.DINV.WD.GD.ZS.
GET https://api.agentdatahub.de/api/v1/call/wb-fdi-inflows?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-fdi-inflows"}
country | ISO-2 country or World Bank region code, e.g. DE, US, CN, EU, 1W (world) (default: DE) |
years | Number of most recent years to return, 1-70 (default: 10) |
{
"apiId": "wb-fdi-inflows",
"data_freshness": "cached",
"data": {
"indicator": "BX.KLT.DINV.WD.GD.ZS",
"title": "Foreign direct investment, net inflows (% of GDP)",
"unit": "% of GDP",
"country": "DE",
"latest": {
"year": "2025",
"value": 1.88462297077009
},
"change_vs_previous": {
"year": "2024",
"value": 1.33680512940413,
"delta": 0.54781784
},
"years_available": {
"from": "1971",
"to": "2025",
"count": 55
},
"series": [
{
"year": "2016",
"value": 1.64365840117303
},
{
"year": "2017",
"value": 2.88914588414184
},
{
"year": "2018",
"value": 4.00082875273687
},
{
"year": "2019",
"value": 1.9056930139782
},
{
"year": "2020",
"value": 4.48523547812751
},
{
"year": "2021",
"value": 2.93002168676674
},
{
"year": "2022",
"value": 1.82269397984058
},
{
"year": "2023",
"value": 1.99210813981277
},
{
"year": "2024",
"value": 1.33680512940413
},
{
"year": "2025",
"value": 1.88462297077009
}
],
"full_history_url": "/api/v1/series/wb.BX.KLT.DINV.WD.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-fdi-inflows?country=DE&years=10
| Source | World Bank World Development Indicators |
| License | World Bank CC-BY 4.0 Open Data |
| Source URL | https://api.worldbank.org/v2/country/DE/indicator/BX.KLT.DINV.WD.GD.ZS |
| Terms | https://www.worldbank.org/en/about/legal/terms-of-use-for-datasets |
| Category | Finance & Markets › Macro Indicators (World Bank, full history) |