Get YNAB spending summary by category
ynab_get_spending_summarySummarize spending and income per category over a date range using YNAB transactions. Defaults to the last 30 days if since_date is not provided.
Instructions
Summarize spending (outflow) and income (inflow) per category over a date range, computed client-side from transactions (YNAB has no single endpoint for this). Defaults to the last 30 days if since_date is not given. Narrow the date range for large or long-lived budgets, both to keep the response small and to avoid burning YNAB's 200-requests/hour rate limit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| budget_id | Yes | YNAB budget id, or "last-used" for the most recently used budget | |
| since_date | No | Only include transactions on or after this date. Defaults to 30 days ago. Must not be after until_date. | |
| until_date | No | Only include transactions on or before this date. |