Africa API — Economic Indicator Data
africa.data.indicatorQuery a specific economic indicator time series for an African country. Supports 120+ metrics including GDP (gdp_usd), inflation rate (inflation_pct), GDP per capita (gdp_per_capita_usd), unemployment (unemployment_pct), trade balance (trade_balance_usd), foreign direct investment (fdi_inflows_usd), and more. Returns annual data sourced from World Bank, IMF, and UN. Omit start_year/end_year for latest value; supply both for a historical range (e.g. 2010–2024). Use africa.countries.signals to discover available metric_key values for a country.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of data points to return (1–100, default 20). | |
| end_year | No | End year for historical range (e.g. 2024). Required when start_year is provided. | |
| metric_key | Yes | Economic indicator key (e.g. "gdp_usd" for GDP in USD, "inflation_pct" for CPI inflation rate, "gdp_per_capita_usd" for GDP per capita, "unemployment_pct" for unemployment rate, "trade_balance_usd" for trade balance, "fdi_inflows_usd" for foreign direct investment). Use africa.countries.signals to discover available metric_key values for a country. | |
| start_year | No | Start year for historical range (e.g. 2015). Omit along with end_year to return the single latest observation. | |
| country_code | Yes | ISO 3166-1 alpha-2 country code (2-letter lowercase, e.g. "ng", "ke", "za", "eg", "gh"). |
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. |