Get-stats-time-series

From UNHCR
Jump to: navigation, search


Returns statistics as a yearly time series.

Resource URL


http://data.unhcr.org/api/stats/time_series.json


Parameters


year

required

The year of the desired data

Example Values: 2013

country_of_residence

optional

Three letter acronym of country of residence

Example Values: AFG

country_of_origin

optional

Three letter acronym of country of origin

Example Values: IRQ

population_type_code

optional

Two letter acronym of a population type code

Example Values: RF


Example Request


GET http://data.unhcr.org/api/stats/time_series.json?year=2013&country_of_origin=AFG&country_of_residence=IRQ&population_type_code=RF
[
    {
        "year": "2013",
        "country_of_residence": "IRQ",
        "country_of_residence_en": "Iraq",
        "country_of_origin": "AFG",
        "country_of_origin_en": "Afghanistan",
        "population_type_code": "RF",
        "population_type_en": "Refugees",
        "value": "5",
        "redacted_flag": null
    }
]