Get an economic indicator (with citation)
get_indicatorRetrieve official values for economic indicators like inflation, GDP, and unemployment for any country, complete with a full citation for reports.
Instructions
Get official values for a common economic indicator — inflation, GDP growth, GDP, GDP per capita, unemployment, population, government debt, fiscal balance, current account, trade, FDI, and more — for any country. Returns the observations plus a full citation (source, dataset, series id, canonical URL, license, retrieval date) ready to cite in a report. Use ISO3 codes or plain country names. Start here for most questions; use search_indicators if unsure of the indicator key.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | Yes | ISO3/ISO2 code or English name, e.g. 'USA', 'Barbados', 'euro area'. | |
| end_year | No | Last year to include (optional). | |
| indicator | Yes | Registry key, e.g. 'inflation_cpi', 'gdp_growth', 'unemployment_rate', 'govt_debt_gdp'. See search_indicators. | |
| transform | No | Optional transform computed by StatCite. | |
| start_year | No | First year to include (optional). | |
| latest_only | No | Return only the most recent non-null observation. | |
| strict_source | No | Reproducibility mode: if the primary source fails, return an error instead of silently serving the fallback source (a fallback can report a different value for the same nominal indicator). Default false; fallback responses always carry fallback_used=true and a disclosure note. |