africaAPI

Reference

Policies

Query African policy documents, laws, and country policy overviews as a dedicated policy domain.

Policies In Africa API

Africa API exposes policy documents and laws as a dedicated government-output domain.

Current source:

  • wikidata_policies

Use:

  • GET /v1/policies
  • GET /v1/policies/country/{country_code}
  • GET /v1/policies/{policy_wikidata_id}

What This Covers

The first policies slice is built around:

  • constitutions
  • laws and acts
  • regulations and decrees
  • national strategies and policy documents
  • country policy overviews
  • issuing-body metadata when available

This is intentionally separate from scalar indicator data and from election-event data.

Country Policy Overview Example

curl "https://api.africa-api.com/v1/policies/country/ke?top_limit=5" \
  -H "Authorization: Bearer $AFRICA_API_KEY"

Example response shape:

{
  "data": {
    "country": {
      "code": "ke",
      "name": "Kenya",
      "region": "East Africa"
    },
    "latest_policy": {
      "wikidata_id": "Q456",
      "country_code": "ke",
      "country_name": "Kenya",
      "title": "Kenya Climate Change Act",
      "document_type": "law",
      "policy_status": "active",
      "published_at": "2016-05-27",
      "source": "wikidata_policies"
    },
    "active_policy_count": 14,
    "recent_policies": []
  }
}

Policy List Example

curl "https://api.africa-api.com/v1/policies?country_code=ng&document_type=law&status=active&limit=20" \
  -H "Authorization: Bearer $AFRICA_API_KEY"

Policy Detail Example

curl "https://api.africa-api.com/v1/policies/Q456" \
  -H "Authorization: Bearer $AFRICA_API_KEY"

How It Fits The Government Domain

  • Government covers leaders, terms, and cabinets
  • Elections covers election events and result rows
  • Policies covers legal and policy documents produced by the state
  • country profiles now embed the latest policy inside the compact government block

On this page