Guides
Energy
Use indicators and data endpoints to work with electricity access, clean cooking, renewable energy, and longer-run power system efficiency.
Energy In Africa API
Energy data is exposed through the shared indicator and data endpoints.
Use:
GET /v1/indicators?category=energyGET /v1/data?category=energyGET /v1/countries/{country_code}/profile
For current operational grid conditions such as load shedding and generation availability, use the signals layer instead:
GET /v1/countries/{country_code}/signals
Useful Metrics
access_to_clean_fuels_pctelectric_power_consumption_kwh_per_capitaelectric_power_transmission_losses_pctrenewable_energy_consumption_pctenergy_use_kg_oil_eq_per_capitaelectricity_access_pct
Example Query
curl "https://api.africa-api.com/v1/data?country_codes=ke,ng,za&metric_key=renewable_energy_consumption_pct&year=2023" \
-H "Authorization: Bearer $AFRICA_API_KEY"