Ga naar inhoud

get_spending_trends

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.

Soort alleen lezen
Bevestiging nee
Ongedaan maken nee
Idempotent ja
YNAB-verzoeken 4 voor het voorbeeld hieronder, lege cache
Naam Type Verplicht Standaard Beschrijving
plan_id string ja — YNAB plan id or ‘last-used’.
months_count integer nee 3 Number of past months to include, 1 to 24 (default 3).

object

Argumenten:

{
"plan_id": "demo-budget",
"months_count": 3
}

Antwoord op het demobudget:

{
"Huur": [
{
"month": "2026-07-01",
"amount": 950.0
},
{
"month": "2026-08-01",
"amount": 950.0
},
{
"month": "2026-09-01",
"amount": 950.0
}
],
"Stroom": [
{
"month": "2026-07-01",
"amount": 64.2
},
{
"month": "2026-08-01",
"amount": 64.2
},
{
"month": "2026-09-01",
"amount": 64.2
}
],
"Internet": [
{
"month": "2026-07-01",
"amount": 29.99
},
{
"month": "2026-08-01",
"amount": 29.99
},
{
"month": "2026-09-01",
"amount": 29.99
}
],
"Telefoon": [
{
"month": "2026-07-01",
"amount": 19.99
},
{
"month": "2026-08-01",
"amount": 19.99
},
{
"month": "2026-09-01",
"amount": 19.99
}
],
"Boodschappen": [
{
"month": "2026-07-01",
"amount": 172.89
},
{
"month": "2026-08-01",
"amount": 192.51
},
{
"month": "2026-09-01",
"amount": 0.0
}
],
"Restaurants": [
{
"month": "2026-07-01",
"amount": 61.5
},
{
"month": "2026-08-01",
"amount": 89.1
},
{
"month": "2026-09-01",
"amount": 142.5
}
],
"Vervoer": [
{
"month": "2026-07-01",
"amount": 45.0
},
{
"month": "2026-08-01",
"amount": 45.0
},
{
"month": "2026-09-01",
"amount": 0.0
}
],
"Tennis": [
{
"month": "2026-07-01",
"amount": 22.0
},
{
"month": "2026-08-01",
"amount": 22.0
},
{
"month": "2026-09-01",
"amount": 0.0
}
],
"Abonnementen": [
{
"month": "2026-07-01",
"amount": 13.49
},
{
"month": "2026-08-01",
"amount": 13.49
},
{
"month": "2026-09-01",
"amount": 0.0
}
],
"Vakantie": [
{
"month": "2026-07-01",
"amount": 0.0
},
{
"month": "2026-08-01",
"amount": 0.0
},
{
"month": "2026-09-01",
"amount": 0.0
}
]
}

Deze tool geeft zelf geen fouten; fouten van YNAB komen terug als Error calling tool '<tool>': YNAB <status>: <detail>.

Onofficieel project. “We are not affiliated, associated, or in any way officially connected with YNAB or any of its subsidiaries or affiliates. The official YNAB website can be found at https://www.ynab.com. The names YNAB and You Need A Budget, as well as related names, tradenames, marks, trademarks, emblems, and images are registered trademarks of YNAB.” We zijn op geen enkele manier verbonden, geassocieerd of officieel gelieerd aan YNAB of een van zijn dochterondernemingen of gelieerde bedrijven. De officiële website van YNAB vind je op https://www.ynab.com. De namen YNAB en You Need A Budget, evenals verwante namen, handelsnamen, merken, emblemen en afbeeldingen, zijn geregistreerde handelsmerken van YNAB. avenir-mcp wordt geleverd zoals het is, zonder garantie, en is geen financieel advies. Juridische informatie · Privacy