africaAPI

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=demographics
  • GET /v1/data?category=demographics
  • GET /v1/countries/{country_code}/profile

Useful Metrics

  • population_total
  • population_growth_pct
  • urban_population_pct
  • life_expectancy_years
  • fertility_rate_births_per_woman
  • median_age_years
  • population_density_per_km2
  • child_dependency_ratio
  • old_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"

On this page