← Agent Data Hub · Search endpoints · /llms.txt

UN Population Projections 2024-2100 by Country — Population, Life Expectancy, Fertility Rate, Medium Variant (World Population Prospects 2024)

Projections of the United Nations (World Population Prospects 2024, medium variant) for 237 countries and areas and the world, every year 2024-2100: total population on 1 July in thousands, life expectancy at birth (both sexes, years) and total fertility rate (live births per woman). Projections, not observed values; the estimates for 1950-2023 are on un-population-estimates. Ask a year with from/to, e.g. from=2050&to=2050. 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.

Call it (no API key)

GET https://api.agentdatahub.de/api/v1/call/un-population-projections?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-projections"}

How to fetch it

curl:

curl -s 'https://api.agentdatahub.de/api/v1/call/un-population-projections?country=WLD&measure=population&compact=1'

Python (standard library only):

import json, urllib.request

url = "https://api.agentdatahub.de/api/v1/call/un-population-projections?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-projections?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.

Parameters

countryCountry 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
measurepopulation (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
seriesOptional full series key as returned by /ask (instead of the parameters above), comma-separated for several
fromOptional start YYYY, YYYY-MM or YYYY-MM-DD
toOptional end YYYY, YYYY-MM or YYYY-MM-DD
lastNumber of most recent periods when no from/to is given, 1-500 (default: 13)
groupOptional country group instead of country (EU27, EA, OECD, G7, G20, a continent): one row per member, newest value each
periodOnly with group: latest (default) or common (one period across members)

Example response (live, compact)

{
  "apiId": "un-population-projections",
  "trust": "checked",
  "data_freshness": "live",
  "data": {
    "country": "WLD",
    "measure": "population",
    "series": "World, population on 1 July, thousands (UN WPP 2024 projection 2024-2100, Medium variant)",
    "unit": "thousand persons",
    "frequency": "A",
    "latest": {
      "period": "2100",
      "value": 10180160.751
    },
    "history": [
      {
        "period": "2088",
        "value": 10280704.572
      },
      {
        "period": "2089",
        "value": 10276518.28
      },
      {
        "period": "2090",
        "value": 10271565.07
      },
      {
        "period": "2091",
        "value": 10265861.714
      },
      {
        "period": "2092",
        "value": 10259408.375
      },
      {
        "period": "2093",
        "value": 10252184.759
      },
      {
        "period": "2094",
        "value": 10244185.837
      },
      {
        "period": "2095",
        "value": 10235403.601
      },
      {
        "period": "2096",
        "value": 10225850.874
      },
      {
        "period": "2097",
        "value": 10215549.31
      },
      {
        "period": "2098",
        "value": 10204489.862
      },
      {
        "period": "2099",
        "value": 10192689.066
      },
      {
        "period": "2100",
        "value": 10180160.751
      }
    ],
    "available": {
      "from": "2024",
      "to": "2100",
      "points": 77
    },
    "note": "Projection, medium variant, World Population Prospects 2024 (UN), not an observed value; years up to 2023 are estimates (un-population-estimates). Unit: thousands of persons, 1 July.",
    "verification": {
      "checked_at": "2026-11-28T21:46:24.259Z",
      "checks": [
        {
          "period": "2024",
          "field": "value",
          "expected": 8200000,
          "ok": true,
          "evidence": "UN DESA, World Population Prospects 2024: Summary of Results (UN DESA/POP/2024/TR/NO. 9), Key messages: \"up from 8.2 billion in 2024\" (thousands, rounded to 0.1 billion)"
        },
        {
          "period": "2084",
          "field": "value",
          "expected": 10300000,
          "ok": true,
          "evidence": "UN DESA, World Population Prospects 2024: Summary of Results (UN DESA/POP/2024/TR/NO. 9), Key messages: \"reaching a peak of around 10.3 billion people in the mid-2080s\" (peak year 2084, thousands)"
        },
        {
          "period": "2100",
          "field": "value",
          "expected": 10200000,
          "ok": true,
          "evidence": "UN DESA, World Population Prospects 2024: Summary of Results (UN DESA/POP/2024/TR/NO. 9), Key messages: \"falling to 10.2 billion people by the end of the century\""
        }
      ]
    },
    "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 | 2024-2100"
    },
    "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": "2100",
  "checked": "2026-11-28"
}

Recorded history available: /api/v1/history/un-population-projections?country=WLD&measure=population

Source & license

SourceUnited Nations, Population Division (World Population Prospects 2024)
LicenseCC BY 3.0 IGO
Source URLhttps://population.un.org/wpp/assets/downloads.json
Termshttps://population.un.org/wpp/assets/downloads.json
CategorySociety & Demographics › Population (UN World Population Prospects) · more: effective-retirement-age-by-country · old-age-pension-spending-by-country · pension-replacement-rate-by-country