{
  "name": "international-migrant-stock",
  "title": "International migrant stock by country of destination and origin, 1990-2024 (UN DESA)",
  "description": "How many international migrants live in each country and where they come from: the United Nations' estimates of the international migrant stock at mid-year for 1990, 1995, 2000, 2005, 2010, 2015, 2020 and 2024, by sex, for 233 countries and areas, the world and UN regional, development and income groupings. Three tables: by country of destination (with total population and migrants as a share of it), by country of origin, and destination by origin. From International Migrant Stock 2024 (UN DESA, Population Division).",
  "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). International Migrant Stock 2024.",
      "path": "http://creativecommons.org/licenses/by/3.0/igo/"
    }
  ],
  "sources": [
    {
      "title": "United Nations Department of Economic and Social Affairs, Population Division (2024). International Migrant Stock 2024 (data page)",
      "path": "https://www.un.org/development/desa/pd/content/international-migrant-stock"
    },
    {
      "title": "International Migrant Stock 2024: total, by destination (xlsx)",
      "path": "https://www.un.org/development/desa/pd/sites/www.un.org.development.desa.pd/files/undesa_pd_2024_ims_stock_by_sex_and_destination.xlsx"
    },
    {
      "title": "International Migrant Stock 2024: total, by origin (xlsx)",
      "path": "https://www.un.org/development/desa/pd/sites/www.un.org.development.desa.pd/files/undesa_pd_2024_ims_stock_by_sex_and_origin.xlsx"
    },
    {
      "title": "International Migrant Stock 2024: by destination and origin (xlsx)",
      "path": "https://www.un.org/development/desa/pd/sites/www.un.org.development.desa.pd/files/undesa_pd_2024_ims_stock_by_sex_destination_and_origin.xlsx"
    },
    {
      "title": "International Migrant Stock 2024: Key facts and figures (advance unedited version, UN DESA/POP/2024/DC/NO. 13)",
      "path": "https://www.un.org/development/desa/pd/sites/www.un.org.development.desa.pd/files/undesa_pd_2025_intlmigstock_2024_key_facts_and_figures_advance-unedited.pdf"
    }
  ],
  "upkeep": { "mode": "frozen", "snapshot": "2026-11-29" },
  "resources": [
    {
      "path": "data/by-destination.csv",
      "name": "by-destination",
      "title": "International migrants living in each country or region (destination), by sex, with total population and migrants as % of population, 1990-2024",
      "mediatype": "text/csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          { "name": "location_code", "type": "integer", "description": "UN location code (M49 for countries and areas; 900 is the world; aggregates use the UN's own codes)." },
          { "name": "location", "type": "string", "description": "Country, area or aggregate name as the UN writes it (the source's trailing \"*\" removed; the six geographic regions written in normal case)." },
          { "name": "loc_type", "type": "string", "description": "Country/Area, World, Geographic region, Subregion, SDG region, Development group, Income group or Special group (landlocked developing countries and small island developing states). Aggregates overlap: sum only Country/Area rows." },
          { "name": "is_aggregate", "type": "boolean", "description": "true for the world and every UN grouping; false for countries and areas." },
          { "name": "year", "type": "year", "description": "Reference year; estimates are at mid-year (1 July)." },
          { "name": "migrants", "type": "integer", "description": "International migrant stock at mid-year, both sexes: people living in the country who were born abroad or, where the country has only citizenship data, who are foreign citizens (see estimate_basis). Refugees and asylum seekers may already be included in the underlying data; refugees_added identifies separate additions, not whether these groups are present. See un_note for coverage exceptions." },
          { "name": "migrants_male", "type": "integer", "description": "International migrant stock at mid-year, males." },
          { "name": "migrants_female", "type": "integer", "description": "International migrant stock at mid-year, females." },
          { "name": "population", "type": "integer", "description": "Total population at mid-year, persons (UN Table 2, published in thousands with three decimals, multiplied by 1,000 and rounded), from World Population Prospects 2024." },
          { "name": "migrants_pct_population", "type": "number", "description": "International migrant stock as a percentage of the total population, both sexes, as published by the UN (Table 3), rounded to three decimals. Source values slightly exceed 100 for Bonaire, Sint Eustatius and Saba in 2010, 2020 and 2024; the archived material does not explain the discrepancies." },
          { "name": "estimate_basis", "type": "string", "description": "What the country's estimates were derived from, from the UN's data type code: foreign-born, foreign citizens, foreign-born + foreign citizens (both kinds of data used), or imputed (no data on international migrants; the UN imputed the estimates). Empty for aggregates." },
          { "name": "refugees_added", "type": "boolean", "description": "true where the UN added refugees, people in refugee-like situations, asylum seekers or Venezuelans displaced abroad, as reported by UNHCR (or UNRWA for Palestine refugees), to the estimates (data type code R). False means the source does not flag a separate addition; it does not establish that refugees are excluded. The source flag applies to the country's series as a whole. Empty for aggregates." },
          { "name": "data_type_code", "type": "string", "description": "The UN's data type code as published: B foreign-born, C foreign citizens, R refugees added, I imputed. Empty for aggregates." },
          { "name": "un_note", "type": "string", "description": "The UN's country footnote on coverage, where there is one (for example which territories' natives count as migrants)." }
        ],
        "primaryKey": ["location_code", "year"]
      }
    },
    {
      "path": "data/by-origin.csv",
      "name": "by-origin",
      "title": "International migrants born in (or citizens of) each country or region (origin), by sex, 1990-2024",
      "mediatype": "text/csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          { "name": "location_code", "type": "integer", "description": "UN location code of the place of origin (as in by-destination.csv); 2003 is Other." },
          { "name": "location", "type": "string", "description": "Country, area or aggregate of origin. Other holds migrants the UN does not assign to a specific country or area of origin." },
          { "name": "loc_type", "type": "string", "description": "As in by-destination.csv, plus Other." },
          { "name": "is_aggregate", "type": "boolean", "description": "true for the world and UN groupings; false for countries, areas and Other." },
          { "name": "year", "type": "year", "description": "Reference year; estimates are at mid-year (1 July)." },
          { "name": "migrants", "type": "integer", "description": "International migrants from this origin living in other countries at mid-year, both sexes." },
          { "name": "migrants_male", "type": "integer", "description": "Males." },
          { "name": "migrants_female", "type": "integer", "description": "Females." }
        ],
        "primaryKey": ["location_code", "year"]
      }
    },
    {
      "path": "data/destination-origin.csv",
      "name": "destination-origin",
      "title": "International migrant stock by destination and origin, by sex, 1990-2024",
      "mediatype": "text/csv",
      "encoding": "utf-8",
      "schema": {
        "fields": [
          { "name": "year", "type": "year", "description": "Reference year; estimates are at mid-year (1 July)." },
          { "name": "destination_code", "type": "integer", "description": "UN location code of the country, area or aggregate where the migrants live." },
          { "name": "destination", "type": "string", "description": "Name of the destination." },
          { "name": "destination_is_aggregate", "type": "boolean", "description": "true if the destination is the world or a UN grouping." },
          { "name": "origin_code", "type": "integer", "description": "UN location code of the place of origin; 2003 is Other." },
          { "name": "origin", "type": "string", "description": "Name of the origin." },
          { "name": "origin_is_aggregate", "type": "boolean", "description": "true if the origin is the world or a UN grouping." },
          { "name": "migrants", "type": "integer", "description": "Migrants from the origin living in the destination at mid-year, both sexes. Empty in one source cell (Hungary from the United Arab Emirates, 1990)." },
          { "name": "migrants_male", "type": "integer", "description": "Males." },
          { "name": "migrants_female", "type": "integer", "description": "Females." }
        ],
        "primaryKey": ["year", "destination_code", "origin_code"]
      }
    }
  ]
}
