Api Ninjas Inflation
api_ninjas_inflationAPI Ninjas inflation: latest monthly and yearly inflation rates by country. 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 | Optional — your own API Ninjas key for higher limits; omit to use the shared Pipeworx key. | |
| country | No | Country name, e.g. 'United States', 'Germany' |