Get country macro indicators (World Bank)
macro_get_country_indicatorRetrieve annual macroeconomic indicators for any country or region from World Bank data to compare market conditions across economies.
Instructions
Get annual macroeconomic indicators for any country (or aggregates like 'WLD' world, 'EUU' EU) from the World Bank, e.g. to compare the markets a company sells in. Indicators: gdp_usd, gdp_growth, gdp_per_capita, gdp_per_capita_ppp, inflation, unemployment, population, government_debt, current_account, exports, fdi_inflows, lending_rate, real_interest_rate, market_cap, exchange_rate; or any World Bank indicator ID (e.g. 'NY.GDP.MKTP.KD.ZG'). Data are annual and usually lag 6-18 months.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| end_year | No | Last year. Default: current year. | |
| countries | Yes | ISO codes or English names, e.g. ['MX','US','Spain']. | |
| indicator | Yes | One of gdp_usd, gdp_growth, gdp_per_capita, gdp_per_capita_ppp, inflation, unemployment, population, government_debt, current_account, exports, fdi_inflows, lending_rate, real_interest_rate, market_cap, exchange_rate, or a World Bank indicator ID. | |
| start_year | No | First year. Default: 10 years ago. | |
| response_format | No | Output format: 'markdown' (readable, default) or 'json' (structured). | markdown |