API endpoint that exports a budget CSV file?

I was wondering if anyone would find value in an API endpoint that mirrors the functionality of "My Budget -> Export Budget"? I was thinking it could be something like the following:

GET /budget/exports

My use-case is that I would like to run a cron job / scheduled task to automatically backup my budget to Dropbox on a weekly basis.

Something like the above would certainly save some time and give me some peace-of-mind, not that I don't trust the devs :)

Any thoughts?

Edit: Just noticed there is a separate Feature Requests link. Since this is already posted, is there any way to mimic this functionality using the existing API? Thanks!

3replies Oldest first
  • Oldest first
  • Newest first
  • Active threads
  • Popular
  • Hey Cadet Blue Clarinet ! There should be a way to mimic an export using the API. You could build your own CSV file using the GET /budgets/{budget_id}/categories and /budgets/{budget_id}/transactions endpoints.

    Let us know if you decide to try that and how that works!

    Like
  • This is a great idea. If there was an API like that you could load it automatically in your Google sheet. For example with the IMPORTDATA function. You'd need an endpoint like:

    https://export.ynab.com/{guid}/csv

    Where the guid is secret so the owner can choose who to share the link with.

    Like
  • You can use Web services to implement file-based data import and export.  To determine the logical endpoint for ImportPublicService, myaccountaccess see the File-Based Data  For this example, create a CSV file that includes the following header row and  Asset. crm/asset/import/. Budget. crm/mktBudget/import/. Campaign Members.

    Like
Like1 Follow
  • 1 Likes
  • yesterdayLast active
  • 3Replies
  • 282Views
  • 6 Following