africaAPI

Guides

Climate

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

Climate In Africa API

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

Current climate coverage comes from the World Bank WDI slice.

  • 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.

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"

On this page