Africa API — African Elections
africa.politics.electionsRetrieve presidential, parliamentary, and local election dates across all 54 African countries; filter by country, status, or year range to support political risk analysis and investment due diligence.
Instructions
List presidential, parliamentary, and local government elections across all 54 African countries. Returns election scope (presidential/parliamentary/local), status (upcoming/completed/ongoing), dates, and country. Filter by country code, election status, or year range. Use status="upcoming" to find upcoming African elections relevant to political risk analysis or investment due diligence. Data sourced from Wikidata and official election commission records.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of elections to return (1–100, default 20). | |
| status | No | Filter by election status: "upcoming" (future elections), "completed" (past elections), or "ongoing" (elections currently in progress). | |
| end_year | No | Filter elections up to and including this year (e.g. 2025). | |
| start_year | No | Filter elections from this year onwards (e.g. 2020). | |
| country_code | No | ISO 3166-1 alpha-2 country code to filter elections to a single country (e.g. "ng", "ke", "za", "eg"). Omit to return elections for all 54 countries. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present only when the call failed. Includes error code, message, request_id, and any provider-specific extras. | |
| result | No | Tool response payload. Shape varies per tool — consult the tool description and inputSchema. May be an object, array, string, or number depending on the upstream provider response. |