Guides
Demographics
Use indicators and data endpoints to work with population, age, fertility, and dependency metrics.
Demographics In Africa API
Demographic data is served through the shared platform primitives, not a dedicated /v1/demographics route.
Use:
GET /v1/indicators?category=demographicsGET /v1/data?category=demographicsGET /v1/countries/{country_code}/profile
Useful Metrics
population_totalpopulation_growth_pcturban_population_pctlife_expectancy_yearsfertility_rate_births_per_womanmedian_age_yearspopulation_density_per_km2child_dependency_ratioold_age_dependency_ratio
Example Query
curl "https://api.africa-api.com/v1/data?country_code=ng&metric_keys=population_total,median_age_years&latest=true" \
-H "Authorization: Bearer $AFRICA_API_KEY"