# How a Bank API Personal Finance App Gets Your Data

> How a bank API personal finance app receives your transactions, why descriptions look messy, and how token access differs from screen scraping.

- Canonical: https://www.moneyos.cc/blog/bank-api-personal-finance-app
- Author: MoneyOS (https://www.moneyos.cc/about)
- Category: Bank accounts and statements (https://www.moneyos.cc/blog/category/bank-accounts)
- Published: 2026-07-09T11:32:44.000Z
- Updated: 2026-07-09T11:32:44.000Z

A bank API personal finance app gets your data by asking the bank's application programming interface for it, using a token you approved, and receiving each transaction as a structured record. The record holds the amount, dates, a raw description and status fields. The app then cleans and categorizes those records before you ever see them.

This post shows what a bank API sends back, using an annotated sample record next to the same purchase as a CSV row. It then covers token access versus screen scraping, why descriptions arrive messy, why the app cannot fetch new data on demand, and what happens to access when an account closes.

## What a Bank API Returns to a Finance App

A bank API returns one structured record per transaction, with named fields for the amount, the currency, the dates, the description and the status. A CSV export of the same purchase carries fewer fields in a flat row. Both describe the same money, and the API version simply says more about it.

An API, short for application programming interface, is a set of agreed requests one program can send another and the format of the answers. When a bank transaction API app asks for your recent activity, the bank replies in a machine-readable format, often JSON, a plain-text layout of named fields.

### Sample record from a bank API, annotated

The record below is a made-up example for a $6.75 coffee purchase. Field names vary between banks and providers, so treat these as typical rather than standard.

```json
{
  "transaction_id": "txn_8f2c41a9",
  "account_id": "acc_checking_01",
  "amount": -6.75,
  "currency": "USD",
  "authorized_date": "2026-03-12",
  "posted_date": "2026-03-13",
  "description": "SQ *BLUE HERON COFFE 0312 SEATTLE WA",
  "merchant_name": "Blue Heron Coffee",
  "category_code": "5814",
  "status": "posted",
  "pending_transaction_id": "txn_77ab02e1"
}
```

The same purchase in a CSV downloaded from the bank's website:

```
Date,Description,Amount
03/13/2026,SQ *BLUE HERON COFFE 0312 SEATTLE WA,-6.75
```

What each part of the API record tells the app, and whether the CSV has it:

| API field | What it means | In the CSV row? |
| --- | --- | --- |
| transaction_id | A unique code, so the app never counts this purchase twice | No |
| account_id | Which of your accounts it came from | No, the file itself is the account |
| amount | The value, with a minus sign for money leaving the account | Yes |
| currency | The currency of the amount | No, assumed |
| authorized_date | When you made the purchase | No |
| posted_date | When the bank settled it | Yes, as "Date" |
| description | The raw text the bank received from the card network | Yes |
| merchant_name | A cleaned-up name, if the bank or provider supplies one | No |
| category_code | A merchant category code from the card network | No |
| status | Pending or posted | No, most exports show posted lines only |
| pending_transaction_id | Links this posted line to the pending one it replaced | No |

The unique ID and the pending link are the fields that matter most. They let the app merge a pending line with its posted version and skip a record it already has. A CSV import has to guess at both, by matching dates, amounts and descriptions. The post on [uploading a bank statement for analysis](/blog/upload-bank-statement-for-analysis) covers the checks to make on a file before you import it.

## Token-Based Bank API Access Versus Screen Scraping

With token-based bank API access, the app never holds your bank password. You sign in on the bank's own page, approve access, and the bank gives the app a token that works only for what you approved. With screen scraping, you hand your username and password to the app or its provider, which signs in as you.

A token is a long random string the bank issues to the app. Each request the app makes carries it, and the bank checks it before answering. Because the bank issued it, the bank can limit it to certain accounts or data types, set an expiry date, and cancel it without touching your password.

Screen scraping works differently. Software logs in to your online banking with your credentials and reads the pages, copying out the transactions. The US Consumer Financial Protection Bureau, in its [announcement of the Personal Financial Data Rights Rule](https://www.consumerfinance.gov/about-us/newsroom/cfpb-finalizes-personal-financial-data-rights-rule-to-boost-competition-protect-privacy-and-give-families-more-choice-in-financial-services/), described this as consumers giving their passwords to third parties who use them to access data indiscriminately through online banking portals.

How to tell which one an app uses:

- **Where you type your password.** If the sign-in page belongs to your bank, with the bank's address in the browser bar, it is likely token-based. If you type the password into the app's own form, the app or its provider is storing it.
- **What happens when you change your password.** A scraped connection breaks immediately. A token-based one usually keeps working.
- **Whether your bank lists the app.** Token-based connections often appear in a section of your bank's website listing third parties with access.

Many apps do not build these connections themselves. They use a data provider, sometimes called an aggregator or a financial data integration platform, that sits between the bank and the app. The post on [what a bank account aggregator does with your data](/blog/bank-account-aggregator) explains that middle layer. What you approve on the consent screen, and how to withdraw it, is covered in the post on [what an open banking finance app can see](/blog/open-banking-finance-app).

## Why Do Bank API Transaction Descriptions Look Messy?

Bank API transaction descriptions look messy because they carry the raw text the merchant's payment system sent through the card network, cut to a fixed length and mixed with codes. A coffee shop becomes "SQ *BLUE HERON COFFE 0312 SEATTLE WA" because each part of that string comes from a different system.

Breaking down the example description:

- **"SQ \*"** is a prefix from the payment processor the café uses, added before the merchant's name.
- **"BLUE HERON COFFE"** is the merchant name cut off at a character limit, which is why "Coffee" lost its last letter.
- **"0312"** is a date or a terminal reference, depending on the processor.
- **"SEATTLE WA"** is the location the merchant registered.

Other patterns you will see include a parent company's name instead of the brand, an app store's name instead of the app, and a phone number in place of a city. Online purchases often show a website address.

Turning that string into "Blue Heron Coffee, Dining" is the app's job. Some banks and providers send a cleaned merchant name alongside the raw one, as in the sample record. Otherwise the app matches the text against known patterns. Matching is never perfect, so a good app lets you correct a name or a category and remembers your fix.

MoneyOS reads descriptions in the same raw form from a CSV export. It categorizes each one, and when you correct a category, it remembers the correction. Answers show which lines they used, so you can see the raw description behind any total. The [MoneyOS homepage](/) shows examples.

## Rate Limits and Refresh Windows in Bank APIs

An app cannot fetch new data from a bank API whenever you open it. Banks and providers can limit how often each app may ask, and the bank's own data may only update at set times. A rate limit caps requests per period. A refresh window is when new data becomes available.

Rate limits protect the bank's systems. If thousands of apps each asked for every customer's transactions every few seconds, the load would be large, so a bank or provider can set a ceiling per app or per account. When an app hits it, further requests are refused until the period resets.

Refresh windows come from the bank's side. If a bank adds new transactions to its API in a batch overnight, asking at noon returns nothing new. In that case a refresh button in the app shows yesterday's data no matter how often you press it.

For you, the effects are these:

- A purchase made an hour ago may not appear until the next window.
- Pressing refresh may queue a request rather than run one.
- A pending line may appear before the posted one, then change.

How these limits shape the timing of a sync, and a checklist for finding a transaction that is late, is in the post on [financial account syncing](/blog/financial-account-syncing).

## Bank API History Compared With Statement Downloads

A bank API often shares a shorter history than the bank's statement downloads. The API may return a limited number of months on the first request, while the website's export page or archived statements can reach further back. Which one goes further depends on the bank, so check both before assuming either is complete.

A practical comparison for one account:

| | Bank API connection | Statement download |
| --- | --- | --- |
| How far back | Whatever the bank shares through the API | Whatever the export page or statement archive offers |
| Format | Structured records with IDs and status | CSV, OFX, QFX or PDF, depending on the bank |
| Pending lines | Often included | Often left out |
| Effort | Automatic once connected | A manual download per range |

If you need history the API does not reach, fill it from a file. Some banks only offer older months as PDF statements, and the post on [PDF bank statement analyzers versus CSV exports](/blog/pdf-bank-statement-analyzer) explains what you can get from a PDF and where it falls short.

When you combine API data with files, mind the boundary between them. A month covered by both will appear twice unless you trim one side. Searching across sources is easier once each account's history is in one place, and the post on [finding transactions across accounts](/blog/find-transactions-across-accounts) shows how.

## What Happens to Bank API Access After You Close an Account?

Bank API access for a closed account usually stops returning new data, but the permission itself may stay on record until it expires or you revoke it. The app may also keep the history it already copied. Closing the account does not, on its own, guarantee that either side cleans up.

What to do when you close an account that an app is connected to:

1. **Download a final file first.** Once the account closes, the bank's website may stop offering exports for it. Export the full history while you can.
2. **Remove the connection in the app.** This stops the app from trying to refresh and showing errors.
3. **Check your bank's list of connected apps.** If the bank still lists the permission, revoke it there.
4. **Decide what to do with the stored history.** Keep it in the app if you want the record, or delete it if you are done.

For card accounts, a credit card API integration follows the same pattern. A replaced card with a new number on the same account usually keeps working through the connection. A fully closed card account does not.

If you are leaving an app altogether, deleting your data matters more than removing the connection. Removing the connection stops new data. Deleting is what clears the history the app already holds.
