Get-population-countries

From UNHCR
Jump to: navigation, search


Returns population data for all countries for a specified instance or all instances.

Resource URL


http://data.unhcr.org/api/population/countries.json


Parameters


instance_id

optional

The ID of the desired instance

Example Values: syria

country_code

optional

The ID of the desired country

Example Values: LEB


Example Request


GET http://data.unhcr.org/api/population/countries.json?instance_id=syria
[
    {
        "name": "North Africa",
        "population": [
            {
                "module_name": [
                    {
                        "EN": "Total Persons of Concern"
                    },
                    {
                        "FR": "Personnes du ressort du HCR"
                    },
                    {
                        "AR": "إجمالي الأشخاص المعنيين"
                    }
                ],
                "module_type": "Total Population & Demogrpahy",
                "value": "23367",
                "updated_at": "2014-05-12 09:48:12"
            },
            {
                "module_name": [
                    {
                        "EN": "Registered Syrian Refugees"
                    },
                    {
                        "FR": "Réfugiés syriens enregistrés"
                    },
                    {
                        "AR": "اللاجئون السوريون المسجلون"
                    }
                ],
                "module_type": "Total Population & Demogrpahy",
                "value": "23367",
                "households": "0",
                "demography": {
                    "04M": "0",
                    "04F": "0",
                    "511M": "0",
                    "511F": "0",
                    "1217M": "0",
                    "1217F": "0",
                    "1859M": "0",
                    "1859F": "0",
                    "60M": "0",
                    "60F": "0"
                },
                "updated_at": "2014-05-12 09:48:12"
            }
        ],
        "latitude": "28.1626",
        "longitude": "2.63167",
        "country_code": "DZA",
        "instance_id": "syria"
    },
    {
        "name": "Turkey",
        "population": [
            {
                "module_name": [
                    {
                        "EN": "Total Persons of Concern"
                    },
                    {
                        "FR": "Personnes du ressort du HCR"
                    },
                    {
                        "AR": "إجمالي الأشخاص المعنيين"
                    }
                ],
                "module_type": "Total Population & Demogrpahy",
                "url": "http://data.unhcr.org/syrianrefugees/country.php?id=224",
                "value": "747909",
                "updated_at": "2014-05-21 14:34:28"
            },
            {
                "module_name": [
                    {
                        "EN": "Registered Syrian Refugees"
                    },
                    {
                        "FR": "Réfugiés syriens enregistrés"
                    },
                    {
                        "AR": "اللاجئون السوريون المسجلون"
                    }
                ],
                "module_type": "Total Population & Demogrpahy",
                "url": "http://data.unhcr.org/syrianrefugees/country.php?id=224",
                "value": "747909",
                "households": "0",
                "demography": {
                    "04M": "25568",
                    "04F": "22850",
                    "511M": "28930",
                    "511F": "27441",
                    "1217M": "20371",
                    "1217F": "19781",
                    "1859M": "58359",
                    "1859F": "58753",
                    "60M": "4738",
                    "60F": "5055"
                },
                "updated_at": "2014-05-21 14:34:28"
            }
        ],
        "latitude": "39.0597",
        "longitude": "35.1792",
        "country_code": "TUR",
        "instance_id": "syria"
    },
    {
        "name": "Iraq",
        "population": [
            {
                "module_name": [
                    {
                        "EN": "Total Persons of Concern"
                    },
                    {
                        "FR": "Personnes du ressort du HCR"
                    },
                    {
                        "AR": "إجمالي الأشخاص المعنيين"
                    }
                ],
                "module_type": "Total Population & Demogrpahy",
                "url": "http://data.unhcr.org/syrianrefugees/country.php?id=103",
                "value": "223113",
                "updated_at": "2014-04-30 15:44:54"
            },
            {
                "module_name": [
                    {
                        "EN": "Registered Syrian Refugees"
                    },
                    {
                        "FR": "Réfugiés syriens enregistrés"
                    },
                    {
                        "AR": "اللاجئون السوريون المسجلون"
                    }
                ],
                "module_type": "Total Population & Demogrpahy",
                "url": "http://data.unhcr.org/syrianrefugees/country.php?id=103",
                "value": "207441",
                "households": "75548",
                "demography": {
                    "04M": "15080",
                    "04F": "14906",
                    "511M": "15822",
                    "511F": "15480",
                    "1217M": "11507",
                    "1217F": "9283",
                    "1859M": "61734",
                    "1859F": "44615",
                    "60M": "1944",
                    "60F": "2143"
                },
                "updated_at": "2014-04-30 15:44:54"
            },
            {
                "module_name": [
                    {
                        "EN": "Persons awaiting registration"
                    },
                    {
                        "FR": "Personne en attente d'enregistrement"
                    },
                    {
                        "AR": "الأشخاص قيد التسجيل"
                    }
                ],
                "module_type": "Total Population & Demogrpahy",
                "url": "http://data.unhcr.org/syrianrefugees/country.php?id=103",
                "value": "15672",
                "updated_at": "2014-04-30 14:31:55"
            }
        ],
        "latitude": "33.056",
        "longitude": "43.765",
        "country_code": "IRQ",
        "instance_id": "syria"
    },
    {
        "name": "Egypt",
        "population": [
            {
                "module_name": [
                    {
                        "EN": "Total Persons of Concern"
                    },
                    {
                        "FR": "Personnes du ressort du HCR"
                    },
                    {
                        "AR": "إجمالي الأشخاص المعنيين"
                    }
                ],
                "module_type": "Total Population & Demogrpahy",
                "url": "http://data.unhcr.org/syrianrefugees/country.php?id=8",
                "value": "137444",
                "updated_at": "2014-05-25 17:07:41"
            },
            {
                "module_name": [
                    {
                        "EN": "Registered Syrian Refugees"
                    },
                    {
                        "FR": "Réfugiés syriens enregistrés"
                    },
                    {
                        "AR": "اللاجئون السوريون المسجلون"
                    }
                ],
                "module_type": "Total Population & Demogrpahy",
                "url": "http://data.unhcr.org/syrianrefugees/country.php?id=8",
                "value": "137444",
                "households": "50758",
                "demography": {
                    "04M": "9358",
                    "04F": "8872",
                    "511M": "12901",
                    "511F": "12090",
                    "1217M": "8692",
                    "1217F": "7751",
                    "1859M": "36588",
                    "1859F": "35313",
                    "60M": "2916",
                    "60F": "2963"
                },
                "updated_at": "2014-05-25 17:07:41"
            }
        ],
        "latitude": "30.0155",
        "longitude": "31.1357",
        "country_code": "ARE",
        "instance_id": "syria"
    },
    {
        "name": "Lebanon",
        "population": [
            {
                "module_name": [
                    {
                        "EN": "Total Persons of Concern"
                    },
                    {
                        "FR": "Personnes du ressort du HCR"
                    },
                    {
                        "AR": "إجمالي الأشخاص المعنيين"
                    }
                ],
                "module_type": "Total Population & Demogrpahy",
                "url": "http://data.unhcr.org/syrianrefugees/country.php?id=122",
                "value": "1077704",
                "updated_at": "2014-05-21 00:00:00"
            },
            {
                "module_name": [
                    {
                        "EN": "Registered Syrian Refugees"
                    },
                    {
                        "FR": "Réfugiés syriens enregistrés"
                    },
                    {
                        "AR": "اللاجئون السوريون المسجلون"
                    }
                ],
                "module_type": "Total Population & Demogrpahy",
                "url": "http://data.unhcr.org/syrianrefugees/country.php?id=122",
                "value": "1022222",
                "households": "239845",
                "demography": {
                    "04M": "110879",
                    "04F": "105981",
                    "511M": "121962",
                    "511F": "115255",
                    "1217M": "71703",
                    "1217F": "69582",
                    "1859M": "229514",
                    "1859F": "278275",
                    "60M": "13335",
                    "60F": "17162"
                },
                "updated_at": "2014-05-21 00:00:00"
            },
            {
                "module_name": [
                    {
                        "EN": "Persons awaiting registration"
                    },
                    {
                        "FR": "Personne en attente d'enregistrement"
                    },
                    {
                        "AR": "الأشخاص قيد التسجيل"
                    }
                ],
                "module_type": "Total Population & Demogrpahy",
                "url": "http://data.unhcr.org/syrianrefugees/country.php?id=122",
                "value": "55482",
                "updated_at": "2014-05-21 00:00:00"
            }
        ],
        "latitude": "33.7904",
        "longitude": "35.9768",
        "country_code": "LEB",
        "instance_id": "syria"
    },
    {
        "name": "Jordan",
        "population": [
            {
                "module_name": [
                    {
                        "EN": "Total Persons of Concern"
                    },
                    {
                        "FR": "Personnes du ressort du HCR"
                    },
                    {
                        "AR": "إجمالي الأشخاص المعنيين"
                    }
                ],
                "module_type": "Total Population & Demogrpahy",
                "url": "http://data.unhcr.org/syrianrefugees/country.php?id=107",
                "value": "596062",
                "updated_at": "2014-05-20 00:00:00"
            },
            {
                "module_name": [
                    {
                        "EN": "Registered Syrian Refugees"
                    },
                    {
                        "FR": "Réfugiés syriens enregistrés"
                    },
                    {
                        "AR": "اللاجئون السوريون المسجلون"
                    }
                ],
                "module_type": "Total Population & Demogrpahy",
                "url": "http://data.unhcr.org/syrianrefugees/country.php?id=107",
                "value": "596062",
                "demography": {
                    "04M": "55627",
                    "04F": "52565",
                    "511M": "63563",
                    "511F": "60815",
                    "1217M": "42060",
                    "1217F": "39565",
                    "1859M": "121037",
                    "1859F": "140614",
                    "60M": "8555",
                    "60F": "11657"
                },
                "updated_at": "2014-05-20 00:00:00"
            }
        ],
        "latitude": "31.2539",
        "longitude": "36.7886",
        "country_code": "JOR",
        "instance_id": "syria"
    }
]