Api Ninjas Inflation
api_ninjas_inflationAPI Ninjas inflation: latest monthly and yearly inflation rates by country, from the API Ninjas /inflation endpoint, which is on the vendor's paid plans only. It answers when the caller passes an API Ninjas premium-plan key as _apiKey; Pipeworx's shared key is on the free plan and cannot reach it. For keyless inflation figures use ecb_hicp_inflation (EU/EEA HICP), ons_timeseries (UK CPI, series D7G7) or get_cpi (US CPI). Returns a list of { country, type, period, monthly_rate_pct, yearly_rate_pct }. Optionally filter by country name and index type (CPI or HICP). Example: inflation({ country: "United States", type: "CPI" }).
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"type": "CPI",
"country": "United States"
},
"name": "api_ninjas_inflation"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Inflation index type: 'CPI' or 'HICP' | |
| _apiKey | No | Your API Ninjas key on a PREMIUM plan. The /inflation endpoint is not on the free plan, so this tool needs it. Free inflation figures: ecb_hicp_inflation (EU/EEA), ons_timeseries (UK, code D7G7), get_cpi (US). | |
| country | No | Country name, e.g. 'United States', 'Germany' |