/n26-to-ynab-import

Import N26 to YNAB using APIs

Primary LanguageJavaScriptMIT LicenseMIT

Caution

The project doesnt work anymore. N26 has Migrated to a GraphQL API and there is no solution yet. 2024-01-07

Contributors Forks Stargazers Issues MIT License LinkedIn

About The Project

I just wanted to be able to import N26 transactions into YNAB without having to download a CSV and then use the file import tool.

Getting Started

To get this up and running follow these steps.

Prerequisites

You need NPM

  • npm
    npm install npm@latest -g

You need Docker

If using powershell you will need to install the following using an admin powershell

  • dotenv
    Install-Module dotenv

Installation

  1. Get a Personal Access API Key from YNAB
  2. Clone the repo
    git clone https://github.com/Funi1234/n26-to-ynab-import
  3. Install NPM packages
    npm install
  4. copy .env.template
    cp .env.template .env
  5. Enter your Keys and details in .env
     BUDGET_NAME="abcd"
     ACCOUNT_NAME="xwz"
     YNAB_API_TOKEN="123_abc_def"
     DEVICE_TOKEN_UUID="12345678-1234-1234-1234567890ab"
     N26U="Username"
     N26P="Password!"

Usage

If setup correct you should just be able to run main.js

  node ./main.js

The code will run and then pause, at that point you should get a mobile "Authorize Login" notification from N26. Authorize it and this code will continue.

License

Distributed under the MIT License. See LICENSE.txt for more information.

Contact

Dylan Conway - @Funi1234

Project Link: https://github.com/Funi1234/n26-to-ynab-import

Acknowledgments

These resources helped.