africaAPI

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=energy
  • GET /v1/data?category=energy
  • GET /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_pct
  • electric_power_consumption_kwh_per_capita
  • electric_power_transmission_losses_pct
  • renewable_energy_consumption_pct
  • energy_use_kg_oil_eq_per_capita
  • electricity_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"

On this page