Guides
Humanitarian
Use UNHCR displacement signals in country snapshots and latest-value queries for refugee, asylum seeker, IDP, and stateless-population context.
Current Humanitarian Context
Africa API exposes UNHCR displacement totals through:
GET /v1/countries/{country_code}/signalsGET /v1/data?metric_key=...&latest=true
This gives you official country-level humanitarian context without leaving the core API surface.
Available Metrics
refugees_hosted_totalasylum_seekers_hosted_totalidps_totalstateless_total
These figures come from the UNHCR Refugee Statistics API population dataset and are keyed to the country of asylum or reporting country.
Example
curl "https://api.africa-api.com/v1/countries/ug/signals" \
-H "Authorization: Bearer $AFRICA_API_KEY"{
"metric_key": "refugees_hosted_total",
"metric_name": "Refugees Hosted",
"category": "humanitarian",
"frequency": "annual",
"year": 2025,
"value": 1789456,
"unit": "persons",
"source": "unhcr_displacement_signals",
"value_status": "reported",
"freshness": "recent",
"retrieved_at": "2026-03-13T18:00:00Z"
}Notes
- These are official annual totals, so they usually show up as
recentrather thancurrentin signals. - Countries with no published UNHCR country row simply omit these metrics.
- Use
/v1/dataif you want to pin a specific metric key or compare countries directly.
Disasters
Use GDACS disaster alerts in country signals to surface current flood, cyclone, wildfire, earthquake, and volcanic-risk context.
Transport
Use indicators, data endpoints, and current signals for transport, roads, rail, airport traffic, port operations, shipping connectivity, and digital infrastructure.