{
  "name": "world-population-prospects",
  "title": "World Population Prospects: population, births, deaths, fertility, life expectancy and migration by country, 1950-2100 (UN WPP 2024)",
  "description": "Population and its demographic components for 237 countries and areas, the world and 60 UN regional and income aggregates, every year from 1950 to 2100: total population (1 July), births, deaths, net migration, total fertility rate, life expectancy at birth and median age. Estimates 1950-2023 and the medium-variant projection 2024-2100, from the United Nations World Population Prospects 2024 (UN DESA, Population Division), with the UN's January 2026 interim correction for Togo applied.",
  "status": "structured",
  "collection": "demographics",
  "licenses": [
    {
      "name": "CC-BY-3.0",
      "title": "Creative Commons Attribution 3.0 IGO (CC BY 3.0 IGO), the CC BY 3.0 licence for intergovernmental organisations. The UN: \"Copyright © 2024 by United Nations, made available under a Creative Commons license CC BY 3.0 IGO\". Attribution: United Nations, Department of Economic and Social Affairs, Population Division (2024). World Population Prospects 2024, Online Edition.",
      "path": "http://creativecommons.org/licenses/by/3.0/igo/"
    }
  ],
  "sources": [
    {
      "title": "United Nations, Department of Economic and Social Affairs, Population Division (2024). World Population Prospects 2024, Online Edition: Demographic Indicators, 1950-2100, medium (CSV)",
      "path": "https://population.un.org/wpp/assets/Excel%20Files/1_Indicator%20(Standard)/CSV_FILES/WPP2024_Demographic_Indicators_Medium.csv.gz"
    },
    {
      "title": "World Population Prospects 2024, interim update of 19 January 2026 (corrected Togo figures), CSV files",
      "path": "https://population.un.org/wpp/assets/Excel%20Files/1_Indicator%20(Standard)/WPP2024_CSV_files_update.zip"
    },
    {
      "title": "World Population Prospects 2024 (rev. 1): release note, 19 January 2026",
      "path": "https://population.un.org/wpp/assets/Files/WPP2024_Release-Note-rev1.pdf"
    },
    {
      "title": "World Population Prospects downloads page (licence and citation in the footer)",
      "path": "https://population.un.org/wpp/downloads"
    }
  ],
  "upkeep": { "mode": "frozen", "snapshot": "2026-11-29" },
  "resources": [
    {
      "path": "data/population-indicators.csv",
      "name": "population-indicators",
      "title": "Population, births, deaths, net migration, fertility, life expectancy and median age by location and year, 1950-2100",
      "mediatype": "text/csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          { "name": "loc_id", "type": "integer", "description": "UN location code (LocID), generally matching the ISO 3166-1 numeric code for countries and areas. Kosovo uses UN code 412, which is not an ISO-assigned numeric country code. World is 900. See locations.csv." },
          { "name": "iso3", "type": "string", "description": "Country/area alpha-3 code as supplied by the UN, generally ISO 3166-1; Kosovo uses the non-ISO code XKX. Empty for World and aggregates." },
          { "name": "location", "type": "string", "description": "Location name as the UN writes it (for example \"Republic of Korea\", \"Türkiye\")." },
          { "name": "loc_type", "type": "string", "description": "UN location type: World, Geographic region, Subregion, SDG region, Development group, Income group, Special other (LLDC and SIDS subgroups) or Country/Area. Country/Area identifies countries and areas. Their population totals do not exactly reproduce the published World and regional aggregates because Togo\u0027s figures were updated while aggregates were not; source rounding also causes small differences." },
          { "name": "year", "type": "year", "description": "Calendar year. Population and median age are on 1 July; births, deaths and net migration are totals for the year." },
          { "name": "period", "type": "string", "description": "estimate (1950-2023) or projection (2024-2100, UN medium variant). Projections are scenarios, not observations." },
          { "name": "population", "type": "integer", "description": "Total population on 1 July, persons (UN TPopulation1July, published in thousands, multiplied by 1,000 and rounded)." },
          { "name": "births", "type": "integer", "description": "Live births in the year, persons (UN Births, thousands x 1,000)." },
          { "name": "deaths", "type": "integer", "description": "Deaths in the year, persons (UN Deaths, thousands x 1,000)." },
          { "name": "net_migration", "type": "integer", "description": "Net number of migrants in the year (immigrants minus emigrants), persons; negative means more people left than arrived (UN NetMigrations, thousands x 1,000). Zero for the world by definition." },
          { "name": "fertility_rate", "type": "number", "description": "Total fertility rate: live births per woman (UN TFR). About 2.1 is the approximate replacement level." },
          { "name": "life_expectancy", "type": "number", "description": "Life expectancy at birth, both sexes, years (UN LEx)." },
          { "name": "median_age", "type": "number", "description": "Median age of the population on 1 July, years (UN MedianAgePop)." }
        ],
        "primaryKey": ["loc_id", "year"],
        "foreignKeys": [
          { "fields": "loc_id", "reference": { "resource": "locations", "fields": "loc_id" } }
        ]
      }
    },
    {
      "path": "data/locations.csv",
      "name": "locations",
      "title": "Locations: countries, areas and UN aggregates, with codes and types",
      "mediatype": "text/csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          { "name": "loc_id", "type": "integer", "description": "UN location code (LocID)." },
          { "name": "location", "type": "string", "description": "Location name as the UN writes it." },
          { "name": "loc_type", "type": "string", "description": "UN location type (as in population-indicators.csv)." },
          { "name": "is_aggregate", "type": "boolean", "description": "true for the world and every regional, development, income or special grouping; false for countries and areas." },
          { "name": "iso3", "type": "string", "description": "Country/area alpha-3 code as supplied by the UN, generally ISO 3166-1; Kosovo uses the non-ISO code XKX. Empty for World and aggregates." },
          { "name": "iso2", "type": "string", "description": "Country/area alpha-2 code as supplied by the UN, generally ISO 3166-1; Kosovo uses the non-ISO code XK. Namibia is NA. Empty for World and aggregates." },
          { "name": "sdmx_code", "type": "string", "description": "UN SDMX / M49 code as published (empty where the UN gives none)." },
          { "name": "parent_id", "type": "integer", "description": "loc_id of the location's parent in the UN hierarchy as published (for countries, their subregion; empty for the world). Some parents are UN groupings not included here." }
        ],
        "primaryKey": ["loc_id"]
      }
    }
  ],
  "views": [
    {
      "name": "world-population-chart",
      "title": "World population, 1950-2100: UN estimates to 2023, medium-variant projection from 2024",
      "resources": ["population-indicators"],
      "specType": "vega-lite",
      "spec": {
        "width": "container",
        "height": 340,
        "transform": [
          { "filter": "datum.loc_id == 900" },
          { "calculate": "datum.population / 1e9", "as": "billions" }
        ],
        "mark": { "type": "line", "strokeWidth": 2 },
        "encoding": {
          "x": { "field": "year", "type": "temporal", "timeUnit": "year", "axis": { "title": null } },
          "y": { "field": "billions", "type": "quantitative", "axis": { "title": "World population, billions" } },
          "color": { "field": "period", "type": "nominal", "title": null, "sort": ["estimate", "projection"] },
          "tooltip": [
            { "field": "year", "type": "temporal", "timeUnit": "year", "title": "Year" },
            { "field": "period", "type": "nominal" },
            { "field": "billions", "type": "quantitative", "format": ".3f", "title": "Billions" }
          ]
        }
      }
    }
  ]
}
