I created this little shell pipeline to help me see the total amount given to or received from people and companies using my data in YNAB.
First set an access token in the environment. You can get an access token from https://app.youneedabudget.com/settings/developer.
Then you can run the pipeline, which should default to your last-used budget. This outputs a CSV where the first column is the payee name and the second column is the total amount paid to that payee (if negative) or received from that payee (if positive).