# Bank Statement Parser (PDF to JSON/CSV/QBO/Xero) (`yavuzceliker/bank-statement-parser`) Actor

Convert digital, scanned (OCR), and password-protected bank statement PDFs into balance-verified JSON, CSV, QuickBooks (.qbo/.iif), OFX, Xero CSV, or Tally XML via Pay-Per-Event billing.

- **URL**: https://apify.com/yavuzceliker/bank-statement-parser.md
- **Developed by:** [Yavuz Çeliker](https://apify.com/yavuzceliker) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $70.00 / 1,000 bank statement page parseds

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/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Bank Statement Parser (PDF to JSON, CSV, QuickBooks QBO/IIF, OFX & Xero)

Extract structured, **balance-verified** transactions from digital, scanned (OCR), and password-protected bank statement PDFs from any bank in any country — ready for accounting imports, bookkeeping automation, and AI agent workflows.

### Key Capabilities

- **Mathematical Balance Reconciliation:** Every row is checked against opening/closing balances and printed debit/credit totals (`balanceChainRate`, `sumMatches`, `printedTotalsMatch`).
- **7 Accounting & Data Formats:** Output structured `json` or accounting-ready `csv`, `xero_csv`, `qbo` (QuickBooks Online Web Connect), `ofx` (Open Financial Exchange), `iif` (QuickBooks Desktop), and `tally_xml` (Tally Prime / ERP 9).
- **Scanned & Image PDFs (OCR):** Automatic multi-engine OCR fallback for scanned statements in Latin and international scripts.
- **Encrypted / Password-Protected PDFs:** Decrypts user-password protected statements in volatile memory without storing passwords.
- **Zero-Retention Option (`zeroRetention: true`):** Enabled by default — PDFs are parsed strictly in memory with no disk storage on the extraction server.

### Input Parameters

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `pdfUrl` | string | — | Public HTTPS URL of the bank statement PDF. |
| `pdfBase64` | string | — | Optional Base64-encoded PDF content if not providing `pdfUrl`. |
| `format` | string | `"json"` | Output format: `json`, `csv`, `xero_csv`, `qbo`, `ofx`, `iif`, or `tally_xml`. |
| `password` | string | `""` | Optional PDF open password (never logged or stored). |
| `zeroRetention` | boolean | `true` | Process in volatile memory only without retaining files on disk. |
| `apiKey` | string | — | Optional custom `pex_...` key from [bankstatementparser.net](https://bankstatementparser.net). Leave blank to use the Apify Pay-Per-Event service. |

### Example Output (`format: "json"`)

```json
{
  "bankKey": "auto_d93acd817ab14b95",
  "bankName": "Auto-detected",
  "pageCount": 1,
  "transactionCount": 15,
  "requestId": "852b2ab1-ac02-46d1-ad25-e4cc4d908c26",
  "zeroRetention": true,
  "confidence": {
    "level": "high",
    "score": 1,
    "balanceChainRate": 1,
    "verifiedRows": 15,
    "reconciliation": {
      "openingBalance": "5000.00",
      "closingBalance": "5529.87",
      "sumMatches": true
    }
  },
  "transactions": [
    {
      "date": "02.06.2026",
      "description": "ACME Payroll Deposit",
      "amount": "3200.00",
      "balance": "8200.00",
      "verified": true
    }
  ]
}
```

### Pricing

Pay only for what you parse via Apify Pay-Per-Event billing (`statement-page-parsed`: **$0.07 per page**). Need high-volume pricing from **$0.01–$0.05/page**? See our direct monthly & annual plans on [bankstatementparser.net/en/pricing](https://bankstatementparser.net/en/pricing).

### Security & Support

- GDPR DPA & Security Overview: [bankstatementparser.net/en/security](https://bankstatementparser.net/en/security) · [bankstatementparser.net/en/dpa](https://bankstatementparser.net/en/dpa)
- Direct REST API & Enterprise Volume Plans: [bankstatementparser.net/en/pricing](https://bankstatementparser.net/en/pricing)
- Support: `info@bankstatementparser.net`

# Actor input Schema

## `pdfUrl` (type: `string`):

Public HTTPS URL of the bank statement PDF to parse.

## `pdfBase64` (type: `string`):

Optional Base64-encoded PDF content if not providing a URL.

## `format` (type: `string`):

Export format for extracted transactions.

## `password` (type: `string`):

Optional open password for encrypted bank PDFs (never stored).

## `zeroRetention` (type: `boolean`):

Process strictly in memory on the parsing server without disk writes.

## `apiKey` (type: `string`):

Optional custom pex\_ API key (uses actor service key if omitted).

## Actor input object example

```json
{
  "format": "json",
  "zeroRetention": true
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset items containing parsed bank statement JSON or exported accounting format payload.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("yavuzceliker/bank-statement-parser").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 = {}

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

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

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

```

## CLI example

```bash
echo '{}' |
apify call yavuzceliker/bank-statement-parser --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,yavuzceliker/bank-statement-parser"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/Zx6DXBUQbHNoV8g8o/builds/vaPCNavnQ7bGAXuVg/openapi.json
