africaAPI

Guides

Climate

Use indicators, data endpoints, and current signals to work with emissions, air quality, forests, protected areas, renewable electricity, water stress, and live climate context.

Climate In Africa API

Climate and environment data is exposed through the shared indicator and data endpoints.

Climate coverage now has two layers:

  • historical annual country indicators from World Bank WDI

  • current climate signals from NASA POWER

  • GET /v1/indicators?category=climate

  • GET /v1/data?category=climate

  • GET /v1/sources/world_bank_wdi

Current Climate Metrics

  • co2e_emissions_per_capita
  • co2e_emissions_total_mt
  • pm25_air_pollution_ug_per_m3
  • forest_area_pct_land
  • protected_areas_pct_total
  • renewable_electricity_output_pct_total
  • freshwater_withdrawals_pct_internal_resources

These are annual country-level climate and environment observations and fit the current observation model cleanly.

Current Climate Signals

  • temperature_2m_latest_c
  • relative_humidity_latest_pct
  • precipitation_7d_mm
  • precipitation_30d_mm

These are current daily or rolling signals intended for operational context in /v1/countries/{country_code}/signals.

Example Queries

curl "https://api.africa-api.com/v1/indicators?category=climate&has_data=true" \
  -H "Authorization: Bearer $AFRICA_API_KEY"
curl "https://api.africa-api.com/v1/data?country_codes=ke,ng,za&metric_key=pm25_air_pollution_ug_per_m3&year=2023" \
  -H "Authorization: Bearer $AFRICA_API_KEY"
curl "https://api.africa-api.com/v1/data?country_code=ga&metric_key=forest_area_pct_land&start_year=2018&end_year=2024" \
  -H "Authorization: Bearer $AFRICA_API_KEY"
Current Climate Signals
curl "https://api.africa-api.com/v1/countries/ke/signals" \
  -H "Authorization: Bearer $AFRICA_API_KEY"

On this page