← Agent Data Hub · Search endpoints · /llms.txt
Estimates of the United Nations (World Population Prospects 2024) for 237 countries and areas and the world, every year 1950-2023: total population on 1 July in thousands, life expectancy at birth (both sexes, years) and total fertility rate (live births per woman). Projections from 2024 to 2100 are on un-population-projections. Options for series: country: WLD, AD, AE, AF, AG, AI, AL, AM, AO, AR, AS, AT, AU, AW, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BL, BM, BN, BO, BQ, BR, BS, BT, BW, BY, BZ, CA, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CR, CU, CV, CW, CY, CZ, DE, DJ, DK, DM, DO, DZ, EC, EE, EG, EH, ER, ES, ET, FI, FJ, FK, FM, FO, FR, GA, GB, GD, GE, GF, GG, GH, GI, GL, GM, GN, GP, GQ, GR, GT, GU, GW, GY, HK, HN, HR, HT, HU, ID, IE, IL, IM, IN, IQ, IR, IS, IT, JE, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MQ, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NG, NI, NL, NO, NP, NR, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PR, PS, PT, PW, PY, QA, RE, RO, RS, RU, RW, SA, SB, SC, SD, SE, SG, SH, SI, SK, SL, SM, SN, SO, SR, SS, ST, SV, SX, SY, SZ, TC, TD, TG, TH, TJ, TK, TL, TM, TN, TO, TR, TT, TV, TW, TZ, UA, UG, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, XK, YE, YT, ZA, ZM, ZW; measure: population, life-expectancy, fertility-rate.
GET https://api.agentdatahub.de/api/v1/call/un-population-estimates?country=WLD&measure=population&compact=1
Full metadata: verbose=1 · Markdown: format=llm · Only some fields: add &fields=a,b.c · MCP: tool call_api with {"apiId":"un-population-estimates"}
curl:
curl -s 'https://api.agentdatahub.de/api/v1/call/un-population-estimates?country=WLD&measure=population&compact=1'
Python (standard library only):
import json, urllib.request
url = "https://api.agentdatahub.de/api/v1/call/un-population-estimates?country=WLD&measure=population&compact=1"
with urllib.request.urlopen(url, timeout=30) as r:
data = json.load(r)
print(json.dumps(data, indent=2)[:2000])
Google Sheets:
=IMPORTDATA("https://api.agentdatahub.de/api/v1/history/un-population-estimates?country=WLD&measure=population&_order=desc&_limit=500&format=csv")
The recorded history of this call as CSV, newest first. Excel: Data → From Web with the same address.
country | Country or area (ISO-2 code or name), or WLD for the world (required; several comma-separated to compare, up to 10 series): WLD, AD, AE, AF, AG, AI, AL, AM, AO, AR, AS, AT, AU, AW, AZ, BA, BB, BD, BE, BF, BG, BH, BI, BJ, BL, BM, BN, BO, BQ, BR, BS, BT, BW, BY, BZ, CA, CD, CF, CG, CH, CI, CK, CL, CM, CN, CO, CR, CU, CV, CW, CY, CZ, DE, DJ, DK, DM, DO, DZ, EC, EE, EG, EH, ER, ES, ET, FI, FJ, FK, FM, FO, FR, GA, GB, GD, GE, GF, GG, GH, GI, GL, GM, GN, GP, GQ, GR, GT, GU, GW, GY, HK, HN, HR, HT, HU, ID, IE, IL, IM, IN, IQ, IR, IS, IT, JE, JM, JO, JP, KE, KG, KH, KI, KM, KN, KP, KR, KW, KY, KZ, LA, LB, LC, LI, LK, LR, LS, LT, LU, LV, LY, MA, MC, MD, ME, MF, MG, MH, MK, ML, MM, MN, MO, MP, MQ, MR, MS, MT, MU, MV, MW, MX, MY, MZ, NA, NC, NE, NG, NI, NL, NO, NP, NR, NU, NZ, OM, PA, PE, PF, PG, PH, PK, PL, PM, PR, PS, PT, PW, PY, QA, RE, RO, RS, RU, RW, SA, SB, SC, SD, SE, SG, SH, SI, SK, SL, SM, SN, SO, SR, SS, ST, SV, SX, SY, SZ, TC, TD, TG, TH, TJ, TK, TL, TM, TN, TO, TR, TT, TV, TW, TZ, UA, UG, US, UY, UZ, VA, VC, VE, VG, VI, VN, VU, WF, WS, XK, YE, YT, ZA, ZM, ZW |
measure | population (thousands, 1 July), life-expectancy (years) or fertility-rate (births per woman) (required; several comma-separated to compare, up to 10 series): population, life-expectancy, fertility-rate |
series | Optional full series key as returned by /ask (instead of the parameters above), comma-separated for several |
from | Optional start YYYY, YYYY-MM or YYYY-MM-DD |
to | Optional end YYYY, YYYY-MM or YYYY-MM-DD |
last | Number of most recent periods when no from/to is given, 1-500 (default: 13) |
group | Optional country group instead of country (EU27, EA, OECD, G7, G20, a continent): one row per member, newest value each |
period | Only with group: latest (default) or common (one period across members) |
{
"apiId": "un-population-estimates",
"trust": "checked",
"data_freshness": "live",
"data": {
"country": "WLD",
"measure": "population",
"series": "World, population on 1 July, thousands (UN WPP 2024 estimate 1950-2023)",
"unit": "thousand persons",
"frequency": "A",
"latest": {
"period": "2023",
"value": 8091734.93
},
"history": [
{
"period": "2011",
"value": 7110923.766
},
{
"period": "2012",
"value": 7201202.484
},
{
"period": "2013",
"value": 7291793.585
},
{
"period": "2014",
"value": 7381616.244
},
{
"period": "2015",
"value": 7470491.872
},
{
"period": "2016",
"value": 7558554.526
},
{
"period": "2017",
"value": 7645617.954
},
{
"period": "2018",
"value": 7729902.78
},
{
"period": "2019",
"value": 7811293.698
},
{
"period": "2020",
"value": 7887001.292
},
{
"period": "2021",
"value": 7954448.392
},
{
"period": "2022",
"value": 8021407.192
},
{
"period": "2023",
"value": 8091734.93
}
],
"available": {
"from": "1950",
"to": "2023",
"points": 74
},
"note": "UN estimate (modelled from censuses, surveys and registers), World Population Prospects 2024; years from 2024 are projections (un-population-projections). Unit: thousands of persons, 1 July.",
"verification": {
"checked_at": "2026-11-28T21:46:24.994Z",
"checks": []
},
"source": {
"publisher": "United Nations, Population Division (World Population Prospects 2024)",
"licence": "CC BY 3.0 IGO",
"licence_url": "https://population.un.org/wpp/assets/downloads.json",
"series_title": "WLD World | Total Population, as of 1 July (thousands) | Medium | 1950-2023"
},
"attribution": "Source: United Nations, Department of Economic and Social Affairs, Population Division (2024). World Population Prospects 2024, Online Edition (CC BY 3.0 IGO)"
},
"source": "United Nations, Population Division (World Population Prospects 2024)",
"source_url": "https://population.un.org/wpp/assets/downloads.json",
"license": "CC BY 3.0 IGO",
"licence_status": "yellow",
"as_of": "2023",
"checked": "2026-11-28"
}
Recorded history available: /api/v1/history/un-population-estimates?country=WLD&measure=population
| Source | United Nations, Population Division (World Population Prospects 2024) |
| License | CC BY 3.0 IGO |
| Source URL | https://population.un.org/wpp/assets/downloads.json |
| Terms | https://population.un.org/wpp/assets/downloads.json |
| Category | Society & Demographics › Population (UN World Population Prospects) · more: un-population-projections · effective-retirement-age-by-country · old-age-pension-spending-by-country |