Get IMF Inflation Rate
imf.macro.inflationGet inflation rate (average consumer prices, annual percent change) from the IMF World Economic Outlook (WEO) for one or more countries, including IMF forward projections. Filter by ISO 3166-1 alpha-3 country code(s) and/or a year range; omit filters to get all 190+ countries plus regional/income-group aggregates. Data: IMF DataMapper (www.imf.org), CC BY 4.0, no auth required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| country | No | ISO 3166-1 alpha-3 country code to filter (e.g. "USA", "DEU", "JPN", "CHN"). Omit to return all 190+ countries plus IMF regional/income-group aggregates. | |
| end_year | No | Latest year to include, including IMF WEO forward projections (e.g. 2029). Omit for full history. | |
| countries | No | List of ISO 3166-1 alpha-3 country codes to filter (e.g. ["USA","DEU","JPN"]), max 20. Use instead of "country" to fetch multiple countries in one call. | |
| start_year | No | Earliest year to include in the returned time series (e.g. 2015). Omit for full history. |
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. |