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
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.
{
"url": "https://www.wellsfargo.com/assets/pdf/personal/help/tester.pdf"
}{
"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.
Reference
Operations
| Operation | Price |
|---|---|
| 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:
| Approach | What you take on |
|---|---|
| Write a PDF parser per bank | Maintain layout code for each bank and statement revision, plus your own balance checks. |
| Generic OCR or LLM extraction | Check every result against the printed balances yourself before you trust it. |
| Kanagu | Supported layouts come back reconciled, and everything else is flagged with needs_review instead of silently imported. |
Pricing
$0.12/page, billed only on success
- bankstatement.extract$0.12 / page
$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.
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
- E-invoicingGenerate, validate and parse XRechnung and ZUGFeRD invoices.
- France e-reportingDGFiP Flux 10 e-reporting XML for B2C sales, cross-border B2B and service receipts, checked against v3.2.
- OTA payoutsMatch Airbnb, Booking.com and Vrbo payouts to the deposits on your bank statement.
- Rent rollsReconcile a multifamily rent roll against its T12: occupancy, loss to lease, vacancy and rent collected.
- Pay applicationsCheck AIA G702 and G703 pay applications line by line, against the last certified one and approved change orders.
- VAT validationCheck EU and UK VAT numbers against VIES and HMRC, with audit evidence.
- Packaging EPRPackaging weights by US state EPR category and Germany LUCID reports, traced to each SKU.
- CPSC eFilingCheck CPC and GCC certificates against each CBP entry line and get the PGA fields to file.
- PFAS reportingDecide Minnesota and Maine PFAS-in-products reporting and get the PRISM rows, MDA statements and deadlines.
- Demurrage auditAudit FMC demurrage and detention invoices against 46 CFR 541, recalculate each day and draft the dispute.
- UK CARFHMRC cryptoasset reports as OECD CARF XML, checked against HMRC's file rules and TIN check digits.
- EU PPWREU packaging regulation checks for heavy metals, PFAS, recycled content and empty space, with a draft declaration.
- SEC fundamentalsPoint-in-time SEC XBRL financials with every restatement, for backtests without look-ahead.
- Business daysBusiness-day math and SLA deadlines with public holidays in 207 countries.
- CSV validationCheck uploaded CSV files against a column schema before you import them.
- Email parsingParse raw .eml messages into headers, bodies, attachments and thread IDs.
- Screenshot diffCapture two web pages and get the changed pixels and regions.