Guides
Demographics
Use indicators and data endpoints to work with population, age, fertility, and dependency metrics.
Demographics In Africa API
Query demographic indicators through the indicator, data, and country-profile endpoints. There is no 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"Central Banks
Query the latest available central-bank policy rates, benchmark rates, and monthly inflation observations for supported countries and currency unions.
Agriculture
Access crop production, yields, irrigation, land use, and livestock data across African countries with historical series and latest values.