Get-population-search

From UNHCR
Revision as of 22:11, 26 February 2014 by HQ Admin (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Returns population data based on instance id, population level and name of population level.

Resource URL


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


Parameters


id

required

The ID of the desired instance

Example Values: syria

level

required

Level of the population requested: regional, country, region, settlement

Example Values: region

name

required

Name of population level item

Example Values: Bekaa


Example Request


GET http://data.unhcr.org/api/population/search.json?name=Bekaa&level=region&instance_id=syria
{
    "type": "region",
    "population": [
        {
            "module_name": [
                {
                    "EN": "Total Persons of Concern"
                },
                {
                    "FR": "Personnes du ressort du HCR"
                },
                {
                    "AR": "إجمالي الأشخاص المعنيين"
                }
            ],
            "value": "310439",
            "demography": {
                "04M": "0",
                "04F": "0",
                "511M": "0",
                "511F": "0",
                "1217M": "0",
                "1217F": "0",
                "1859M": "0",
                "1859F": "0",
                "60M": "0",
                "60F": "0"
            },
            "updated_at": "2014-02-10 00:00:00"
        }
    ],
    "latitude": "33.8333",
    "longitude": "36",
    "name": "Bekaa",
    "country": "Lebanon"
}