Skip to content

Bank statement PDFs to reconciled JSON

Send a text PDF statement from Chase, Wells Fargo or Barclays. Get every transaction with date, description, signed amount and page, and know whether the rows add up to the closing balance.

$0.12/page · 10 free calls a day, no signup · REST and MCP

curl https://api.kanagu.dev/v1/bankstatement/extract \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.wellsfargo.com/assets/pdf/personal/help/tester.pdf"}'
const res = await fetch("https://api.kanagu.dev/v1/bankstatement/extract", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.KANAGU_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "url": "https://www.wellsfargo.com/assets/pdf/personal/help/tester.pdf"
  }),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "bankstatement.extract",
    "arguments": {
      "url": "https://www.wellsfargo.com/assets/pdf/personal/help/tester.pdf"
    }
  }
}

Why

What it solves

Statements arrive as PDFs, and every bank lays them out differently. Generic extraction gives you rows, but not whether they are all there. Kanagu parses supported layouts and recomputes the closing balance from the rows, so you can import reconciled statements automatically and send the rest to a person.

Built for

  • Bookkeeping and accounting software that imports client statements
  • Finance and lending tools that need transactions from uploaded statements
  • AI agents that categorize spending or reconcile accounts
Transactions
Date, description, signed amount (debits negative), running balance where printed, and the page each row came from.
Reconciliation
Opening balance plus the sum of the rows is compared with the printed closing balance. You get the difference, not a guess.
needs_review
Set when the layout is not recognized, rows or pages are missing, totals disagree, or the balance cannot be checked. Route those to manual review.

Example

What goes in, what comes out

In: A statement PDF as Base64 or a public URL. Out: Account, period, opening and closing balances, transactions, reconciliation and warnings.

Request · POST /v1/bankstatement/extract
{
  "url": "https://www.wellsfargo.com/assets/pdf/personal/help/tester.pdf"
}
Response · 200
{
  "layout": "wells_fargo_advantage_checking",
  "account": {
    "last4": "2222"
  },
  "currency": "USD",
  "period": {
    "start": "2002-04-03",
    "end": "2002-05-03"
  },
  "balances": {
    "opening": "4721.33",
    "closing": "4830.79"
  },
  "pageCount": 2,
  "transactions": [
    {
      "date": "2002-04-29",
      "description": "Deposit",
      "amount": "31.20",
      "page": 1
    },
    {
      "date": "2002-04-08",
      "description": "Check #5254",
      "amount": "-21.33",
      "page": 2
    },
    "… 25 more"
  ],
  "reconciliation": {
    "status": "reconciled",
    "net": "109.46",
    "calculatedClosing": "4830.79",
    "difference": "0.00"
  },
  "needs_review": false,
  "warnings": []
}

Response from Wells Fargo's public sample statement, with the transaction list shortened.

Try it

Run it on the live API

The sample request is ready to run. No key needed for 10 calls a day.

bankstatement.extract

$0.12/page

No key needed · 10 free calls per IP per day

Response

Run the request to see the live response here.

Reference

Operations

OperationPrice
bankstatement.extract

Extract and reconcile transactions from text PDFs for Wells Fargo Advantage Checking, Chase checking and Barclays bank accounts.

$0.12/page
curl https://api.kanagu.dev/v1/bankstatement/extract \
  -H "Authorization: Bearer $KANAGU_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.wellsfargo.com/assets/pdf/personal/help/tester.pdf"}'
const res = await fetch("https://api.kanagu.dev/v1/bankstatement/extract", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.KANAGU_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "url": "https://www.wellsfargo.com/assets/pdf/personal/help/tester.pdf"
  }),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();
claude mcp add --transport http kanagu https://api.kanagu.dev/mcp \
  --header "Authorization: Bearer $KANAGU_KEY"
{
  "mcpServers": {
    "kanagu": {
      "url": "https://api.kanagu.dev/mcp",
      "headers": {
        "Authorization": "Bearer ${env:KANAGU_KEY}"
      }
    }
  }
}
{
  "jsonrpc": "2.0",
  "id": 1,
  "method": "tools/call",
  "params": {
    "name": "bankstatement.extract",
    "arguments": {
      "url": "https://www.wellsfargo.com/assets/pdf/personal/help/tester.pdf"
    }
  }
}

Every field, error and schema is in the bankstatement.extract reference.

Coverage

Limits and coverage

Banks
Chase checking, Wells Fargo Advantage Checking, Barclays bank accounts
Files
Text PDFs up to 5 MiB and 60 pages, as Base64 or a public URL
Not supported
Scanned, image-only PDFs return unsupported_scanned_pdf. Other layouts return an unsupported_layout warning with needs_review.
Price
$0.12 per page of a completed extraction
Data
Inputs are processed in memory. For keyed calls the JSON result is kept for 30 days so a retry with the same Idempotency-Key returns it, then deleted. Trial calls store only a daily counter.

Compare

Compared with the usual approaches

Ways teams usually get transactions out of statements:

ApproachWhat you take on
Write a PDF parser per bankMaintain layout code for each bank and statement revision, plus your own balance checks.
Generic OCR or LLM extractionCheck every result against the printed balances yourself before you trust it.
KanaguSupported layouts come back reconciled, and everything else is flagged with needs_review instead of silently imported.

Pricing

$0.12/page, billed only on success

$1 of usage free every month after sign-in. Then pay as you go with no monthly fee, or the $9/month Bundle with $9 of usage included, shared across every Kanagu product. Compare plans

Sign in, create a key and use $1 of calls free each month, no card needed. Subscribe from your dashboard when you need more. Polar is the merchant of record and handles payment, tax and invoices.

10 free calls a day
Start without a key
Try every call above for free. When it works, sign in for a key with $1 of usage free every month.

FAQ

Bank statements questions

What if my bank is not supported?
The call returns an unsupported_layout warning and needs_review: true, so you can route the file to another process. Tell us which bank you need at hello@kanagu.dev.
Are amounts signed?
Yes. Credits are positive and debits are negative, as decimal strings, so no precision is lost.
Can I send scanned statements?
Not yet. Image-only PDFs return unsupported_scanned_pdf.
How is it priced?
$0.12 for each page of a completed extraction. A 3-page statement costs $0.36.

More APIs with the same key