africaAPI

Guides

Agriculture

Use indicators and data endpoints to work with agricultural land, crop production, yields, irrigation, and livestock.

Agriculture In Africa API

Agriculture data is exposed through the shared indicator and data endpoints.

Use:

  • GET /v1/indicators?category=agriculture
  • GET /v1/data?category=agriculture
  • GET /v1/countries/{country_code}/profile
  • GET /v1/sources/faostat_agriculture

Useful Metrics

  • agricultural_land_1000ha
  • arable_land_1000ha
  • forest_land_1000ha
  • land_equipped_for_irrigation_1000ha
  • maize_production_tonnes
  • wheat_production_tonnes
  • rice_production_tonnes
  • maize_yield_kg_per_ha
  • wheat_yield_kg_per_ha
  • rice_yield_kg_per_ha
  • cattle_stock_head
  • chicken_stock_1000_head

Example Query

curl "https://api.africa-api.com/v1/data?country_codes=ng,et,za&metric_key=maize_production_tonnes&year=2024" \
  -H "Authorization: Bearer $AFRICA_API_KEY"

On this page