Developer API
Parse crypto CSVs and bank statement PDFs programmatically with the TaxFormatter API
The REST API reference, plus guides for the dashboard uploader.
Parse crypto CSVs and bank statement PDFs programmatically with the TaxFormatter API
The TaxFormatter API lets you parse crypto exchange CSVs and bank statement PDFs programmatically. Send a file, get structured transaction data back.
https://api.taxformatter.com/v1
All requests (except /v1/health and /v1/sources) require an API key via the X-API-Key header:
curl -X POST https://api.taxformatter.com/v1/parse \
-H "X-API-Key: tf_live_your_key_here" \
-H "Content-Type: application/json" \
-d '{ "file_content": "'$(base64 -i coinbase_2024.csv)'", "filename": "coinbase_2024.csv" }'
Get your API key at taxformatter.com/dashboard/developer. Every account gets a Free key (25 parses/month) on signup — no credit card required.
| Method | Endpoint | Auth | Description |
|---|---|---|---|
| POST | /v1/parse | Yes | Parse a crypto CSV or bank PDF |
| GET | /v1/sources | No | List supported exchanges and banks |
| GET | /v1/usage | Yes | Get usage stats for your key |
| GET | /v1/health | No | Health check |
GET /v1/sources — no API key required.
Every exchange and bank carries a status. verified means the parser is exercised against a sample file in our test suite on every change; beta means the parser exists but has no fixture-backed test yet. Nothing is listed here that doesn't have a parser, and this endpoint is what the website's supported-source lists are generated from.
{
"crypto_exchanges": [
{ "id": "coinbase", "name": "Coinbase", "status": "verified" },
{ "id": "venmo", "name": "Venmo", "status": "beta" }
],
"banks": [
{ "id": "chase", "name": "Chase", "status": "verified", "version": "1.0.0" },
{ "id": "citi", "name": "Citi", "status": "beta", "version": "1.0.0" }
],
"output_formats": {
"crypto": ["koinly", "turbotax", "coinledger", "zenledger"],
"bank": ["csv"]
}
}
Use an exchange's id as the exchange parameter on /v1/parse to skip auto-detection.
POST /v1/parse
Send a base64-encoded file and get structured transaction data back. The API auto-detects whether it's a crypto CSV or bank PDF based on the filename extension.
{
"file_content": "<base64-encoded file>",
"filename": "coinbase_2024.csv",
"exchange": "coinbase",
"output_format": "koinly"
}
| Field | Required | Description |
|---|---|---|
file_content | Yes | Base64-encoded file content |
filename | Yes | Filename with extension (.csv or .pdf). Excel files are refused: save the sheet as CSV first |
exchange | No | Exchange name (auto-detected if omitted) |
bank | No | Bank name for PDFs (auto-detected if omitted) |
output_format | No | koinly, turbotax, coinledger, or zenledger (default: koinly) |
{
"status": "success",
"summary": "Parsed 147 Coinbase transactions (Jan–Dec 2024).",
"detected_source": "coinbase",
"source_type": "crypto_exchange",
"output_format": "koinly",
"transactions": [...],
"warnings": [],
"metadata": {
"transaction_count": 147,
"processing_time_ms": 1234,
"api_version": "2026-03-01"
}
}
Python
import requests
import base64
with open("coinbase_2024.csv", "rb") as f:
encoded = base64.b64encode(f.read()).decode()
response = requests.post(
"https://api.taxformatter.com/v1/parse",
headers={"X-API-Key": "tf_live_your_key_here"},
json={"file_content": encoded, "filename": "coinbase_2024.csv"}
)
data = response.json()
print(f"{data['metadata']['transaction_count']} transactions parsed")
print(f"Processing time: {data['metadata']['processing_time_ms']}ms")
Node.js
import { readFileSync } from "fs";
const file = readFileSync("coinbase_2024.csv");
const res = await fetch("https://api.taxformatter.com/v1/parse", {
method: "POST",
headers: {
"X-API-Key": "tf_live_your_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
file_content: file.toString("base64"),
filename: "coinbase_2024.csv",
}),
});
const data = await res.json();
console.log(`${data.metadata.transaction_count} transactions parsed`);
{
"status": "error",
"code": "unsupported_exchange",
"message": "Could not detect exchange format.",
"suggestion": "Specify the 'exchange' parameter, or check /v1/sources."
}
| Code | HTTP | Meaning |
|---|---|---|
invalid_api_key | 401 | Key missing, malformed, or revoked |
feature_not_available | 403 | Endpoint requires a higher tier (e.g., bank PDF on Free) |
rate_limited | 429 | Exceeded requests per minute limit |
quota_exceeded | 429 | Free tier monthly file limit reached. Resets on the 1st |
invalid_file_type | 400 | Not a PDF or CSV, an Excel file, or content that doesn't match the extension (e.g. a renamed image) |
file_too_large | 400 | Exceeds 10MB limit |
file_empty | 400 | Empty file |
unsupported_exchange | 422 | CSV doesn't match any known exchange |
unsupported_bank | 422 | PDF doesn't match any known bank |
parse_error | 422 | Recognized format but parsing failed |
internal_error | 500 | Server error (retry with backoff) |
quota_exceeded and feature_not_available responses include an upgrade_url field pointing at the pricing page. The 429 quota response also sets Retry-After (seconds until reset) and X-Quota-Reset (ISO-8601 timestamp of the next reset) headers.
Free tier — Every account gets a free API key with 25 files/month and 10 requests/minute on signup. No credit card required. Get your API key here.
| Tier | Files/month | Requests/minute | Bank PDF | AI Insights | Price |
|---|---|---|---|---|---|
| Free | 25 | 10 | — | Standard | $0 |
| Starter | 100 | 30 | — | Standard | $29/mo |
| Growth | 500 | 60 | ✓ | Advanced | $99/mo |
| Business | 2,000 | 120 | ✓ | Premium | $249/mo |
Insights engine (v1): every tier returns the same insights structure; the level sets how deeply the model reasons about your data. Standard runs on gemini-2.5-flash, Advanced on claude-sonnet-4-6, Premium on claude-opus-4-7. This table and the blog's Updates posts are the only places model names are published — a model change bumps the engine version and is announced there, never silently.
Quota enforcement:
429 quota_exceeded with Retry-After and X-Quota-Reset headers and an upgrade_url. Resets at 00:00 UTC on the 1st.X-Api-Overage: true response header along with X-Api-Usage and X-Api-Quota so you can monitor and upgrade proactively.Feature gates:
/v1/parse with a .pdf filename on a Free or Starter key returns 403 feature_not_available with an upgrade_url.For Claude Code, Cursor, and other MCP-compatible tools:
npm install -g @taxformatter/mcp-server
Add to ~/.claude/mcp.json:
{
"mcpServers": {
"taxformatter": {
"command": "npx",
"args": ["@taxformatter/mcp-server"],
"env": { "TAXFORMATTER_API_KEY": "tf_live_..." }
}
}
}
Then ask your agent:
Your uploaded files, outputs, and parsed data are deleted within 30 days. Delete them sooner anytime from your dashboard. We keep your account, usage counts, and anonymized processing metadata (source detected, row count, timing, error type). Our file storage also keeps an access log of each dashboard upload, download and deletion (including the file's name and your IP address, never the file's contents), each entry for up to 30 days; see the privacy policy for the full list. We never train on your data, and neither do our AI providers.
API requests go further: the file is processed in memory and never stored. We log only request metadata — key hash, status, byte size, timing, detected source, error code.
TaxFormatter never asks for exchange or bank credentials; you upload the export your exchange or bank already gives you. The only credential involved is the developer key we issue to you, shown once at creation and stored only as a SHA-256 hash.