Get-documents-documents

From UNHCR
Jump to: navigation, search


Returns documents for all countries for a specified country or all countries.

Resource URL


http://data.unhcr.org/api/documents/documents.json


Parameters


country_code

optional

The ID of the desired country

Example Values: COG


Example Request


GET http://data.unhcr.org/api/documents/documents.json?country_code=COG
{
    "country_name": "Congo (Brazaville)",
    "documents": [
        {
            "name": "Central African Republic Emergency- Update 5",
            "document_url": "http://data.unhcr.org/car/download.php?id=7",
            "document_type": "application/pdf",
            "thumbnail_url": "http://data.unhcr.org/uploads/uploadscar/images/documents/dt_car_7.jpg",
            "publication_date": "2014-01-17 14:10:33",
            "languages": [
                "English"
            ],
            "sectors": [],
            "organisations": [
                "UNHCR"
            ]
        },
        {
            "name": "Central African Republic: Emergency Situation",
            "document_url": "http://data.unhcr.org/car/download.php?id=6",
            "document_type": "application/pdf",
            "thumbnail_url": "http://data.unhcr.org/uploads/uploadscar/images/documents/dt_car_6.jpg",
            "publication_date": "2014-01-17 14:05:40",
            "languages": [
                "English"
            ],
            "sectors": [],
            "organisations": [
                "UNHCR"
            ]
        }
    ]
}