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=climateGET /v1/data?category=climateGET /v1/sources/world_bank_wdi
Current Climate Metrics
co2e_emissions_per_capitaco2e_emissions_total_mtpm25_air_pollution_ug_per_m3forest_area_pct_landprotected_areas_pct_totalrenewable_electricity_output_pct_totalfreshwater_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"