# Bank Statement PDF to Clean CSV (Xero/QuickBooks-ready) (`eastwoodapps/bank-statement-to-csv`) Actor

Convert bank statement PDFs into clean transaction CSVs ready for Xero, QuickBooks or any ledger import: date, description, amount, balance. Your statements, your data - nothing scraped, nothing stored.

- **URL**: https://apify.com/eastwoodapps/bank-statement-to-csv.md
- **Developed by:** [Eastwood Apps](https://apify.com/eastwoodapps) (community)
- **Categories:** Automation, Integrations
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $40.00 / 1,000 statement page converteds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Bank Statement PDF to Clean CSV (Xero/QuickBooks-ready)

Convert your bank statement PDFs into clean transaction CSVs ready to import: Xero layout
(dd/mm/yyyy), QuickBooks 3-column, or generic debit/credit/balance.

### Quick start

1. Paste direct links to your statement PDFs into **Statement PDF URLs**. Use direct-download
   links - a Google Drive or Dropbox *share page* link returns a web page, not the file.
2. Pick the date convention printed on your statement (AU/UK/NZ day-first, US month-first, or
   ISO year-first) and the CSV layout you want.
3. Run. Each statement produces its own CSV in the key-value store, plus one combined dataset
   of every transaction, plus a per-statement summary (`OUTPUT`) with a reconciliation report.

#### Example output row

```json
{
  "date": "2026-03-02",
  "description": "EFTPOS WOOLWORTHS SHEARWATER",
  "amount": -142.35,
  "balance": 4857.65,
  "sourceUrl": "https://.../statement-mar.pdf"
}
```

### What it does

- Extracts the text layer from statement PDFs (no OCR needed for bank-generated PDFs)
- Detects transaction lines across common layouts (date / description / amount / balance)
- Gets debits and credits RIGHT: every amount's sign is verified against the statement's own
  running balance, row by row - an unmarked deposit is never flipped into an expense by a
  page full of debits
- Skips opening/closing/brought-forward balance lines instead of importing them as phantom
  transactions
- Reports its own working: each statement's summary counts how many rows reconciled against
  the running balance, and anything unverifiable is flagged `review`, never shipped as `ok`
- Multi-line and dateless continuation lines handled via last-seen-date carry
- Outputs one CSV per statement + a combined dataset of all transactions

### What it does NOT do

- No bank logins, no scraping, no storage beyond the run. You supply your own PDFs, they are
  processed inside YOUR Apify account, and the developer never sees or stores them.
- Scanned (image) statements are OCR'd automatically - and ALWAYS flagged `review` with a
  confidence score, because OCR'd figures should be verified against the original before
  they go anywhere near your books. A scan too poor to read is flagged `needs-ocr`, not guessed.
- Unrecognised layouts are flagged `review` with an invitation to send the bank name - each
  added layout makes the product better for everyone.
- Extracted figures are not financial, tax or accounting advice - verify the reconciliation
  summary before importing into your books.

### Pricing

Pay-per-event: a few cents per statement page actually converted. Statements that fail or
need OCR are not charged as converted. No subscription.

### Terms of use

Process only statements you own or are authorised to process. Not affiliated with or endorsed
by Xero, Intuit QuickBooks, or any bank or accounting vendor named for compatibility.

# Actor input Schema

## `statementUrls` (type: `array`):

Direct links to your bank statement PDFs. Use your own statements only.

## `dateFormat` (type: `string`):

How dates are printed on your statement. Australian, UK and NZ statements are day-first; US statements are month-first. Getting this wrong swaps days and months, so check a date past the 12th of the month if you are unsure.

## `outputFormat` (type: `string`):

The column layout of the CSV you get back. Choose the one your accounting software expects for a bank statement import.

## Actor input object example

```json
{
  "statementUrls": [
    "https://api.apify.com/v2/key-value-stores/3Ju0h6fgJVG2q6TGv/records/sample-bank-statement.pdf"
  ],
  "dateFormat": "DMY",
  "outputFormat": "XERO"
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "statementUrls": [
        "https://api.apify.com/v2/key-value-stores/3Ju0h6fgJVG2q6TGv/records/sample-bank-statement.pdf"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("eastwoodapps/bank-statement-to-csv").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "statementUrls": ["https://api.apify.com/v2/key-value-stores/3Ju0h6fgJVG2q6TGv/records/sample-bank-statement.pdf"] }

# Run the Actor and wait for it to finish
run = client.actor("eastwoodapps/bank-statement-to-csv").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "statementUrls": [
    "https://api.apify.com/v2/key-value-stores/3Ju0h6fgJVG2q6TGv/records/sample-bank-statement.pdf"
  ]
}' |
apify call eastwoodapps/bank-statement-to-csv --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=eastwoodapps/bank-statement-to-csv",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/tWh9bLBc2Wa4ZPtll/builds/8R2OE8uIzraEaoBIL/openapi.json
