Spending trends
get_spending_trendsRetrieve spending per category for the last N months to see if spending is rising or compare months.
Instructions
Spending per category, month by month, over the last N months.
Use it for "is my grocery spending going up?" or to compare months. The result maps each category name to its spending month by month, oldest first, as a positive number in currency units. For a single month use get_category_balances or get_budget_vs_actual; for the months ahead, forecast_balance. One YNAB request for the list of months, then one per month; changes nothing.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| plan_id | Yes | YNAB plan id or 'last-used'. | |
| months_count | No | Number of past months to include, 1 to 24 (default 3). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||