Aller au contenu

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.

Nature lecture seule
Confirmation non
Annulation non
Idempotent oui
Requêtes YNAB 4 pour l’exemple ci-dessous, cache vide
Nom Type Obligatoire Défaut Description
plan_id string oui — YNAB plan id or ‘last-used’.
months_count integer non 3 Number of past months to include, 1 to 24 (default 3).

object

Arguments :

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

Réponse sur le budget de démonstration :

{
"Loyer": [
{
"month": "2026-07-01",
"amount": 950.0
},
{
"month": "2026-08-01",
"amount": 950.0
},
{
"month": "2026-09-01",
"amount": 950.0
}
],
"Électricité": [
{
"month": "2026-07-01",
"amount": 64.2
},
{
"month": "2026-08-01",
"amount": 64.2
},
{
"month": "2026-09-01",
"amount": 64.2
}
],
"Box internet": [
{
"month": "2026-07-01",
"amount": 29.99
},
{
"month": "2026-08-01",
"amount": 29.99
},
{
"month": "2026-09-01",
"amount": 29.99
}
],
"Téléphone": [
{
"month": "2026-07-01",
"amount": 19.99
},
{
"month": "2026-08-01",
"amount": 19.99
},
{
"month": "2026-09-01",
"amount": 19.99
}
],
"Courses": [
{
"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
}
],
"Transports": [
{
"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
}
],
"Abonnements": [
{
"month": "2026-07-01",
"amount": 13.49
},
{
"month": "2026-08-01",
"amount": 13.49
},
{
"month": "2026-09-01",
"amount": 0.0
}
],
"Vacances": [
{
"month": "2026-07-01",
"amount": 0.0
},
{
"month": "2026-08-01",
"amount": 0.0
},
{
"month": "2026-09-01",
"amount": 0.0
}
]
}

Cet outil ne lève pas d’erreur propre ; les erreurs de YNAB reviennent sous la forme Error calling tool '<tool>': YNAB <status>: <detail>.

Projet non officiel. « 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. » Nous ne sommes ni affiliés, ni associés, ni liés officiellement de quelque manière que ce soit à YNAB ou à ses filiales et sociétés affiliées. Le site officiel de YNAB se trouve à l’adresse https://www.ynab.com. Les noms YNAB et You Need A Budget, ainsi que les noms, dénominations commerciales, marques, emblèmes et images qui s’y rattachent, sont des marques déposées de YNAB. avenir-mcp est fourni tel quel, sans garantie, et n’est pas un conseil financier. Mentions légales · Confidentialité