# YNAB API

> Budgeting & Planning.

YNAB is a finance API from youneedabudget.com. Requests are authenticated with OAuth. It is served over HTTPS and allows browser requests (CORS). Its OpenAPI description documents 31 endpoints.

## At a glance

- Category: [Finance](https://www.openparable.com/apis/category/finance)
- Provider: youneedabudget.com
- Authentication: OAuth
- HTTPS: Yes
- CORS: Yes
- Base URL: https://api.youneedabudget.com/v1
- Documentation: https://api.youneedabudget.com/
- OpenAPI description: https://api.apis.guru/v2/specs/youneedabudget.com/1.0.0/openapi.json
- Version: 1.0.0
- Specification updated: 2023-03-06

## Example request

```bash
curl -X GET "https://api.youneedabudget.com/v1/budgets" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN"
```

## Endpoints

- `GET /budgets` — List budgets
- `GET /budgets/{budget_id}` — Single budget
- `GET /budgets/{budget_id}/accounts` — Account list
- `POST /budgets/{budget_id}/accounts` — Create a new account
- `GET /budgets/{budget_id}/accounts/{account_id}` — Single account
- `GET /budgets/{budget_id}/accounts/{account_id}/transactions` — List account transactions
- `GET /budgets/{budget_id}/categories` — List categories
- `GET /budgets/{budget_id}/categories/{category_id}` — Single category
- `GET /budgets/{budget_id}/categories/{category_id}/transactions` — List category transactions
- `GET /budgets/{budget_id}/months` — List budget months
- `GET /budgets/{budget_id}/months/{month}` — Single budget month
- `GET /budgets/{budget_id}/months/{month}/categories/{category_id}` — Single category for a specific budget month
- `PATCH /budgets/{budget_id}/months/{month}/categories/{category_id}` — Update a category for a specific month
- `GET /budgets/{budget_id}/payee_locations` — List payee locations
- `GET /budgets/{budget_id}/payee_locations/{payee_location_id}` — Single payee location
- `GET /budgets/{budget_id}/payees` — List payees
- `GET /budgets/{budget_id}/payees/{payee_id}` — Single payee
- `GET /budgets/{budget_id}/payees/{payee_id}/payee_locations` — List locations for a payee
- `GET /budgets/{budget_id}/payees/{payee_id}/transactions` — List payee transactions
- `GET /budgets/{budget_id}/scheduled_transactions` — List scheduled transactions
- `GET /budgets/{budget_id}/scheduled_transactions/{scheduled_transaction_id}` — Single scheduled transaction
- `GET /budgets/{budget_id}/settings` — Budget Settings
- `GET /budgets/{budget_id}/transactions` — List transactions
- `POST /budgets/{budget_id}/transactions` — Create a single transaction or multiple transactions
- `PATCH /budgets/{budget_id}/transactions` — Update multiple transactions
- `POST /budgets/{budget_id}/transactions/bulk` — Bulk create transactions
- `POST /budgets/{budget_id}/transactions/import` — Import transactions
- `GET /budgets/{budget_id}/transactions/{transaction_id}` — Single transaction
- `PUT /budgets/{budget_id}/transactions/{transaction_id}` — Updates an existing transaction
- `DELETE /budgets/{budget_id}/transactions/{transaction_id}` — Deletes an existing transaction
- `GET /user` — User info

## Questions

### Does the YNAB API need an API key?

Yes. The YNAB API uses OAuth authentication; the documentation explains how to get credentials.

### Can I call the YNAB API from the browser?

Yes. The YNAB API sends CORS headers, so a web page can call it directly with fetch().

### Does the YNAB API support HTTPS?

Yes, the YNAB API is served over HTTPS.

### How many endpoints does the YNAB API have?

Its OpenAPI description lists 31 endpoints in version 1.0.0. All of them are shown on this page.

### What are alternatives to the YNAB API?

Other Finance APIs include Stripe, SEC EDGAR Data, Plaid, Fed Treasury, Razorpay IFSC.

## Similar finance APIs

- [Stripe](https://www.openparable.com/apis/stripe): Payment processing, subscriptions, and financial management
- [SEC EDGAR Data](https://www.openparable.com/apis/sec-edgar-data): API to access annual reports of public US companies
- [Plaid](https://www.openparable.com/apis/plaid): Connect with user's bank accounts and access transaction data
- [Fed Treasury](https://www.openparable.com/apis/fed-treasury): U.S. Department of the Treasury Data
- [Razorpay IFSC](https://www.openparable.com/apis/razorpay-ifsc): Indian Financial Systems Code (Bank Branch Codes)
- [Klarna](https://www.openparable.com/apis/klarna): Klarna payment and shopping service
- [Citi](https://www.openparable.com/apis/citi): All Citigroup account and statement data APIs
- [Zoho Books](https://www.openparable.com/apis/zoho-books): Online accounting software, built for your business
- [FRED](https://www.openparable.com/apis/fred): Economic data from the Federal Reserve Bank of St. Louis
- [Polygon](https://www.openparable.com/apis/polygon): Historical stock market data
- [MercadoPago](https://www.openparable.com/apis/mercadopago): Mercado Pago API reference - all the information you need to develop your integrations
- [Open Banking - Payments initiation service](https://www.openparable.com/apis/open-banking-payments-initiation-service): Open Banking - Payments initiation service

Listed from: public-apis (MIT), public-apis database (MIT), APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/ynab (OpenParable). Cite the canonical URL above.
