Guides
Economy
Use indicators and data endpoints to work with GDP, inflation, unemployment, and other macro signals.
Economy In Africa API
Economic data is exposed through the shared indicator and data endpoints.
Use:
GET /v1/indicators?category=economyGET /v1/data?category=economyGET /v1/countries/{country_code}/signalsGET /v1/indicators/{metric_key}/rankings
Useful Metrics
gdp_current_usdgdp_per_capita_usdinflation_cpi_pctinflation_cpi_latest_yoy_pctpolicy_rate_pcttreasury_bill_91d_rate_pctovernight_interbank_rate_pctofficial_exchange_rate_latest_lcu_per_usdpetrol_price_local_per_literdiesel_price_local_per_literkerosene_price_local_per_litermaize_retail_price_local_per_kgmaize_wholesale_price_local_per_kgforeign_reserves_import_cover_latest_monthsunemployment_pctunemployment_rate_latest_pctyouth_unemployment_pctmerchandise_exports_latest_usd_mnmerchandise_imports_latest_usd_mntrade_balance_usdcurrent_account_balance_pct_gdp
Use the *_latest_* metrics when you want fresher monthly operational signals rather than the historical annual backbone.
Where a country-specific central-bank source exists, Africa API can expose that current signal in the same product surface without changing the endpoint family.
If you also want benchmark commodity context for current macro conditions, use the commodity_benchmarks block returned by /v1/countries/{country_code}/signals.
Where official country sources publish current local prices, /signals can include those price points as location-tagged observations. Kenya fuel prices currently appear that way with location_name set to Nairobi, South Africa fuel prices now use the official DMRE Gauteng reference zone and carry fuel-grade and scope details in context, and Kenya maize prices use the World Bank Kenya market feed with location_name set to Market Average.
Example Query
curl "https://api.africa-api.com/v1/data?country_codes=ng,ke,za&metric_key=gdp_current_usd&year=2024" \
-H "Authorization: Bearer $AFRICA_API_KEY"curl "https://api.africa-api.com/v1/countries/ke/signals" \
-H "Authorization: Bearer $AFRICA_API_KEY"