Spending By Category
ynab_spending_by_categoryGet total spending per category over a chosen date range, ranked from highest to lowest. Split transactions are counted and transfers between own accounts are excluded.
Instructions
Totals spending per category over a date range, biggest spend first. Splits are counted through their subtransactions, and transfers between your own accounts are excluded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Only return the top N categories by spend | |
| planId | No | The plan ID (optional, defaults to YNAB_PLAN_ID; budgetId is a deprecated alias) | |
| budgetId | No | Deprecated alias of planId (still accepted) | |
| sinceDate | No | Start of the range, inclusive (ISO format: 2024-01-01). Defaults to 30 days ago. | |
| untilDate | No | End of the range, inclusive (ISO format: 2024-01-31). Defaults to no end date. |