← Agent Data Hub · Search endpoints · /llms.txt
Life expectancy at birth (years) 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 SP.DYN.LE00.IN.
GET https://api.agentdatahub.de/api/v1/call/wb-life-expectancy?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-life-expectancy"}
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-life-expectancy",
"data_freshness": "cached",
"data": {
"indicator": "SP.DYN.LE00.IN",
"title": "Life expectancy at birth (years)",
"unit": "years",
"country": "DE",
"latest": {
"year": "2024",
"value": 80.7926829268293
},
"change_vs_previous": {
"year": "2023",
"value": 81.0414634146342,
"delta": -0.24878049
},
"years_available": {
"from": "1960",
"to": "2024",
"count": 65
},
"series": [
{
"year": "2015",
"value": 80.6414634146341
},
{
"year": "2016",
"value": 80.990243902439
},
{
"year": "2017",
"value": 80.9926829268293
},
{
"year": "2018",
"value": 80.8926829268293
},
{
"year": "2019",
"value": 81.2926829268293
},
{
"year": "2020",
"value": 81.0414634146342
},
{
"year": "2021",
"value": 80.790243902439
},
{
"year": "2022",
"value": 80.6080487804878
},
{
"year": "2023",
"value": 81.0414634146342
},
{
"year": "2024",
"value": 80.7926829268293
}
],
"full_history_url": "/api/v1/series/wb.SP.DYN.LE00.IN.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-life-expectancy?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/SP.DYN.LE00.IN |
| Terms | https://www.worldbank.org/en/about/legal/terms-of-use-for-datasets |
| Category | Finance & Markets › Macro Indicators (World Bank, full history) |