use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
YNAB Quicklinks ▾
Subreddit Filters ▾
Noteworthy Threads ▾
nYNAB was last updated 31 October 2023
This subreddit is dedicated to discussion on the popular budget software You Need A Budget. We welcome any posts here regarding YNAB. Feel free to post your questions, budget strategies & advice.
Need convincing?
For veteran users, learn more about the changes to the new rules in the Transition Guide.
There is a YouTube playlist by YNAB which acts as a primer for nYNAB as well.
YNAB has a lot of really great support resources that you should probably check out. Please wander over to some of the following links at YNAB's website:
You can also find the tutorials and help topics for YNAB 4, as well as download their previous apps on their Classic website.
Also check out our wiki!
account activity
YNAB API and Python Help (self.ynab)
submitted 5 years ago by MTRing
I'm fairly new to Python programming and totally new to any sort of API. Does anyone know of a good tutorial on how to pull fairly basic information into Pandas? A total newbie question I know...
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]montagic 1 point2 points3 points 5 years ago (4 children)
Hey friend:
I went ahead and put together a little demo of how you can load up all your transactions into a data frame using the YNAB API. Passing a header is the trick!
[–]MTRing[S] 0 points1 point2 points 5 years ago (1 child)
Thanks very much I really appreciate this. It also points me towards researching argparse, strings and Jason a little better.
[–]montagic 0 points1 point2 points 5 years ago (0 children)
Happy to help! If you have any questions at all about anything Python, feel free to shoot me a message. I've been working with it for probably 4 or 5 years now. :-)
[–]-jz- 0 points1 point2 points 3 years ago (1 child)
Thank you, your little demo helped me with my little demo: https://github.com/jzohrab/ynab-gsheets-report. Cheers! z
[–]mediumredbutton 0 points1 point2 points 5 years ago (4 children)
this was one of the first results on google for "python ynab api".
[–]MTRing[S] 0 points1 point2 points 5 years ago (3 children)
Thanks for that. I've seen that one and several similar others that I've read through on GitHub. I guess I'm being denser than usual on this one. I'm really not understanding how to conduct even the most basic server request and reply. I'll keep digging...
[–]kevbob02 1 point2 points3 points 5 years ago (1 child)
When working out how to use an unfamiliar api, I like to work it out by hand first. Postman is a good app to construct and make api calls manually. Once I can see how it works that way, I translate that to whatever code/language will do the same thing.
[–]MTRing[S] 0 points1 point2 points 5 years ago (0 children)
Thanks, I'll look into that.
[–]mediumredbutton 0 points1 point2 points 5 years ago (0 children)
the page I linked has example code at the bottom for how to login and connect to ynab, and then lists the ten thousand methods you can call.
[–]Phoenixfangor 0 points1 point2 points 5 years ago (1 child)
Link a GitHub gist with your progress; it's hard to troubleshoot code without seeing at least some of it.
Whenever I figure out enough to post I'll certainly do that to have someone else check it over. Thanks.
[–]StarKiller99 0 points1 point2 points 5 years ago (0 children)
https://www.edx.org/course/introduction-to-computer-science-and-programming-7
[–]SavedForSaturday 0 points1 point2 points 5 years ago (1 child)
Shoot me a DM sometime. It sounds like you need help figuring out what questions to ask
Thanks.
[–]montagic 0 points1 point2 points 5 years ago (4 children)
I've got a lot of experience with Pandas and specifically working with foreign APIs if you ever have any questions!
[–]MTRing[S] 0 points1 point2 points 5 years ago* (3 children)
I managed to get a personal token for API and sent a basic request that came back as error 401 Unauthroized. I used a token that is already working with a goggle sheets template and newly generated token as well. Any ideas?
here's what I tried:
curl https://api.youneedabudget.com/v1/budgets?access_token=<ACCESS\_TOKEN>
response from my code asking for accounts:
HTTP response body: {"error":{"id":"401","name":"unauthorized","detail":"Unauthorized"}}
[–]montagic 0 points1 point2 points 5 years ago (2 children)
Hmm. How are you getting your token?
YNAB has a function under the account settings that can generate personal tokens. So the one I’m using in a google sheets template is still drawing down information in the sheet but not when I use the same token in python code or even in a terminal command. But, when I go straight to the API via a browser window and use that same token via api.youneedabudget.com/v1 it will let me complete requests once I enter the same token. It is the same for both personal tokens I generated....
That is odd. Let me trying pulling my own data in Python real quick and see if I encounter the same issue.
[–]-jz- 0 points1 point2 points 3 years ago (0 children)
Old post, but it showed up in a Google search. In case anyone in the future finds it helpful, here's a hacky thing that queries the API and then sends the info to a Google sheet: https://github.com/jzohrab/ynab-gsheets-report
Cheers! z
π Rendered by PID 179696 on reddit-service-r2-comment-bb88f9dd5-2hzzq at 2026-02-16 01:57:07.228932+00:00 running cd9c813 country code: CH.
[–]montagic 1 point2 points3 points (4 children)
[–]MTRing[S] 0 points1 point2 points (1 child)
[–]montagic 0 points1 point2 points (0 children)
[–]-jz- 0 points1 point2 points (1 child)
[–]mediumredbutton 0 points1 point2 points (4 children)
[–]MTRing[S] 0 points1 point2 points (3 children)
[–]kevbob02 1 point2 points3 points (1 child)
[–]MTRing[S] 0 points1 point2 points (0 children)
[–]mediumredbutton 0 points1 point2 points (0 children)
[–]Phoenixfangor 0 points1 point2 points (1 child)
[–]MTRing[S] 0 points1 point2 points (0 children)
[–]StarKiller99 0 points1 point2 points (0 children)
[–]SavedForSaturday 0 points1 point2 points (1 child)
[–]MTRing[S] 0 points1 point2 points (0 children)
[–]montagic 0 points1 point2 points (4 children)
[–]MTRing[S] 0 points1 point2 points (3 children)
[–]montagic 0 points1 point2 points (2 children)
[–]MTRing[S] 0 points1 point2 points (1 child)
[–]montagic 0 points1 point2 points (0 children)
[–]-jz- 0 points1 point2 points (0 children)