Overview
The Displacement Service provides APIs for global displacement and refugee data from the United Nations High Commissioner for Refugees (UNHCR). Track refugee flows, internally displaced persons (IDPs), asylum seekers, and population exposure estimates. Base Path:/api/displacement/v1
GetDisplacementSummary
Retrieves global refugee and IDP statistics from UNHCR. Endpoint:GET /api/displacement/v1/get-displacement-summary
Request Parameters
integer
Data year to retrieve (e.g., 2023). Uses latest available if zero or omitted.
integer
Maximum number of country entries to return.
integer
Maximum number of displacement flows to return.
Response
object
The displacement summary.
Example Request
Example Response
GetPopulationExposure
Returns country population data or estimates population within a radius. Endpoint:GET /api/displacement/v1/get-population-exposure
Request Parameters
string
Mode:
countries (default) or exposure.number
Latitude (required for exposure mode). Range: -90 to 90.
number
Longitude (required for exposure mode). Range: -180 to 180.
number
Radius in km (required for exposure mode, defaults to 50).
Response
boolean
True if the request succeeded.
array
Countries list (populated in countries mode).
object
Exposure result (populated in exposure mode).
Example Request (Countries Mode)
Example Response (Countries Mode)
Example Request (Exposure Mode)
Example Response (Exposure Mode)
Displacement Categories
Refugees
People who have fled their country due to persecution, war, or violence.
Asylum Seekers
People who have applied for international protection but whose claims are pending.
IDPs
Internally Displaced Persons who have fled their homes but remain within their country.
Stateless
People who are not recognized as citizens by any country.
Data Source
Displacement data is sourced from:- UNHCR: United Nations High Commissioner for Refugees
- Global Trends Report: Annual statistical yearbook
- Population Data: World Bank and national statistics
- Updated annually with mid-year estimates available